User:Serkan/test2/known1: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 40: | Line 40: | ||
var number_prefix =""; | var number_prefix =""; | ||
var SReturn_org = global_name; | var SReturn_org = global_name; | ||
motif_prefix = SReturn_org .split(":")[0]; | |||
if( | var motif_id= SReturn_org .split(":")[1]; | ||
if(motif_prefix = "HOCOMOCO"){ | |||
number_prefix = "426"; | number_prefix = "426"; | ||
} | } | ||
Line 47: | Line 48: | ||
number_prefix = "130"; | number_prefix = "130"; | ||
} | } | ||
else if( | else if(motif_prefix = "HOMER"){ | ||
number_prefix = "138"; | number_prefix = "138"; | ||
} | } | ||
else if( | else if(motif_prefix = "SWISSREGULON"){ | ||
number_prefix = "190"; | number_prefix = "190"; | ||
} | } | ||
else if( | else if(motif_prefix = "UNIPROBE"){ | ||
number_prefix = "413"; | number_prefix = "413"; | ||
} | } | ||
else if( | else if(motif_prefix = "ENCODE"){ | ||
number_prefix = "683"; | number_prefix = "683"; | ||
} | } | ||
motif_prefix = "KNOWN"+"_"+number_prefix+"_201304"; | |||
return '<img src="/resource_browser/seqlogos/' + | return '<img src="/resource_browser/seqlogos/' +motif_prefix+"/"+ motif_id+ '.png" width ="80" height = "20">'; } | ||
} | } | ||
Revision as of 11:36, 19 April 2013