Personal tools

Browse samples: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
No edit summary
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Loading|loadingimage=sprites.gif}}Details of profiled samples (incl. primary cells, cell lines, and developmental)
{{Loading|loadingimage=sprites.gif}}Details of profiled samples (incl. primary cells, cell lines, and developmental)
<html>
<html>
<script type="text/javascript" language="javascript" src="/5/sstar/rb_js/datatables/media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" language="javascript" src="/5/sstar/rb_js/datatables/extras/TableTools/media/js/ZeroClipboard.js"></script>
<script type="text/javascript" language="javascript" src="/5/sstar/rb_js/datatables/extras/TableTools/media/js/TableTools.min.js"></script>
<style type="text/css" title="currentStyle">
@import "/5/sstar/rb_js/datatables/media/css/jquery.dataTables.css";
@import "/5/sstar/rb_js/datatables/extras/TableTools/media/css/TableTools.css";
</style>
<script type="text/javascript">
$(document).ready(function() {
    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>
<b>Filter by sample category</b><br>
<div id="format">
<div id="format">
Line 66: Line 13:
</div>
</div>


<span id="export_tool"></span>
<span id="export_tool"></span></html>
{{#ask:[[Concept:FF_samples_withname]][[Sample_species::Human (Homo sapiens)]]|mainlabel=FF ontology id|?Name|?Sample_category|format=ttable|class=ff_sample_list stripe cell-border order-column compact|limit=2000|searchlabel=|headers=hide}}
<html><style type="text/css" title="currentStyle">
@import "/5/sstar/rb_js/html5button/datatables.css";
</style>
<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>
<script type="text/javascript">
var oTable =  $('.ff_sample_list').DataTable({
        dom: 'Blfrtip',
        lengthMenu: [[25, 100, 500, -1], [25, 100, 500, "All"]],
        buttons: ['copyHtml5', 'excelHtml5', 'csvHtml5', 'pdfHtml5'],
        columns: [
{ title: "FF ontology id", width: "100px" },
            { title: "Name"},
            { title: "Sample category", visible: true }
        ]
});


$('input[type=checkbox]').on('click',function(){
if($(this).prop('checked')){s=$(this).val();}else {s=""}
oTable.column(2).search(s).draw();
});


</script>
</html>
</html>
{{#ask:[[Concept:FF_samples_withname]]|[[Sample_species::Human (Homo sapiens)]]|mainlabel=FF ontology id|?Name|?Sample_category
|format=ttable|class=ff_sample_list|limit=2000|searchlabel=}}

Latest revision as of 19:59, 3 July 2023

Details of profiled samples (incl. primary cells, cell lines, and developmental) Filter by sample category