User:Serkan/test2/known1: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 35: | Line 35: | ||
{ "sTitle": "motif name", "fnRender": function ( obj ) { | { "sTitle": "motif name", "fnRender": function ( obj ) { | ||
sReturn = obj.aData[ obj.iDataColumn ]; | sReturn = obj.aData[ obj.iDataColumn ]; | ||
var browser_link=global_name=SReturn_org ; | var browser_link=global_name=SReturn_org ; | ||
motif_prefix=sReturn.split(":")[0]; | |||
motif_id = sReturn.split(":")[1]; | |||
motif_id = sReturn[1]; | |||
if(motif_prefix =="JASPAR"){ | if(motif_prefix =="JASPAR"){ | ||
motif_id= sReturn[1].split(";")[1]; | |||
browser_link=motif_prefix +"_motif:"+motif_id; | browser_link=motif_prefix +"_motif:"+motif_id; | ||
} | } | ||
Line 50: | Line 47: | ||
var number_prefix =""; | var number_prefix =""; | ||
motif_prefix = sReturn .split(":")[0]; | |||
motif_prefix = | motif_id= sReturn .split(":")[1]; | ||
motif_id= | |||
if(motif_prefix == "HOCOMOCO"){ | if(motif_prefix == "HOCOMOCO"){ | ||
number_prefix = "426"; | number_prefix = "426"; | ||
Line 58: | Line 54: | ||
else if(motif_prefix == "JASPAR"){ | else if(motif_prefix == "JASPAR"){ | ||
number_prefix = "130"; | number_prefix = "130"; | ||
motif_id= | motif_id= sReturn .split(":")[1].split(";")[1]; | ||
} | } | ||
else if(motif_prefix == "HOMER"){ | else if(motif_prefix == "HOMER"){ |
Revision as of 17:18, 19 April 2013