|
|
Line 14: |
Line 14: |
|
| |
|
| $(document).ready(function() { | | $(document).ready(function() { |
| $('#example').dataTable( {
| | var sublusters = "</html>{{{motif_cluster_2013_march_subclusters}}}<html>"; |
| "aaData": [
| | var sublusters = sublusters .split("/"); |
| {"0":"HOCOMOCO:ZFHX3_f1","1":"HOCOMOCO:ZFHX3_f1"},
| |
| {"0":"HOCOMOCO:ARI3A_f1","1":"HOCOMOCO:ARI3A_f1"}, | |
| {"0":"HOCOMOCO:HXD9_f1","1":"HOCOMOCO:HXD9_f1"}, | |
| {"0":"HOCOMOCO:PDX1_do","1":"HOCOMOCO:PDX1_do"},
| |
| {"0":"HOCOMOCO:HXD4_f1","1":"HOCOMOCO:HXD4_f1"},
| |
| {"0":"HOCOMOCO:HXC8_f1","1":"HOCOMOCO:HXC8_f1"},
| |
| {"0":"HOCOMOCO:LHX3_f1","1":"HOCOMOCO:LHX3_f1"},
| |
| {"0":"JASPAR:Nobox;MA0125.1","1":"JASPAR:Nobox;MA0125.1"},
| |
| {"0":"JASPAR:Nkx2-5;MA0063.1","1":"JASPAR:Nkx2-5;MA0063.1"}
| |
| ],
| |
| "aoColumns": [
| |
| { "sTitle": "motif type","fnRender": function(obj) {
| |
| sReturn = obj.aData[ obj.iDataColumn ];
| |
| sReturn = sReturn.split(":");
| |
| motif_prefix = sReturn[0];
| |
| return motif_prefix ;
| |
| }
| |
| },
| |
| { "sTitle": "motif name", "fnRender": function ( obj ) {
| |
| sReturn = obj.aData[ obj.iDataColumn ];
| |
| var SReturn_org = sReturn ; | |
| var browser_link=global_name=SReturn_org ;
| |
| sReturn = sReturn.split(":");
| |
| motif_prefix=sReturn[0];
| |
| motif_id = sReturn[1];
| |
| if(motif_prefix =="JASPAR"){
| |
| sReturn = sReturn[1].split(";");
| |
| motif_id = sReturn[1];
| |
| browser_link=motif_prefix +"_motif:"+motif_id;
| |
| } | | } |
| return '<a href=/resource_browser/'+browser_link+'>'+motif_id +'</a>';}}
| |
| ,
| |
| { "sTitle": "Sequence logos", "mData": 1, "mRender": function (data) {
| |
|
| |
| var number_prefix ="";
| |
| var SReturn_org = global_name;
| |
| motif_prefix = SReturn_org .split(":")[0];
| |
| motif_id= SReturn_org .split(":")[1];
| |
| if(motif_prefix == "HOCOMOCO"){
| |
| number_prefix = "426";
| |
| }
| |
| else if(motif_prefix == "JASPAR"){
| |
| number_prefix = "130";
| |
| motif_id= SReturn_org .split(":")[1].split(";")[1];
| |
| }
| |
| else if(motif_prefix == "HOMER"){
| |
| number_prefix = "138";
| |
| }
| |
| else if(motif_prefix == "SWISSREGULON"){
| |
| number_prefix = "190";
| |
| }
| |
| else if(motif_prefix == "UNIPROBE"){
| |
| number_prefix = "413";
| |
| }
| |
| else if(motif_prefix == "ENCODE"){
| |
| number_prefix = "683";
| |
| }
| |
|
| |
| motif_prefix = "KNOWN"+"_"+motif_prefix +"_"+number_prefix+"_201304";
| |
| return '<img src="/resource_browser/seqlogos/' +motif_prefix+"/"+ motif_id+ '.png" width ="80" height = "20">'; }
| |
| }
| |
|
| |
|
| |
| ]
| |
| } );
| |
| } );
| |
| </script> | | </script> |
|
| |
| </html> | | </html> |
| * Name:known{{{id}}} | | |
| | * Name:known{{{name}}} |
| == Sub Clusters == | | == Sub Clusters == |
| {{#info:<br>Analyst: Ivan}} | | {{#info:<br>Analyst: Ivan}} |
| <table cellpadding="0" cellspacing="0" border="0" class="display" id="example"></table> | | <table cellpadding="0" cellspacing="0" border="0" class="display" id="example"></table> |