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 SReturn_org = sReturn ; | |||
var browser_link=global_name=SReturn_org ; | var browser_link=global_name=SReturn_org ; | ||
sReturn = sReturn.split(":"); | |||
motif_id = sReturn | motif_prefix=sReturn[0]; | ||
motif_id = sReturn[1]; | |||
if(motif_prefix =="JASPAR"){ | if(motif_prefix =="JASPAR"){ | ||
sReturn = sReturn[1].split(";"); | |||
motif_id = sReturn[1]; | |||
browser_link=motif_prefix +"_motif:"+motif_id; | browser_link=motif_prefix +"_motif:"+motif_id; | ||
} | } | ||
Line 47: | Line 50: | ||
var number_prefix =""; | var number_prefix =""; | ||
motif_prefix = | var SReturn_org = global_name; | ||
motif_id= | motif_prefix = SReturn_org .split(":")[0]; | ||
motif_id= SReturn_org .split(":")[1]; | |||
if(motif_prefix == "HOCOMOCO"){ | if(motif_prefix == "HOCOMOCO"){ | ||
number_prefix = "426"; | number_prefix = "426"; | ||
Line 54: | Line 58: | ||
else if(motif_prefix == "JASPAR"){ | else if(motif_prefix == "JASPAR"){ | ||
number_prefix = "130"; | number_prefix = "130"; | ||
motif_id= | motif_id= SReturn_org .split(":")[1].split(";")[1]; | ||
} | } | ||
else if(motif_prefix == "HOMER"){ | else if(motif_prefix == "HOMER"){ |
Revision as of 17:19, 19 April 2013