Personal tools

Template:Known motif: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
(Created page with "<html> <style type="text/css" title="currentStyle"> @import "/resource_browser/rb_js/datatables/media/css/jquery.dataTables.css"; @import "/resource_browser/rb_js/datatables/e...")
 
No edit summary
 
(322 intermediate revisions by one other user not shown)
Line 1: Line 1:
<html>
<html>
<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/datatables/media/css/jquery.dataTables.css";
@import "/resource_browser/rb_js/datatables/extras/TableTools/media/css/TableTools.css";
@import "/5/sstar/rb_js/datatables/extras/TableTools/media/css/TableTools.css";
</style>
<script type="text/javascript" src="/5/sstar/rb_js/datatables/media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/5/sstar/rb_js/datatables/extras/TableTools/media/js/TableTools.min.js"></script>
<style type="text/css">
#wrap{
clear: both;
width: 750px;
padding-bottom: 5px;
background:#fff;
overflow:hidden;
}
#left_col{
float: left;
display:inline;
width:370px;
margin: 10px;
background:#fff;
}
#right_col{
float: right;
width: 330px;
padding-top: 20px;
margin:15px;
background:#fff;
}
.thumbnail{
position: relative;
z-index: 0;
}
 
.thumbnail:hover{
background-color: transparent;
z-index: 0;
}
 
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: transparent;
padding: 1px;
left: -410px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}
 
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 1px;
}
 
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
right: 40px; /*position where enlarged image should offset horizontally */
}
</style>
</style>
<script type="text/javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/resource_browser/rb_js/datatables/extras/TableTools/media/js/TableTools.min.js"></script>
<script type="text/javascript">
<script type="text/javascript">
var global_name="";
var motif_prefix="";
var motif_prefix="";
var sReturn ="";
var sReturn ="";
var motif_id ="";
var motif_id ="";
/* Formating function for row details */
var motif_db ="UNDEFINED";
var m_data = new Array();


