User:Serkan/test2/known1: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 33: | Line 33: | ||
var SReturn_org = sReturn ; | var SReturn_org = sReturn ; | ||
sReturn = sReturn.split(":"); | sReturn = sReturn.split(":"); | ||
return '<a href=/resource_browser/User:Serkan/test2/'+SReturn_org+'>'+sReturn[1]+'</a>';} } | return '<a href=/resource_browser/User:Serkan/test2/'+SReturn_org+'>'+sReturn[1]+'</a>';} | ||
{ "sTitle": "Sequence logos", "mData": 1, "mRender": function (obj) { | |||
var number_prefix =""; | |||
var sReturn = obj.aData[ obj.iDataColumn ]; | |||
var SReturn_org = sReturn ; | |||
sReturn_prefix = sReturn.split(":")[0]; | |||
if(sReturn_prefix = "HOCOMOCO"){ | |||
number_prefix = "426"; | |||
} | |||
else if(sReturn_prefix = "JASPAR"){ | |||
number_prefix = "130"; | |||
} | |||
else if(sReturn_prefix = "HOMER"){ | |||
number_prefix = "138"; | |||
} | |||
else if(sReturn_prefix = "SWISSREGULON"){ | |||
number_prefix = "190"; | |||
} | |||
else if(sReturn_prefix = "UNIPROBE"){ | |||
number_prefix = "413"; | |||
} | |||
else if(sReturn_prefix = "ENCODE"){ | |||
number_prefix = "683"; | |||
} | |||
sReturn_prefix = "KNOWN"+"_"+number_prefix+"_201304"; | |||
return '<img src="/resource_browser/seqlogos/' +sReturn_prefix+"/"+ data + '.png" width ="80" height = "20">'; } | |||
} | |||
] | ] | ||
} ); | } ); |
Revision as of 17:49, 18 April 2013