Personal tools

Browse Transcription Factors hg19: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
mNo edit summary
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#vardefine:geneids_content|{{#ask:[[Category:EntrezGene]][[tax_id::9606]][[tf?::true]]
{{Loading|loadingimage=sprites.gif}}{{#vardefine:geneids_content|{{#ask:[[Category:EntrezGene]][[tax_id::9606]][[tf?::true]]
|?GeneID
|?GeneID
|?Symbol
|?Symbol
|?Associated motif id
|?Description
|?Description
|format=array
|format=array
Line 8: Line 9:
|order=DESC
|order=DESC
|mainlabel=-
|mainlabel=-
|sep=:
|sep=?
|propsep=/
|propsep=/
|limit=
|manysep=!
|manysep=<MANY>
|recordsep=<RCRD>
|recordsep=<RCRD>
}}
}}
}}
}}
{{#vardefine:db_content}}
{{#vardefine:db_content}}
{{#arraydefine:geneids_array|{{#var:geneids_content}}|:}}
 
{{#arraydefine:geneids_array|{{#var:geneids_content}}|?}}
 
{{
{{
   #loop: j
   #loop: j
Line 22: Line 24:
   | {{#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:Description|{{#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: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: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}}  }}


}}
}}
Line 34: Line 37:


<html>
<html>
<script type="text/javascript" src="/5/sstar/rb_js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/5/sstar/rb_js/html5button/datatables.min.js"></script>
<style type="text/css" title="currentStyle">
<style type="text/css" title="currentStyle">
@import "/resource_browser/rb_js/datatables/media/css/jquery.dataTables.css";
@import "/5/sstar/rb_js/html5button/datatables.css";
</style>
 
<script type="text/javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.min.js"></script>
.ImageBorder
        <script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/extras/TableTools/media/js/TableTools.min.js"></script>
{
<style type="text/css" title="currentStyle">
    border:1px solid lightgrey;
@import "/resource_browser/rb_js/datatables/media/css/jquery.dataTables.css";
    width      : 90px;
@import "/resource_browser/rb_js/datatables/extras/TableTools/media/css/TableTools.css";
    height      : 20px;
}
 
</style>
</style>
<script type="text/javascript">
<script type="text/javascript">
var content = "";
            var content = "";
var m_data = {};
            var m_data = {};
m_data.content = [];
            m_data.content = [];


$(document).ready(function() {
$(document).ready(function() {
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];
                var temp_array =temp.split("/");
                    var temp_array =temp.split("/");
                m_data.content.push({EntrezGene:'<a href=https://fantom5-collaboration.gsc.riken.jp/resource_browser/EntrezGene:'+temp_array[0]+'>'+temp_array[0]+'</a>', Symbol:temp_array[1],Description:temp_array[2],PeakCount:temp_array[3]});
                    var mot_id="";
                        if(temp_array[2].length> 0){ mot_id=temp_array[2];}else{mot_id="NA";}
                   
                    m_data.content.push({EntrezGene:'<a href=/5/sstar/EntrezGene:'+temp_array[0]+'>'+temp_array[0]+'</a>',             Symbol:temp_array[1],MotifId:mot_id,Description:temp_array[3],PeakCount:temp_array[4]});
                  
                  
                 }
                 }
             
$('#tf_table').DataTable( {
        dom: 'Blfrtip',
                processing: true,
                pageLength: 25,
        buttons: ['copyHtml5', 'excelHtml5', 'csvHtml5', 'pdfHtml5'],
        lengthMenu: [[10, 25, 50, -1], [10, 25, 50, "All"]],
                scrollCollapse: true,
                autoWidth: false,
                jQueryUI: false,
                order: [[ 2, "asc" ]],
                data: m_data.content,
        columns: [
{ data: "EntrezGene", title: "EntrezGene"},
            { data: "Symbol", title: "Symbol"},
            { data: "MotifId", title: "Associated Motif",
              render: function ( data, type, row, meta ) {
var motid = data;
if (motid == "NA") {
    return_val = "NA";
} else {
    var splitted = motid.split("!");
    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=\"/5/sstar/' + splitted[i] + '\"><img src=\"/5/sstar/seqlogo/jaspar/' + splitted[i].split(":")[1] + '.png"  class="ImageBorder"  alt="' + splitted[i] + '">' + '</a>' + return_val;
                } else if (splitted[i].toString().indexOf("Swissregulon") >= 0) {
                    /*return_val = '<a href=\"/5/sstar/'+ splitted[i] + '\"><img src=\"/5/sstar/seqlogo/' + replaceAll(splitted[i].split(":")[1]," ","_") + '.png"  class="ImageBorder"  alt="' + splitted[i] + '">' + '</a>' + return_val;*/
return_val = "";
                }
                else{
                    return_val = "";
                }
            }
        } else {
            if (splitted[0].toString().indexOf("JASPAR motif") >= 0) {
                return_val = '<a href=\"/5/sstar/' + splitted[0] + '\"><img src=\"/5/sstar/seqlogo/jaspar/' + splitted[0].split(":")[1] + '.png"  class="ImageBorder"  alt="' + splitted[0] + '">' + '</a>';
            } else if (splitted[0].toString().indexOf("Swissregulon") >= 0) {


var oTable = $('#tf_table').dataTable( {
              /* return_val = '<a href=\"/5/sstar/' + splitted[0] + '\"><img src=\"/5/sstar/seqlogo/' + replaceAll(splitted[0].split(":")[1]," ","_") + '.png" class="ImageBorder" alt="' + splitted[0] + '">' + '</a>';*/
                "bProcessing": true,
return_val = "";
                "iDisplayLength":25,
            }
                "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
            else{
                "bScrollCollapse": true,
                    return_val = "";
"bPaginate": true,
                 }
"bFilter": true,
        }
"bInfo": true,
    } else {
                "bJQueryUI": true,
        return_val = "NA";
                 "aaSorting": [[ 1, "asc" ]],
    }
                "aaData": m_data.content,
}


                "aoColumns":[
return return_val;
                                {"mData": "EntrezGene","sTitle": "EntrezGene"},
}
                                 {"mData": "Symbol","sTitle": "Symbol"},  
                                 },
                                 {"mData": "Description","sTitle": "Description"},  
                                 {data: "Description",title: "Description"},  
                                 {"mData": "PeakCount","sTitle": "Peak Count"}
                                 {data: "PeakCount",title: "#of peaks"}
                                 ]
                                 ]
} );
} );


var oTableTools = new TableTools( oTable, {"sSwfPath": "/resource_browser/rb_js/datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf", "aButtons": [ {"sExtends": "copy", "mColumns": "visible"}, {"sExtends": "csv", "mColumns": "visible"}, {"sExtends": "pdf", "mColumns": "visible"} ]});
$('#export_tool').before( oTableTools.dom.container );


} );


} );
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>
</html>
</html>
<table cellpadding="0" cellspacing="0" border="0" class="display" id="tf_table">   
 
<table cellpadding="0" cellspacing="0" border="0" class="stripe cell-border order-column compact" id="tf_table">   
</table>
</table>

Latest revision as of 09:57, 21 September 2021



Human transcription factors