Template:PeakCountPerSample: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 133: | Line 133: | ||
useHTML: true, | useHTML: true, | ||
formatter:function(){ | formatter:function(){ | ||
//show tooltip $("#mytoolTip").html(this.x+'<br><b>Number of peaks:</b> '+this.y) ; | //show tooltip $("#mytoolTip").html(this.x+'<br><b>Number of peaks:</b> '+this.y) ; | ||
return | var ret_inf= ''; | ||
var elements = this.x.split('/'); | |||
for(var i=0, l=elements.length; i<l-1; i++) { | |||
var el = elements[i]; | |||
if(el != '' || el != 'NULL'){ | |||
var splitted = el.split(':'); | |||
if(splitted!='NULL' || splitted !='') | |||
{ | |||
if(splitted[0]=='EntrezGene'){ret_inf=ret_inf+'<b>EntrezGene:</b> <a href="https://fantom5-collaboration.gsc.riken.jp/resource_browser/EntrezGene:'+splitted[1]+'"target="_blank">'+splitted[1]+'</a>'+'<br>' ;} | |||
else if(splitted[0]=='Symbol'){ret_inf=ret_inf+'<b>Symbol:</b>'+splitted[1]+'<br>' ;} | |||
else if(splitted[0]=='Description'){ret_inf=ret_inf+'<b>Description:</b>'+splitted[1]+'<br>' ;} | |||
} | |||
} | |||
} | |||
return ret_inf+'<br><b>Number of peaks:</b> '+this.y; | |||
} | } | ||
Revision as of 17:56, 26 September 2013
Sort by