Personal tools

Test: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
{{Loading|loadingimage=sprites.gif}}Details of profiled samples (incl. primary cells, cell lines, and developmental)
<table><tr><th scope="row" align="right" valign="top"> TSS regions:</th><td>{{#if:{{#compound_query:[[FFCP PHASE2:+]][[Category:FFCP]][[EntrezGene::2099]];?short_description|[[FFCP PHASE1:+]][[EntrezGene::2099]];?short_description
 
|?short_description=Short name
<html>
|format=ul
<script type="text/javascript" language="javascript" src="/5/sstar/rb_js/datatables/media/js/jquery.dataTables.min.js"></script>
|headers=hide
<script type="text/javascript" language="javascript" src="/5/sstar/rb_js/datatables/extras/TableTools/media/js/ZeroClipboard.js"></script>
|sort=short_description
<script type="text/javascript" language="javascript" src="/5/sstar/rb_js/datatables/extras/TableTools/media/js/TableTools.min.js"></script>
}}|{{#compound_query:[[FFCP PHASE2:+]][[Category:FFCP]][[EntrezGene::2099]];?short_description|[[FFCP PHASE1:+]][[EntrezGene::2099]];?short_description
<style type="text/css" title="currentStyle">
|?short_description=Short name
@import "/5/sstar/rb_js/datatables/media/css/jquery.dataTables.css";
|format=ul
@import "/5/sstar/rb_js/datatables/extras/TableTools/media/css/TableTools.css";
|headers=hide
</style>
|sort=short_description
<script type="text/javascript">
}}|NA}}
 
</td></tr>
$(document).ready(function() {
</table>
    var oTable =  $('.ff_sample_list').dataTable({
"iDisplayLength": 25,
"aLengthMenu": [[25, 100, 500, -1], [25, 100, 500, "All"]],
"aoColumnDefs": [{ "sWidth": "100px", "aTargets": [0] },{ "bVisible": true, "aTargets": [2] }]
});
 
var oTableTools = new TableTools( oTable, {"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"} ]});
 
$('#export_tool').before( oTableTools.dom.container );
 
$('input[type=checkbox]').click(function () {
    selection = $.map($('input[type=checkbox]:checked'), function (element) {
        return element.value;
    });
   
    clearFilters();
   
    if (selection.length) {
      (function (s) {
            $.fn.dataTableExt.afnFiltering.push(
                function (settings, data, index) {
                    for (var i=0; i < s.length; i++) {
                        if (data[2] == s[i]) return true;
                    }
                    return false;
                }
            );
        })(selection);
    }
  oTable.fnFilter("");
});
 
 
function clearFilters() {
    //dataTable.fnFilter("");
    $.fn.dataTableExt.afnFiltering = [];
}
 
 
 
} );
</script>
<b>Filter by sample category</b><br>
<div id="format">
    <input type="checkbox" id="primary_cells" name="primary_cells" value="primary cells" /><label for="primary cells">primary cells</label>
 
<input type="checkbox" id="cell lines" name="cell lines" value="cell lines" /><label for="cell lines">cell lines</label>
 
    <input type="checkbox" id="tissues"      name="tissues"      value="tissues" /><label for="tissues">tissues</label>
    <input type="checkbox" id="developmental"    name="developmental"    value="developmental" /><label for="developmental">developmental</label>
<input type="checkbox" id="time_courses"    name="time_courses"    value="time courses" /><label for="time_courses">time courses</label>
<input type="checkbox" id="control"    name="control"    value="control" /><label for="control">control</label>
</div>
 
<span id="export_tool"></span>
 
 
</html>
{{#ask:[[Category:FF_Samples]]|mainlabel=FF ontology id|?Name|?Sample_category
|format=ttable|class=ff_sample_list|limit=2000|searchlabel=}}

Revision as of 15:33, 13 June 2017

TSS regions: