Personal tools

User:Hisa/SemanticSbox: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
(Replaced content with "{{#homer_list:Homer_de_novo_Motif_Results/CNhs10464/homerResults.html|homerResults|Homer_de_novo_Motif_Results/CNhs10464/homerResults}}")
Line 1: Line 1:
<html>
{{#homer_list:Homer_de_novo_Motif_Results/CNhs10464/homerResults.html|homerResults|Homer_de_novo_Motif_Results/CNhs10464/homerResults}}
<script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/extras/TableTools/media/js/TableTools.min.js"></script>
<script type="text/javascript" language="javascript" src="/resource_browser/rb_js/flot/jquery.flot.min.js"></script>
<style type="text/css" title="currentStyle">
@import "/resource_browser/rb_js/datatables/media/css/jquery.dataTables.css";
@import "/resource_browser/rb_js/datatables/extras/TableTools/media/css/TableTools.css";
</style>
 
</html>
 
<html>
<style type="text/css"> 
.rotate90 {
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
-webkit-transform-origin: 6px 18px;
-moz-transform-origin: 6px 18px;
width:1px;
}
.highlight { background-color: yellow }
</style>
<script type="text/javascript">
$(document).ready(function() {
    var oTable =  $('#gene_exptable').dataTable({
"sScrollY": "300px",
"bPaginate": false,
"bScrollCollapse": true,
"iDisplayLength": -1,
"aaSorting": [[1,'desc']],
"aoColumnDefs": [ { "asSorting": [ "desc", "asc" ], "aTargets": [ "_all" ] }  , { "bSortable": false, "aTargets": [ 0 ] }]
});
$('#gene_exptable_wrapper .dataTables_scrollHead th').css("height", "100px").css("vertical-align", "bottom");
 
 
var data = [];
var plotdata = [];
 
 
// chart checkbox
for (var i2=1; i2<oTable.fnSettings().aoColumns.length; i2++){
key2 = i2-1;
        $("#gene_exptable_chart_chkbox").append('<input type="checkbox" name="' + key2 +
                              '" checked="checked" id="id' + key2 + '"><label for="id' + key2 + '">'
                                + $(oTable.fnSettings().aoColumns[i2].sTitle).text() + '</label><br/>');
}
 
function collectdata(){
data = [];
for (i2=1, len2=oTable.fnSettings().aoColumns.length; i2<len2; i2++){
var plots = [];
for (i1=1, len1=$('#gene_exptable tr').length; i1<len1; i1++) {
    plots.push([i1,$("#gene_exptable tr")[i1].cells[i2].innerHTML]);
}
data.push({"label": oTable.fnSettings().aoColumns[i2].sTitle.replace(/<(?:.|\n)*?>/gm, '').replace(/(^\s+)|(\s+$)/g, ""), "data": plots});
}
}
 
 
function drawchart(){
 
plotdata = [];
 
$("#gene_exptable_chart_chkbox").find("input:checked").each(function () {
var key = $(this).attr("name");
plotdata.push(data[$(this).attr("name")]);
});
 
var plot1 = $.plot($("#gene_exptable_chart"), plotdata, {
                yaxis : { axisLabel : 'TPM' },
lines : { show : false },
points : { show : true },
                grid: { hoverable: true, clickable: true },
xaxis : { tickDecimals : 0, show: false },
                legend: { show: false }
});
 
//test
var data_series = plot1.getData();
 
$("#gene_exptable_chart_chkbox label").css("background-color", "white");
$.each(data_series , function(){
$("#gene_exptable_chart_chkbox label:contains(" + this.label + ")").css("background-color", this.color);
});
 
//test
//$('#test').text(oTable.fnSettings().aoData[1]._aData[0]);
$('#test').text(oTable.fnGetData(2, 2));
//test1 = oTable.fnSettings().oRow;
 
}
 
collectdata();
drawchart();
 
// re-draw chart event
$(window).resize(function() { drawchart(); });
$("th").click(function() {collectdata(); drawchart(); } );
$("#gene_exptable_paginate").click(function() {collectdata(); drawchart(); } );
$('#gene_exptable').bind('filter', function() {
setTimeout(function(){
collectdata(); drawchart();}, 1000);
} );
$('#gene_exptable_length').change(function() {collectdata(); drawchart(); } );
$("#gene_exptable_chart_chkbox").find("input").click(function() { drawchart(); });
 
// tooltip function start
    function showTooltip(x, y, contents) {
        $('<div id="tooltip">' + contents + '</div>').css( {
            position: 'absolute',
            display: 'none',
            top: y + 5,
            left: x + 5,
            border: '1px solid #aaa',
            padding: '2px',
            'background-color': '#fff',
            opacity: 0.80
        }).appendTo("body").fadeIn(200);
    }
 
    var previousPoint = null;
    $("#gene_exptable_chart").bind("plothover", function (event, pos, item) {
        $("#x").text(pos.x.toFixed(2));
        $("#y").text(pos.y.toFixed(2));
            if (item) {
                if (previousPoint != item.dataIndex) {
                    previousPoint = item.dataIndex;
                   
                    $("#tooltip").remove();
                    var x = item.datapoint[0].toFixed(0),
                        y = item.datapoint[1].toFixed(2);
                 
                    showTooltip(item.pageX, item.pageY,
                              "TSS: "+ item.series.label +"<br>TPM: "+y);
                }
            }
            else {
                $("#tooltip").remove();
                previousPoint = null;           
            }
    });
// tooltip function end
 
// clicking point function
    $("#gene_exptable_chart").bind("plotclick", function (event, pos, item) {
if (item){
var vdata = Math.round($('#gene_exptable').height())/item.series.data.length*item.dataIndex;
$('#gene_exptable_wrapper .dataTables_scrollBody').animate({ scrollTop: vdata-150 }, 'slow');
$("#gene_exptable_wrapper .dataTables_scrollBody tbody td").removeClass('highlight');
$('#gene_exptable_wrapper .dataTables_scrollBody tbody tr:eq(' + item.dataIndex+ ') td').addClass('highlight');
}
    });
// clicking point function end
 
 
 
 
 
} );
</script>
</html>
 
{{#gene_exptable:mm9|{{#ask:[[Category:FFCP]][[Short description::p1@Cox7a1]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p1@Cox7a1,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p2@Cox7a1]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p2@Cox7a1,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p3@Cox7a1]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p3@Cox7a1,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p4@Cox7a1]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p4@Cox7a1,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p5@Cox7a1]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p5@Cox7a1,|searchlabel=}}
}}
 
<div id="gene_exptable_chart" style="float:left;width:600px;height:300px;"></div>
<div id="gene_exptable_chart_chkbox" style="float:left;"></div>
<div style="clear:both;"></div>
 
<div id="test"></div>

Revision as of 15:34, 9 November 2012

Homer de novo Motif Results Total target sequences = 1928, Total background sequences = 47631

RankMotifP-valueTargetswith MotifBackgroundswith MotifBest Match (Score) and Link to Details
11e-8050.05%29.32%POL003.1_GC-box (0.87)
21e-3712.03%4.68%JUN_f1_HM09 (0.96)
31e-2950.83%37.95%KLF4_f2_HM09 (0.86)
41e-2815.87%8.10%MA0450.1_hkb (0.78)
51e-2431.74%21.65%TBP_f1_HM09 (0.87)
61e-233.06%0.56%HNF1B_f1_HM09 (0.93)
71e-2226.92%17.91%PH0012.1_Cdx1 (0.77)
81e-1919.14%11.95%PB0017.1_Foxj3_1 (0.76)
91e-1818.67%11.66%Usf2(HLH)/C2C12-Usf2-ChIP-Seq(GSE36030)/Homer (0.93)
101e-1725.99%18.14%CDX1_f1_HM09 (0.82)
111e-1616.29%10.11%NR4A2.p2.SwissRegulon.nucfreq (0.81)
121e-1626.82%19.05%FEV.p2.SwissRegulon.nucfreq (0.84)
131e-1542.27%33.29%CHR/Cell-Cycle-Exp/Homer (0.71)
141e-1524.74%17.33%PB0022.1_Gata5_1 (0.86)
151e-158.71%4.41%HNF4A_f1_HM09 (0.85)
161e-1510.58%5.81%MA0108.2_TBP (0.75)
171e-148.82%4.58%CEBPE_f1_HM09 (0.78)
181e-144.72%1.83%CEBPZ_si_HM09 (0.92)
191e-1359.60%50.98%MA0313.1_HAP2 (0.77)
201e-1310.89%6.37%MA0391.1_STB4 (0.78)
211e-1216.18%10.67%MA0252.1_vis (0.89)
221e-1214.57%9.43%JUN.p2.SwissRegulon.nucfreq (0.82)
231e-1215.40%10.13%CEBPB_f1_HM09 (0.91)
241e-123.37%1.21%ENCODE UW.Motif.0088 (0.81)