$(document).ready(function() {
$(document).ready(function() {
      $('#example').dataTable( {
var subclusters="";
        "aaData": [
var subclusters_content = "</html>{{{motif_cluster_2013_march_motif_members}}}<html>";
    {"0":"HOCOMOCO:ZFHX3_f1","1":"HOCOMOCO:ZFHX3_f1"},
var subclusters_content = subclusters_content.split("/");
{"0":"HOCOMOCO:ARI3A_f1","1":"HOCOMOCO:ARI3A_f1"},
for(i=0;i<subclusters_content.length;i++){
{"0":"HOCOMOCO:HXD9_f1","1":"HOCOMOCO:HXD9_f1"},
var necessary_part="";
{"0":"HOCOMOCO:PDX1_do","1":"HOCOMOCO:PDX1_do"},
tmp_element = subclusters_content[i];
{"0":"HOCOMOCO:HXD4_f1","1":"HOCOMOCO:HXD4_f1"},
var total_length =tmp_element.length;
{"0":"HOCOMOCO:HXC8_f1","1":"HOCOMOCO:HXC8_f1"},
if(total_length>1){
{"0":"HOCOMOCO:LHX3_f1","1":"HOCOMOCO:LHX3_f1"},
var first_occurrence = tmp_element.indexOf(":");
{"0":"JASPAR:Nobox;MA0125.1","1":"JASPAR:Nobox;MA0125.1"},
necessary_part = tmp_element.substring(first_occurrence+1,total_length);
{"0":"JASPAR:Nkx2-5;MA0063.1","1":"JASPAR:Nkx2-5;MA0063.1"}
  motif_db    = tmp_element.substring(0,first_occurrence);
        ],
}else{
          "aoColumns": [
}
            { "sTitle": "motif type","fnRender": function(obj) {
if( necessary_part.length>1 ){
                      sReturn = obj.aData[ obj.iDataColumn ];
subclusters = necessary_part.split("~");
                              sReturn = sReturn.split(":");
if(subclusters.length>0 ){
                              motif_prefix = sReturn[0];
var tmp;
      return motif_prefix ;
for(j=0;j<subclusters.length;j++){
    }
tmp =new Array();
          },
tmp.push(motif_db);
            { "sTitle": "motif name", "fnRender": function ( obj ) {
var sub_tmp= subclusters[j].split(";");
sReturn = obj.aData[ obj.iDataColumn ];
if(sub_tmp.length>1){
var SReturn_org = sReturn ;
for(k=0;k<sub_tmp.length;k++){
var browser_link=global_name=SReturn_org ;
tmp.push(sub_tmp[k]);
sReturn = sReturn.split(":");
}
motif_prefix=sReturn[0];
}else{
motif_id = sReturn[1];
tmp.push(sub_tmp[0]);
if(motif_prefix =="JASPAR"){
tmp.push("");
sReturn = sReturn[1].split(";");
}
motif_id = sReturn[1];
tmp.push("");
browser_link=motif_prefix +"_motif:"+motif_id;
m_data.push(tmp);
}
m_data.length;
}
}
else{
}
}
 
 
motif_table = $('#example').dataTable({               
"sScrollY": "500px",
"bScrollCollapse": true,
                "iDisplayLength": 5,
"aLengthMenu": [[5, 10, -1], [5, 10, "All"]],
"bPaginate": true,
"bFilter": true,
"bInfo": true,
"aaData": m_data,
"aoColumnDefs":[
{"aTargets":[0],"sTitle": "motif_db"},
{"aTargets":[1],"sTitle": "motif_id", "fnRender": function ( obj ) {
                  motif_id = obj.aData[ obj.iDataColumn ];
                  motif_prefix = motif_id ;
                  motif_db = obj.aData[ 0 ];
if(motif_db== "JASPAR"){
sReturn =motif_db+"_motif:"+motif_id;
                  return '<a href=/5/sstar/'+sReturn+'>'+motif_id+'</a>';
}else
{
return motif_id;
}
                }
},
{"aTargets":[2],"sTitle": "motif_name", "fnRender": function (obj) {
                  motif_id = motif_prefix;
var ret ="";
if(motif_db=="HOCOMOCO" || motif_db=="UNIPROBE" || motif_db=="HOMER")
ret=motif_id.split(/_(.+)?/)[0];  
else if (motif_db=="SWISSREGULON"){
var i = motif_id.lastIndexOf('.');
if (i != -1) {
    ret= motif_id.substr(0, i) ;
}
}
else ret ="";
return ret;
 
}
},
{"aTargets":[3],"sTitle": "Sequence logo","fnRender": function (obj) {
                  motif_id = motif_prefix;
var number_prefix =loqoNumberPrefixLocator();
 
return logoLocator(motif_db,motif_id,number_prefix); }
}
],
"aaSorting": [[ 0, "asc" ]],
 
});
 
$('.dataTables_scrollBody').css("resize", "vertical");
motif_table_tools = new TableTools( motif_table, {"sSwfPath": "/5/sstar/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"} ]});
 
$('#motif_export_tool').before( motif_table_tools.dom.container );
 
});
 
function logoLocator(motif_db,motif_id,number_prefix){
 
motif_id= $.trim(motif_id);
 
if(motif_db=="SWISSREGULON"){
motif_id= motif_id.replace('(', '{');
    motif_id= motif_id.replace(')', '}');
 
}else{
    motif_id= motif_id.replace('{', '(');
    motif_id= motif_id.replace('}', ')');
}
}
return '<a href=/resource_browser/'+browser_link+'>'+motif_id +'</a>';}}
,
{ "sTitle": "Sequence logos", "mData": 1, "mRender": function (data) {


var tmp ="KNOWN"+"_"+motif_db +"_"+number_prefix+"_201304";
var uri = decodeURIComponent(motif_id);
return '<a class="" href="/5/sstar/seqlogos/'+tmp+"/"+ uri + '.png"><img src="/5/sstar/seqlogos/'+tmp+"/"+ uri +'.png" width="80px" height="26px" border="0"/></a>';
 
}
function loqoNumberPrefixLocator()
{
var number_prefix ="";
var number_prefix ="";
var SReturn_org = global_name;
 
motif_prefix = SReturn_org .split(":")[0];
if(motif_db == "HOCOMOCO"){
motif_id=  SReturn_org .split(":")[1];
if(motif_prefix == "HOCOMOCO"){
number_prefix = "426";
number_prefix = "426";
}
}
else if(motif_prefix == "JASPAR"){
else if(motif_db== "JASPAR"){
number_prefix = "130";
number_prefix = "130";
motif_id= SReturn_org .split(":")[1].split(";")[1];
}
}
else if(motif_prefix == "HOMER"){
else if(motif_db == "HOMER"){
number_prefix = "138";
number_prefix = "138";
}
}
else if(motif_prefix == "SWISSREGULON"){
else if(motif_db == "SWISSREGULON"){
number_prefix = "190";
number_prefix = "190";
}
}
else if(motif_prefix == "UNIPROBE"){
else if(motif_db == "UNIPROBE"){
number_prefix = "413";
number_prefix = "413";
}
}
else if(motif_prefix == "ENCODE"){
else if(motif_db == "ENCODE"){
number_prefix = "683";
number_prefix = "683";
}
return number_prefix;
}
}


motif_prefix = "KNOWN"+"_"+motif_prefix +"_"+number_prefix+"_201304";
return '<img src="/resource_browser/seqlogos/' +motif_prefix+"/"+ motif_id+ '.png" width ="80" height = "20">'; }
}




                      ] 
      } ); 
} );
</script>
</script>
</html>
== Representative Motif == 
<div id ="wrap" style="background-color:White; {round corners}} padding: 0.5em 1em;">
<div id="left_col">
{{#info:<br>Analyst:  Ivan Kulakovskiy,Ilya Vorontsov, Vsevolod Makeev, Michiel de Hoon <br>
May 2013, Collection Name: Non-redundant known motifs<br>
Analysis information: 208 clusters of known motifs were produced by MACRO-APE [http://autosome.ru/macroape/]  using the general phase1 motif clustering procedure applied for known motif collections.
<br>207 of 208 clusters had at least one member passing motif-promoter correlation procedure.For these clusters representative motifs were selected based on motif-promoter correlation values.For each cluster only motifs with an average distance to of ther members not greater than mean+SD were considered as representatives.
}}
<br>
* Name    :[[knownname::{{{name}}}]]
* db      :[[motifdb::{{{representative_motif_db}}}]]
* Id      :[[motifid::{{{representative_motif_id}}}]]
* name    :[[motifname::{{{representative_motif_name}}}]]
* score    :[[motifscore::{{{score}}}]]<br>
* External refs: {{#arraymap:{{{entrez_gene_id}}}|,|$|
<span>
:[http://www.ncbi.nlm.nih.gov/gene?term=$  EntrezGene:[[GeneID::$]]]<html><br></html>[http://www.uniprot.org/uniprot/?query=$  UniProt:$]
</span>
|}}
* Internal refs: {{#arraymap:{{{entrez_gene_id}}}|,|$|
<span>
:[[EntrezGene:$]]<html><br></html>
</span>
|}}
<!--{{#ifeq: {{{representative_motif_db}}} | JASPAR |[[JASPAR_motif:{{{representative_motif_id}}}|]] | not equal}}-->
</div>
<div id="right_col">
<html>
<script type="text/javascript">
var motif_id= "</html>{{{name}}}<html>";
document.write(logoLocator2(motif_id));
function logoLocator2(motif_id){
var index = motif_id.indexOf(' ');
if (index >= 0) {
    motif_id= motif_id.substr(0, index - 1) +"_"+ motif_id.substr(index);
}


var tmp ="/5/sstar/seqlogos/"+ "known_motifs"+"_201304"+"/"+motif_id.toLowerCase()+".png";
var uri = encodeURI(tmp);
return number_prefix='<img src="'+uri+'"  id="pic" width ="310" height = "100">'
;
}
</script>
</html>
</html>
* Name:[[name::{{{name}}}]]
</div>
== P-values for the human samples ==
 
{{#info:<br>Analyst: Ivan}}
</div>
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example2"></table>
 
 
{| class="wikitable mw-collapsible mw-collapsed" style="width:500px"
! Motif matrix
|-
| <table cellspacing="0" border="1"><tr><td>{{#replace:{{#replace:{{{PWM}}}|!|</td></tr><tr><td>}}|;|</td><td>}}</tr></table>
|}
 
== Sub Motif Members ==
<span id = "motif_export_tool"></span>
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example"></table>
 
{{#set:EntrezGene={{{entrez_gene_id}}}}}
[[Category:Motif]]
[[Category:NonRedundantMotifCluster]]

Latest revision as of 15:19, 24 August 2015

Representative Motif

<br>Analyst: Ivan Kulakovskiy,Ilya Vorontsov, Vsevolod Makeev, Michiel de Hoon <br>May 2013, Collection Name: Non-redundant known motifs<br>Analysis information: 208 clusters of known motifs were produced by MACRO-APE [1] using the general phase1 motif clustering procedure applied for known motif collections.<br>207 of 208 clusters had at least one member passing motif-promoter correlation procedure.For these clusters representative motifs were selected based on motif-promoter correlation values.For each cluster only motifs with an average distance to of ther members not greater than mean+SD were considered as representatives.

  • Name  :{{{name}}}
  • db  :{{{representative_motif_db}}}
  • Id  :{{{representative_motif_id}}}
  • name  :{{{representative_motif_name}}}
  • score  :{{{score}}}
  • External refs:
EntrezGene:{{{entrez_gene_id}}}
UniProt:{{{entrez_gene_id}}}

  • Internal refs:
[[EntrezGene:{{{entrez_gene_id}}}]]


Motif matrix
{{{PWM}}}

Sub Motif Members