Personal tools

Browse samples: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
No edit summary
 
(42 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Details of profiled samples (incl. primary cells, cell lines, and tissues)
{{Loading|loadingimage=sprites.gif}}Details of profiled samples (incl. primary cells, cell lines, and developmental)
 
<html>
<html>
<script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.min.js"></script>
<b>Filter by sample category</b><br>
<script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/extras/TableTools/media/js/TableTools.min.js"></script>
<div id="format">
<style type="text/css" title="currentStyle">
    <input type="checkbox" id="primary_cells" name="primary_cells" value="primary cells" /><label for="primary cells">primary cells</label>
@import "/resource_browser/rb_js/datatables/media/css/jquery.dataTables.css";
@import "/resource_browser/rb_js/datatables/extras/TableTools/media/css/TableTools.css";
</style>
<script type="text/javascript">


$(document).ready(function() {
<input type="checkbox" id="cell lines" name="cell lines" value="cell lines" /><label for="cell lines">cell lines</label>
    var oTable = $('.ff_sample_list').dataTable({
"iDisplayLength": 25,
"aLengthMenu": [[25, 100, 500, -1], [25, 100, 500, "All"]],
"aoColumnDefs": [{ "sWidth": "100px", "aTargets": [0] }, { "bVisible": false, "aTargets": [ 3 ] }],
});


var oTableTools = new TableTools( oTable, {"sSwfPath": "/resource_browser/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"} ]});
    <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>


$('#export_tool').before( oTableTools.dom.container );
<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[name='p1']").click(function() {
$('input[type=checkbox]').on('click',function(){
if(this.checked){
if($(this).prop('checked')){s=$(this).val();}else {s=""}
oTable.fnFilter( '^1$', 3, true);
oTable.column(2).search(s).draw();
}else{
oTable.fnFilter( '', 3);
}
})
 
$("input[name='primary_cells']").click(function() {
if(this.checked){
oTable.fnFilter( 'primary cells', 2);
}else{
oTable.fnFilter( '', 2);
}
});
$("input[name='tissues']").click(function() {
if(this.checked){
oTable.fnFilter( 'tissues', 2);
}else{
oTable.fnFilter( '', 2);
}
});
$("input[name='cell_lines']").click(function() {
if(this.checked){
oTable.fnFilter( 'cell lines', 2);
}else{
oTable.fnFilter( '', 2);
}
});
$("input[name='time_courses']").click(function() {
if(this.checked){
oTable.fnFilter( 'time courses', 2);
}else{
oTable.fnFilter( '', 2);
}
});
});


} );
</script>
</script>
<input type="checkbox" name="p1">Phase1 sample<br><br>
<!--
<b>Filter by sample category</b><br>
<input type="checkbox" name="primary_cells">primary cells   
<input type="checkbox" name="tissues">tissues   
<input type="checkbox" name="cell_lines">cell lines
<input type="checkbox" name="time_courses">time courses
-->
<span id="export_tool"></span>
</html>
</html>
{{#ask:[[Concept:FF_samples_withname]]|[[Sample_species::Human (Homo sapiens)]]|mainlabel=FF ontology id|?Name|?Sample_category|?datafreeze_phase
|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