Personal tools

User:Serkan/test2/known1: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
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 ;
motif_prefix=sReturn.split(":")[0];
sReturn = sReturn.split(":");
motif_id = sReturn.split(":")[1];
motif_prefix=sReturn[0];
motif_id = sReturn[1];
if(motif_prefix =="JASPAR"){
if(motif_prefix =="JASPAR"){
motif_id= sReturn[1].split(";")[1];
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 = sReturn  .split(":")[0];
var SReturn_org = global_name;
motif_id=  sReturn  .split(":")[1];
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= sReturn .split(":")[1].split(";")[1];
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

known motifs