Personal tools

User:Serkan/test3: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
mNo edit summary
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
SOME TRIVIAL TEST SCRIPTS THAT PARSES EXTERNAL LINKS AND DISPLAY THEM USING ARRAYS
{{#vardefine:species_temp|{{#switch:9606|9606=Homo_sapiens|10090=Mus_musculus|NA}}}}
{{#vardefine:species_temp|{{#switch:9606|9606=Homo_sapiens|10090=Mus_musculus|NA}}}}
{{#var:species_temp}}
{{#var:species_temp}}
{{#vardefine:gene_id|861}}
{{#vardefine:gene_id|861}}
{{#if:{{#var:gene_id}}|[http://www.ncbi.nlm.nih.gov/gene/{{#var:gene_id}} EntrezGene:{{#var:gene_id}}] {{#arraydefine:gene_raw_array|HGNC:10471;;MIM:151385;;Ensembl:ENSG00000159216;;HPRD:01043;;Vega:OTTHUMG00000086299|;;}}
{{#if:{{#var:gene_id}}|[http://www.ncbi.nlm.nih.gov/gene/{{#var:gene_id}} EntrezGene:{{#var:gene_id}}] {{#arraydefine:gene_raw_array|HGNC:6473;;MIM:601464;;Ensembl:ENSG00000144218;;HPRD:03272;;Vega:OTTHUMG00000153011|;;}}
{{#loop: j
{{#loop: j
   | 0           
   | 0           
Line 26: Line 28:
}}
}}


{{#if:{{#var:gene_id}}|[http://www.ncbi.nlm.nih.gov/gene/{{#var:gene_id}} EntrezGene:{{#var:gene_id}}] {{#arraydefine:gene_raw_array|HGNC:10471;;MIM:151385;;Ensembl:ENSG00000159216;;HPRD:01043;;Vega:OTTHUMG00000086299|;;}}
{{#if:{{#var:gene_id}}|''EntrezGene'':[http://www.ncbi.nlm.nih.gov/gene/{{#var:gene_id}} {{#var:gene_id}}] {{#arraydefine:gene_raw_array|HGNC:6473;;MIM:601464;;Ensembl:ENSG00000144218;;HPRD:03272;;Vega:OTTHUMG00000153011|;;}}
{{#loop: i
{{#loop: i
   | 0           
   | 0           
   | {{#arraysize:gene_raw_array}}
   | {{#arraysize:gene_raw_array}}
   | <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}}|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}}}}
[{{#var:RESOURCE_URL_BUILD}} {{#arrayindex:elements |0}}:{{#arrayindex:elements |1}}]
''{{#arrayindex:elements |0}}'':[{{#var:RESOURCE_URL_BUILD}} {{#arrayindex:elements |1}}]
}}
}}
}}
}}

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