Personal tools

User:Hisa: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
No edit summary
Line 16: Line 16:
{{CURRENTTIMESTAMP}}
{{CURRENTTIMESTAMP}}


<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 ] }],
"fnDrawCallback": function() {collectdata(); drawchart(); }
});
$('#gene_exptable_wrapper .dataTables_scrollHead th').css("height", "100px").css("vertical-align", "bottom");


 
http://lifesciencedb.jp/bp3d/icon.cgi?i=FMA7152&p=front&v=3%2e0&t=conventional&c=1&m=bp3d&s=L
var data = [];
var plotdata = [];
 
 
// chart checkbox
for (i2=1, len2=gene_exptable.rows[1].cells.length; i2<len2; i2++){
key2 = i2-1;
        $("#gene_exptable_chart_chkbox").append('<input type="checkbox" name="' + key2 +
                              '" checked="checked" id="id' + key2 + '"><label for="id' + key2 + '">'
                                + $('#gene_exptable_wrapper tr')[1].cells[i2].innerText + '</label><br/>');
}
 
function collectdata(){
data = [];
for (i2=1, len2=gene_exptable.rows[1].cells.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": $('#gene_exptable_wrapper tr')[1].cells[i2].innerText.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:Hg19|{{#ask:[[Category:FFCP]][[Short description::p1@ACTB]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p1@ACTB,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p2@ACTB]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p2@ACTB,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p3@ACTB]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p3@ACTB,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p4@ACTB]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p4@ACTB,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p5@ACTB]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p5@ACTB,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p6@ACTB]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p6@ACTB,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p7@ACTB]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p7@ACTB,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p8@ACTB]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p8@ACTB,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p9@ACTB]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p9@ACTB,|searchlabel=}}|{{#ask:[[Category:FFCP]][[Short description::p10@ACTB]]|mainlabel=-|?phase1_expression|link=none|format=list|headers=hide|limit=1|intro=p10@ACTB,|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>
 
 
 
 
== gene mouse ==
<html>
<script language="javascript" type="text/javascript" src="/resource_browser/rb_js/highcharts/highcharts.js"></script>
<script language="javascript" type="text/javascript" src="/resource_browser/rb_js/highcharts/jquery.highchartTable.js"></script>
<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>





Revision as of 18:36, 28 November 2012

motif without matrices Swissregulon:SRY.p1 Swissregulon:HOX(A,B,D)3.p1

doubled top motif tables CNhs10855 & CNhs11062 CNhs11245 & CNhs11183 CNhs11248 & CNhs11185 CNhs11772 & CNhs12996 CNhs11781 & CNhs12997


20121128183625 yes

20240430203126


http://lifesciencedb.jp/bp3d/icon.cgi?i=FMA7152&p=front&v=3%2e0&t=conventional&c=1&m=bp3d&s=L