Template:AccessionNumbers: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
(50 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<style type="text/css" title="currentStyle"> | <style type="text/css" title="currentStyle"> | ||
@import "/resource_browser/rb_js/datatables/media/css/jquery.dataTables.css"; | |||
@import "/resource_browser/rb_js/datatables/extras/TableTools/media/css/TableTools.css"; | |||
</style> | </style> | ||
<script type="text/javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.min.js"></script> | <script type="text/javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.min.js"></script> | ||
Line 23: | Line 17: | ||
sample_accession_number = "</html>{{{DRA_sample_Accession}}}<html>"; | sample_accession_number = "</html>{{{DRA_sample_Accession}}}<html>"; | ||
var accession_numbers = "</html>{{{accession_numbers}}}<html>"; | var accession_numbers = "</html>{{{accession_numbers}}}<html>"; | ||
var sub_libraries = library_ids.split("!"); | |||
var accession_numbers_content = accession_numbers.split("!"); | var accession_numbers_content = accession_numbers.split("!"); | ||
if(accession_numbers_content.length>1 ){ | if(accession_numbers_content.length>1 ){ | ||
} | } | ||
else{ | else{ | ||
} | } | ||
for(i=0;i<accession_numbers_content.length;i++){ | |||
tmp =new Array(); | |||
tmp.push(sub_libraries[i]); | |||
var row = accession_numbers_content[i]; | |||
var columns = row.split(";"); | |||
for(j=0;j<columns.length;j++){ | |||
tmp.push(columns[j]); | |||
} | |||
m_data.push(tmp); | |||
} | } | ||
motif_table = $('#example').dataTable({ | motif_table = $('#example').dataTable({ | ||
Line 44: | Line 48: | ||
"aaData": m_data, | "aaData": m_data, | ||
"aoColumnDefs":[ | "aoColumnDefs":[ | ||
{"aTargets":[0],"sTitle": "Library ID"}, | {"aTargets":[0],"sTitle": "Library ID","fnRender": function ( obj ) { | ||
{"aTargets":[1],"sTitle": " | return obj.aData[ obj.iDataColumn ];}}, | ||
{"aTargets":[2],"sTitle": " | {"aTargets":[1],"sTitle": "Experiment Accession ID", "fnRender": function ( obj ) { | ||
{"aTargets":[3],"sTitle": "Run Accession","fnRender": function (obj) {return " | var temp=""; | ||
var col = obj.aData[ obj.iDataColumn ]; | |||
var colll= col.toString(); | |||
var cols =colll.split(","); | |||
if(cols.length>0) | |||
{ | |||
for(i=0;i<cols.length;i++){ | |||
temp = temp +'<a href=http://trace.ddbj.nig.ac.jp/DRASearch/experiment?acc='+cols[i]+'>'+cols[i]+'</a>'+" "; | |||
} | |||
}else{ | |||
temp ='<a href=http://trace.ddbj.nig.ac.jp/DRASearch/experiment?acc='+cols[i]+'>'+cols[i]+'</a>'; | |||
} | |||
return temp;}}, | |||
{"aTargets":[2],"sTitle": "Run Accession ID","fnRender": function ( obj ) { | |||
var temp=""; | |||
var col = obj.aData[ obj.iDataColumn ]; | |||
var colll= col.toString(); | |||
var cols =colll.split(","); | |||
if(cols.length>0) | |||
{ | |||
for(i=0;i<cols.length;i++){ | |||
temp = temp +'<a href=http://trace.ddbj.nig.ac.jp/DRASearch/run?acc='+cols[i]+'>'+cols[i]+'</a>'+" "; | |||
} | |||
}else{ | |||
temp ='<a href=http://trace.ddbj.nig.ac.jp/DRASearch/run?acc='+cols[i]+'>'+cols[i]+'</a>'; | |||
} | |||
return temp;}}, | |||
{"aTargets":[3],"sTitle": "Run Bam Accession ID","fnRender": function ( obj ) { | |||
var temp=""; | |||
var col = obj.aData[ obj.iDataColumn ]; | |||
var colll= col.toString(); | |||
var cols =colll.split(","); | |||
if(cols.length>0) | |||
{ | |||
for(i=0;i<cols.length;i++){ | |||
temp = temp +" "+cols[i]; | |||
} | |||
}else{ | |||
temp =cols[i]; | |||
} | |||
return temp;}}, | |||
{"aTargets":[4],"sTitle": "Run Ctss Accession ID","fnRender": function ( obj ) { | |||
var temp=""; | |||
var col = obj.aData[ obj.iDataColumn ]; | |||
var colll= col.toString(); | |||
var cols =colll.split(","); | |||
if(cols.length>0) | |||
{ | |||
for(i=0;i<cols.length;i++){ | |||
temp = temp +" "+cols[i]; | |||
} | |||
}else{ | |||
temp =cols[i]; | |||
} | |||
return temp;}} | |||
], | ], | ||
"aaSorting": [[ 0, "asc" ]], | "aaSorting": [[ 0, "asc" ]], | ||
}); | |||
}); | }); | ||
</script> | </script> | ||
</html> | </html> | ||
==Data Accession Details == | |||
<br> | |||
* Sample Accession Number : [http://trace.ddbj.nig.ac.jp/DRASearch/sample?acc={{{DRA_sample_Accession}}} {{{DRA_sample_Accession}}}] | |||
<br> | |||
<br> | |||
* Library Accession Numbers : <br><br> | |||
<includeonly> <table cellpadding="0" cellspacing="0" border="0" class="display" id="example"></table></includeonly> | |||
Latest revision as of 13:23, 1 October 2013
Data Accession Details
- Sample Accession Number : {{{DRA_sample_Accession}}}
- Library Accession Numbers :