Personal tools

User:Serkan/test2/known1: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
No edit summary
Line 9: Line 9:
var motif_prefix="";
var motif_prefix="";
var sReturn ="";
var sReturn ="";
var motif_id ="";
/* Formating function for row details */
/* Formating function for row details */


Line 38: Line 39:
sReturn = sReturn.split(":");
sReturn = sReturn.split(":");
motif_prefix=sReturn[0];
motif_prefix=sReturn[0];
motif_id = sReturn[1];
if(motif_prefix =="JASPAR"){
if(motif_prefix =="JASPAR"){
sReturn = sReturn[1].split(";");
sReturn = sReturn[1].split(";");
browser_link=motif_prefix +"_motif:"+sReturn[1];
motif_id = sReturn[1];
browser_link=motif_prefix +"_motif:"+motif_id;
}
}
  return '<a href=/resource_browser/'+browser_link+'>'+sReturn[1]+'</a>';}}
  return '<a href=/resource_browser/'+browser_link+'>'+motif_id +'</a>';}}
,
,
  { "sTitle": "Sequence logos", "mData": 1, "mRender": function (data) {
  { "sTitle": "Sequence logos", "mData": 1, "mRender": function (data) {
Line 49: Line 52:
var SReturn_org = global_name;
var SReturn_org = global_name;
motif_prefix = SReturn_org .split(":")[0];
motif_prefix = SReturn_org .split(":")[0];
var motif_id=  SReturn_org .split(":")[1];
motif_id=  SReturn_org .split(":")[1];
if(motif_prefix == "HOCOMOCO"){
if(motif_prefix == "HOCOMOCO"){
number_prefix = "426";
number_prefix = "426";

Revision as of 17:14, 19 April 2013

known motifs