Personal tools

User:Serkan/test3: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html>
SOME TRIVIAL TEST SCRIPTS THAT PARSES EXTERNAL LINKS AND DISPLAY THEM USING ARRAYS
<style type="text/css" title="currentStyle">
@import "/5/sstar/rb_js/datatables/media/css/jquery.dataTables.css";
@import "/5/sstar/rb_js/datatables/extras/TableTools/media/css/TableTools.css";
 
 
</style>
<script type="text/javascript" src="/5/sstar/rb_js/datatables/media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/5/sstar/rb_js/datatables/extras/TableTools/media/js/ZeroClipboard.js"></script>
<script type="text/javascript" src="/5/sstar/rb_js/datatables/extras/TableTools/media/js/TableTools.min.js"></script>
</html>
 


{{#vardefine:species_temp|{{#switch:9606|9606=Homo_sapiens|10090=Mus_musculus|NA}}}}
{{#vardefine:species_temp|{{#switch:9606|9606=Homo_sapiens|10090=Mus_musculus|NA}}}}
Line 45: Line 34:
   | <nowiki/>{{#arraydefine:elements|{{#arrayindex:gene_raw_array|{{#var:i}} }}|:|}}{{#vardefine:RESOURCE_URL_BUILD|{{#switch:{{#arrayindex:elements |0}}|HGNC=http://www.genenames.org/data/hgnc_data.php?hgnc_id={{#arrayindex:elements |1}}|MIM=http://www.omim.org/entry/{{#arrayindex:elements |1}}|Ensembl=http://asia.ensembl.org/{{#var:species_temp}}/Gene/Summary?db=core;g={{#arrayindex:elements |1}}|HPRD=http://www.hprd.org/summary?hprd_id={{#arrayindex:elements |1}}&isoform_id={{#arrayindex:elements |1}}_1&isoform_name=Isoform_1|Vega=http://vega.sanger.ac.uk/{{#var:species_temp}}/Info/Index?db=core;g={{#arrayindex:elements |1}}|MGI=http://www.informatics.jax.org/marker/MGI:{{#arrayindex:elements |1}}|NA}}}}
   | <nowiki/>{{#arraydefine:elements|{{#arrayindex:gene_raw_array|{{#var:i}} }}|:|}}{{#vardefine:RESOURCE_URL_BUILD|{{#switch:{{#arrayindex:elements |0}}|HGNC=http://www.genenames.org/data/hgnc_data.php?hgnc_id={{#arrayindex:elements |1}}|MIM=http://www.omim.org/entry/{{#arrayindex:elements |1}}|Ensembl=http://asia.ensembl.org/{{#var:species_temp}}/Gene/Summary?db=core;g={{#arrayindex:elements |1}}|HPRD=http://www.hprd.org/summary?hprd_id={{#arrayindex:elements |1}}&isoform_id={{#arrayindex:elements |1}}_1&isoform_name=Isoform_1|Vega=http://vega.sanger.ac.uk/{{#var:species_temp}}/Info/Index?db=core;g={{#arrayindex:elements |1}}|MGI=http://www.informatics.jax.org/marker/MGI:{{#arrayindex:elements |1}}|NA}}}}
''{{#arrayindex:elements |0}}'':[{{#var:RESOURCE_URL_BUILD}} {{#arrayindex:elements |1}}]
''{{#arrayindex:elements |0}}'':[{{#var:RESOURCE_URL_BUILD}} {{#arrayindex:elements |1}}]
}}
}}
{{#ask:[[Coexpression_dpi_cluster_scores_median_ffid::10002-101A5]]
|?#
|?Coexpression dpi cluster scores median value
|format=table
|offset=0
|limit=10000
|mainlabel=
|class=sortable wikitable smwtable
}}
<html>
<script type="text/javascript">
$(document).ready(function() {
    $('.relative_exp_of_coexp').dataTable({
"sScrollY": "300px",
"bPaginate": false,
"bScrollCollapse": true,
"iDisplayLength": -1,
"aaSorting": [[1,'desc']],
"aoColumnDefs": [{ "sWidth": "150px", "sType": "numeric", "aTargets": [1] }]
});
});
</script>
</html>
{{#switch:Human (Homo sapiens)
|Human (Homo sapiens)=
{{#arraymap:{{#explode:CNhs10627,LSID657,release008,COMPLETED|,|0}}|&|$
|{{#ask:[[Coexpression_dpi_cluster_scores_median_ffid::10021-101D3]]|?Coexpression_dpi_cluster_scores_median_value|intro=<table class="relative_exp_of_coexp"><html><thead></html><tr><th>Co-expression module</th><th>Relative expression over median</th></tr><html></thead><tbody></html>|outro=<html></tbody></html></table>|link=none|format=template|template=Coexpression_dpi_cluster_scores_median_in_ffsample|limit=5000|searchlabel=|default=No results for this sample}}
<br><h3>( CAGE Library ID:$ )</h3><br>
|<br><br>
}}
|Mouse (Mus musculus)=
{{#arraymap:{{#explode:CNhs10627,LSID657,release008,COMPLETED|,|0}}|&|$
|{{#ask:[[Coexpression_dpi_cluster_scores_median_ffid::10021-101D3]]|mainlabel=Co-expression module|?Coexpression_dpi_cluster_scores_median_value=Relative expression over median|format=ttable|class=relative_exp_of_coexp|limit=1000|searchlabel=}}
<br><h3>( CAGE Library ID:$ )</h3><br>
|<br><br>
}}
}}
}}
}}

Latest revision as of 10:10, 10 July 2014

SOME TRIVIAL TEST SCRIPTS THAT PARSES EXTERNAL LINKS AND DISPLAY THEM USING ARRAYS


Homo_sapiens

EntrezGene:861

HGNC:6473

MIM:601464

Ensembl:ENSG00000144218

HPRD:03272

Vega:OTTHUMG00000153011



  • red
  • green
  • blue

EntrezGene:861 HGNC:6473 MIM:601464 Ensembl:ENSG00000144218 HPRD:03272 Vega:OTTHUMG00000153011