User:Serkan/test5: Difference between revisions
From FANTOM5_SSTAR
mNo edit summary |
mNo edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
TEST PAGE TO DISPLAY MOUSE TRANSCRIPTION FACTORS PAGE | |||
<hr> | |||
{{Loading|loadingimage=sprites.gif}}{{#vardefine:geneids_content|{{#ask:[[Category:EntrezGene]][[tax_id::9606]][[tf?::true]] | {{Loading|loadingimage=sprites.gif}}{{#vardefine:geneids_content|{{#ask:[[Category:EntrezGene]][[tax_id::9606]][[tf?::true]] | ||
|?GeneID | |?GeneID | ||
Line 25: | Line 28: | ||
| {{#arraysize:geneids_array}} | | {{#arraysize:geneids_array}} | ||
| <nowiki/> | | <nowiki/> | ||
{{#vardefine:ID|{{#explode:{{#arrayindex:geneids_array| {{#var:j}} }}|/|0 }} }} | {{#vardefine:ID|{{#explode:{{#arrayindex:geneids_array|{{#var:j}}}}|/|0}}}} | ||
{{#vardefine:Symbol|{{#explode:{{#arrayindex:geneids_array| {{#var:j}} }}|/|1 }} }} | {{#vardefine:Symbol|{{#explode:{{#arrayindex:geneids_array|{{#var:j}}}}|/|1}}}} | ||
{{#vardefine:MotifId|{{#explode:{{#arrayindex:geneids_array| {{#var:j}} }}|/|2 }} }} | {{#vardefine:MotifId|{{#explode:{{#arrayindex:geneids_array|{{#var:j}}}}|/|2}}}} | ||
{{#vardefine:Description|{{#explode:{{#arrayindex:geneids_array| {{#var:j}} }}|/|3 }} }} | {{#vardefine:Description|{{#explode:{{#arrayindex:geneids_array|{{#var:j}}}}|/|3}}}} | ||
{{#vardefine:PeakCount|{{#ask: [[Category:FFCP]][[EntrezGene::{{#var:ID}}]]|format=count}}}} | {{#vardefine:PeakCount|{{#ask: [[Category:FFCP]][[EntrezGene::{{#var:ID}}]]|format=count}}}} | ||
Line 101: | Line 104: | ||
return_val = '<a href=\"/resource_browser/' + splitted[i] + '\"><img src=\"/resource_browser/seqlogos/jaspar/' + splitted[i].split(":")[1] + '.png" class="ImageBorder" alt="' + splitted[i] + '">' + '</a>' + return_val; | return_val = '<a href=\"/resource_browser/' + splitted[i] + '\"><img src=\"/resource_browser/seqlogos/jaspar/' + splitted[i].split(":")[1] + '.png" class="ImageBorder" alt="' + splitted[i] + '">' + '</a>' + return_val; | ||
} else if (splitted[i].toString().indexOf("Swissregulon") >= 0) { | } else if (splitted[i].toString().indexOf("Swissregulon") >= 0) { | ||
/*return_val = '<a href=\"/resource_browser/'+ splitted[i] + '\"><img src=\"/resource_browser/seqlogos/' + replaceAll(splitted[i].split(":")[1]," ","_") + '.png" class="ImageBorder" alt="' + splitted[i] + '">' + '</a>' + return_val;*/ | |||
return_val = '<a href=\"/resource_browser/'+ splitted[i] + '\"><img src=\"/resource_browser/seqlogos/' + splitted[i].split(":")[1] + '.png" class="ImageBorder" alt="' + splitted[i] + '">' + '</a>' + return_val; | return_val = ""; | ||
} | |||
else{ | |||
return_val = ""; | |||
} | } | ||
} | } | ||
} else { | } else { | ||
if (splitted[0].toString().indexOf("JASPAR_motif") >= 0) { | if (splitted[0].toString().indexOf("JASPAR_motif") >= 0) { | ||
Line 112: | Line 116: | ||
} else if (splitted[0].toString().indexOf("Swissregulon") >= 0) { | } else if (splitted[0].toString().indexOf("Swissregulon") >= 0) { | ||
/* return_val = '<a href=\"/resource_browser/' + splitted[0] + '\"><img src=\"/resource_browser/seqlogos/' + replaceAll(splitted[0].split(":")[1]," ","_") + '.png" class="ImageBorder" alt="' + splitted[0] + '">' + '</a>' ;*/ | |||
return_val = ""; | |||
} | } | ||
else{ | |||
return_val = ""; | |||
} | |||
} | } | ||
} else { | } else { | ||
Line 136: | Line 143: | ||
} ); | } ); | ||
function replaceAll(str, token, newtoken) { | |||
if(token!=newtoken) | |||
while(str.indexOf(token) > -1) { | |||
str = str.replace(token, newtoken); | |||
} | |||
return str; | |||
} | |||
</script> | </script> | ||
<span id="export_tool"></span> | <span id="export_tool"></span> |
Latest revision as of 10:19, 10 July 2014
TEST PAGE TO DISPLAY MOUSE TRANSCRIPTION FACTORS PAGE
Mouse transcription factors