Language
Login
Language Setting
X
English
日本語 [Japanese]
about this App
API test 001
useful
0
Loading...
/* This is a Example program to retrieve and display the data. Press the Run button on the right of the screen (described the behavior of the Example program below). Please create a new application rewrite this program work. */ if(typeof Example==="undefined"||!Example){var Example = {};} Example.getWorks = function() { return LinkData.getWorks(); }; Example.getFiles = function(workId) { return LinkData.getFiles(workId); }; Example.getSubjects = function(workId, fileName) { return LinkData.getSubjects(workId, fileName); }; Example.getProperties = function(workId, fileName) { return LinkData.getProperties(workId, fileName); }; Example.getObjects = function(workId, fileName, subject, property) { return LinkData.getObjects(workId, fileName, subject, property); }; window.onload = function() { var limit = 5; var count = 0; $.each(Example.getWorks(), function(workKey, workValue) { var i; console.log(workValue); var files = Example.getFiles(workValue); console.log("number of files is " + files.length); var fileValue = files[0]; console.log(workValue + " : " + fileValue); var subjects = Example.getSubjects(workValue, fileValue); //console.log(subjects); var properties = Example.getProperties(workValue, fileValue); for (i = 0; i < subjects.length; i++) { // console.log(i + " : " + subjects[i]); var line = "#" + i; for (var j = 0; j < properties.length; j++) { var obj = Example.getObjects(workValue, fileValue, subjects[i], properties[j]); line += "\t" + properties[j] + "=" + obj; } console.log(line); if (i >= 100) break; } // var subjects = Example.getProperties(workValue, /* $("#result").append("<h3>Work: " + workValue + "</h3>"); $.each(Example.getFiles(workValue), function(fileKey, fileValue) { $("#result").append("<h4>File: " + fileValue + "</h4>"); $.each(Example.getSubjects(workValue, fileValue), function(subjKey, subjValue) { count = 0; $.each(Example.getProperties(workValue, fileValue), function(propKey, propValue) { if(count++ > limit) { return false; } $("#result").append("<div style='padding-top:10px;'>Subject : " + subjValue + "</div>"); $("#result").append("<div style='padding-left:10px;'>Property : " + propValue + "</div>"); $("#result").append("<div style='padding-left:20px;'>Objects</div>"); $.each(Example.getObjects(workValue, fileValue, subjValue, propValue), function(objKey, objValue) { $("#result").append("<div style='padding-left:30px;'>" + objValue + "</div>"); }); }); }); }); */ }); };
<div id="result"></div>
Preview
Input Data
ReadMe
Snapshots
LinkData Work
Table Data
ChIP-seq sample 001
Contributor:taendo
Update:Jun 29, 2012
98 Downloads, 1 Applications
ChIP_seq_sample_table
Add LinkData work(LinkData)
Link http://app.linkdata.org/run/app1s15i?tab=readme
jquery-1.7.1.min.js
Work
Add
Clear
insert work id or work name.