Personal tools

Browse Transcription Factors hg19: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
mNo edit summary
mNo edit summary
Line 2: Line 2:
|?GeneID
|?GeneID
|?Symbol
|?Symbol
|?Associated jaspar id
|?Associated motif id
|?Description
|?Description
|format=array
|format=array
Line 9: Line 9:
|order=DESC
|order=DESC
|mainlabel=-
|mainlabel=-
|sep=:
|sep=?
|propsep=/
|propsep=/
|limit=
|limit=
Line 18: Line 18:
{{#vardefine:db_content}}
{{#vardefine:db_content}}


{{#arraydefine:geneids_array|{{#var:geneids_content}}|:}}
{{#arraydefine:geneids_array|{{#var:geneids_content}}|?}}


{{
{{
Line 25: Line 25:
   | {{#arraysize:geneids_array}}
   | {{#arraysize:geneids_array}}
   | <nowiki/>
   | <nowiki/>
{{#vardefine:ID|{{#explode:{{#arrayindex:geneids_array| {{#var:j}} }}|/|0 }} }}
{{#vardefine:ID|{{#explode:{{#arrayindex:geneids_array|{{#var:j}}}}|/|0}}}}
{{#vardefine:Symbol|{{#explode:{{#arrayindex:geneids_array| {{#var:j}} }}|/|1 }} }}
{{#vardefine:Symbol|{{#explode:{{#arrayindex:geneids_array|{{#var:j}}}}|/|1}}}}
{{#vardefine:MotifId|{{#explode:{{#arrayindex:geneids_array| {{#var:j}} }}|/|2 }} }}
{{#vardefine:MotifId|{{#explode:{{#arrayindex:geneids_array|{{#var:j}}}}|/|2}}}}
{{#vardefine:Description|{{#explode:{{#arrayindex:geneids_array| {{#var:j}} }}|/|3 }} }}
{{#vardefine:Description|{{#explode:{{#arrayindex:geneids_array|{{#var:j}}}}|/|3}}}}
{{#vardefine:PeakCount|{{#ask: [[Category:FFCP]][[EntrezGene::{{#var:ID}}]]|format=count}}}}
{{#vardefine:PeakCount|{{#ask: [[Category:FFCP]][[EntrezGene::{{#var:ID}}]]|format=count}}}}


{{#arraydefine: defined_array{{#var:j}} |{{#var:ID}}/{{#var:Symbol}}/{{#var:MotifId}}/{{#var:Description}}/{{#var:PeakCount}}}}
{{#arraydefine: defined_array{{#var:j}} |{{#var:ID}}/{{#var:Symbol}}/{{#var:MotifId}}/{{#var:Description}}/{{#var:PeakCount}}}}
{{#vardefine:db_content|{{#arrayprint:defined_array{{#var:j}} }}:{{#var:db_content}}  }}
{{#vardefine:db_content|{{#arrayprint:defined_array{{#var:j}}}}?{{#var:db_content}}  }}


}}
}}
==Human transcription factors==
==Mouse transcription factors==


<html>
<html>
Line 62: Line 62:
                     content= "</html>{{#var:db_content}}<html>";
                     content= "</html>{{#var:db_content}}<html>";


                     var content_array = content.split(":");
                     var content_array = content.split("?");
                     for(i=0;i<content_array.length-1;i++){
                     for(i=0;i<content_array.length-1;i++){
                     var temp = content_array[i];
                     var temp = content_array[i];
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) {
  if(splitted.length>1)
            var return_val = ""
  {
            for (i = 0; i < splitted.length; i++) {
  var return_val=""
                if (splitted[i].toString().indexOf("JASPAR_motif") >= 0) {
  for(i=0;i<splitted.length;i++)
                    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;
  return_val='<a href=\"/resource_browser/'+"JASPAR_Motif:"+splitted[i]+'\"><img src=\"/resource_browser/seqlogos/jaspar/' + splitted[i] + '.png"  class="ImageBorder"  alt="'+splitted[i]+'">'+'</a>' +return_val;
                } else if (splitted[i].toString().indexOf("Swissregulon") >= 0) {
                                                                               
                    /*return_val = '<a href=\"/resource_browser/'+ splitted[i] + '\"><img src=\"/resource_browser/seqlogos/' + replaceAll(splitted[i].split(":")[1]," ","_") + '.png"  class="ImageBorder"  alt="' + splitted[i] + '">' + '</a>' + return_val;*/
  }                                                                        
return_val = "";
  else{
                }
return_val='<a href=\"/resource_browser/'+"JASPAR_Motif:"+obj.aData.MotifId+'\"><img src="/resource_browser/seqlogos/jaspar/' + obj.aData.MotifId + '.png"  class="ImageBorder"  alt="'+obj.aData.MotifId+'">'+'</a>';
                else{
  }  
                    return_val = "";
}  
                }
else  
            }
{
        } else {
  return_val= "NA"
            if (splitted[0].toString().indexOf("JASPAR_motif") >= 0) {
}
                return_val = '<a href=\"/resource_browser/' + splitted[0] + '\"><img src=\"/resource_browser/seqlogos/jaspar/' + splitted[0].split(":")[1] + '.png"  class="ImageBorder"  alt="' + splitted[0] + '">' + '</a>' ;
            } else if (splitted[0].toString().indexOf("Swissregulon") >= 0) {
 
              /* return_val = '<a href=\"/resource_browser/' + splitted[0] + '\"><img src=\"/resource_browser/seqlogos/' + replaceAll(splitted[0].split(":")[1]," ","_") + '.png"  class="ImageBorder"  alt="' + splitted[0] + '">' + '</a>' ;*/
return_val = "";
            }
            else{
                    return_val = "";
                }
        }
    } else {
        return_val = "NA"
    }
}
}


Line 128: Line 140:


} );
} );
function replaceAll(str, token, newtoken) {
    if(token!=newtoken)
    while(str.indexOf(token) > -1) {
        str = str.replace(token, newtoken);
    }
    return str;
}
</script>
</script>
<span id="export_tool"></span>
<span id="export_tool"></span>

Revision as of 11:37, 3 June 2014



Mouse transcription factors