User:Serkan/test5: Difference between revisions
From FANTOM5_SSTAR
mNo edit summary |
mNo edit summary |
||
Line 90: | Line 90: | ||
"fnRender": function( obj ) { | "fnRender": function( obj ) { | ||
var motid = obj.aData.MotifId; | var motid = obj.aData.MotifId; | ||
if(motid == "NA"){ | if (motid == "NA") { | ||
return_val= "NA"; | return_val = "NA"; | ||
}else{ | } else { | ||
var splitted = motid.split("!"); | var splitted = motid.split("!"); | ||
if(splitted!=null) | if (splitted != null) { | ||
if (splitted.length > 1) { | |||
var return_val = "" | |||
for (i = 0; i < splitted.length; i++) { | |||
if (splitted[i].toString().indexOf("JASPAR_motif") > 0) { | |||
return_val = '<a href=\"/resource_browser/' + splitted[i] + '\"><img src=\"/resource_browser/seqlogos/jaspar/' + splitted[i].split[1] + '.png" class="ImageBorder" alt="' + splitted[i] + '">' + '</a>' + return_val; | |||
if(splitted[i].toString().indexOf("JASPAR_motif")>0){ | } else if (splitted[i].toString().indexOf("Swissregulon") > 0) { | ||
else if(splitted[i].toString().indexOf("Swissregulon")>0){ | |||
return_val='<a href=\"/resource_browser/'+"Swissregulon:"+splitted[i]+'\"><img src=\"/resource_browser/seqlogos/' + | return_val = '<a href=\"/resource_browser/' + "Swissregulon:" + splitted[i] + '\"><img src=\"/resource_browser/seqlogos/' + splitted[i] + '.png" class="ImageBorder" alt="' + splitted[i] + '">' + '</a>' + return_val; | ||
} | } | ||
} | } | ||
return_val='<a href=\"/resource_browser/' | } else { | ||
} | if (splitted[0].toString().indexOf("JASPAR_motif") > 0) { | ||
return_val = '<a href=\"/resource_browser/' + splitted[i] + '\"><img src=\"/resource_browser/seqlogos/jaspar/' + splitted[i].split[1] + '.png" class="ImageBorder" alt="' + splitted[i] + '">' + '</a>' + return_val; | |||
} else if (splitted[0].toString().indexOf("Swissregulon") > 0) { | |||
return_val = '<a href=\"/resource_browser/' + "Swissregulon:" + splitted[i] + '\"><img src=\"/resource_browser/seqlogos/' + splitted[i] + '.png" class="ImageBorder" alt="' + splitted[i] + '">' + '</a>' + return_val; | |||
} | |||
} | |||
} else { | |||
return_val = "NA" | |||
} | |||
} | } | ||
Revision as of 10:16, 18 April 2014
Mouse transcription factors