Personal tools

Template:AccessionNumbers: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
(Created page with "<html> <script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.js"></script> <script type="text/javascript" lan...")
 
No edit summary
 
(53 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html>
<html>
<script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.js"></script>
<style type="text/css" title="currentStyle">
<script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/extras/TableTools/media/js/TableTools.min.js"></script>
@import "/resource_browser/rb_js/datatables/media/css/jquery.dataTables.css";
@import "/resource_browser/rb_js/datatables/extras/TableTools/media/css/TableTools.css";
</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/extras/TableTools/media/js/TableTools.min.js"></script>
<script type="text/javascript">
 
var sReturn ="";
var m_data = new Array();
var sample_accession_number ="";
var library_ids = "";
 
$(document).ready(function() {
library_ids = "</html>{{{library_id}}}<html>";
sample_accession_number = "</html>{{{DRA_sample_Accession}}}<html>";
var accession_numbers  = "</html>{{{accession_numbers}}}<html>";


<style type="text/css" title="currentStyle">
var sub_libraries = library_ids.split("!");
@import "/resource_browser/rb_js/datatables/media/css/jquery.dataTables.css";
 
@import "/resource_browser/rb_js/datatables/extras/TableTools/media/css/TableTools.css";
var accession_numbers_content = accession_numbers.split("!");
.table_title{
 
text-align:left;
if(accession_numbers_content.length>1 ){
font-size:small;
 
text-decoration:underline;
}
color:darkgoldenrod;
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);
}
}
</style>
<script type="text/javascript">


$(document).ready(function() {
motif_table = $('#example').dataTable({              
    var oTable = $('.accession_list').dataTable({
"sScrollY": "500px",
"sScrollY": "300px",
"bScrollCollapse": true,
"bScrollCollapse": true,
"bPaginate": false,
"bPaginate": true,
"bFilter": false,
"bFilter": true,
"bInfo": false,
"bInfo": true,
"aoColumnDefs": [{ "bSortable": false, "aTargets": [ 0 ] },  { "sType": "numeric", "aTargets": [1] }, { "sWidth": "50pt", "aTargets": [ 1 ] }],
                "aaData": m_data,
"aaSorting": [[ 1, "asc" ]]
"aoColumnDefs":[
{"aTargets":[0],"sTitle": "Library ID","fnRender": function ( obj ) {
                  return obj.aData[ obj.iDataColumn ];}},
{"aTargets":[1],"sTitle": "Experiment 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/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" ]],
 
});
});
});
});
</script>
</script>
</html>
</html>


 
==Data Accession Details ==
<table class="accession_list"><caption class="table_title">Uber Anatomy</caption><html><thead></html>
<br>
<tr><th>Ontology term</th><th>p-value</th><th>n</th></tr>
* Sample Accession Number :  [http://trace.ddbj.nig.ac.jp/DRASearch/sample?acc={{{DRA_sample_Accession}}} {{{DRA_sample_Accession}}}]
<html></thead><tbody></html><tr><td>
<br>
{{#arraymap:{{{ontology_enrichment_uberon_v019_2}}}|;|$
<br>
|{{#set:ffcp_ontology_enrichment_uberon={{#replace:$|,|;}}}}[[{{#explode:$|,|0}}|{{#show:{{#explode:$|,|0}}|?name}}]]</td><td>{{#explode:$|,|1}}</td><td>{{#explode:$|,|2}}
* Library Accession Numbers : <br><br>
|</td></tr><tr><td>}}
<includeonly> <table cellpadding="0" cellspacing="0" border="0" class="display" id="example"></table></includeonly>
</td></tr>
<html></tbody></html></table>
============Other TEST==================
 
{| class="wikitable mw-collapsible mw-collapsed" style="width:800px"
! Accession Numbers
|-
| <table cellspacing="0" border="1"><tr><td>{{#replace:{{#replace:{{{accession_numbers}}}|!|</td></tr><tr><td>}}|;|</td><td>}}</tr></table>
|}

Latest revision as of 13:23, 1 October 2013

Data Accession Details




  • Library Accession Numbers :