Personal tools

User:Serkan/test2/known2: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
(Created page with "<html> <title>known motifs</title> <script type="text/javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.min.js"></script> <style type="text/css...")
 
No edit summary
Line 9: Line 9:
/* Formating function for row details */
/* Formating function for row details */


var global_name ="";
$(document).ready(function() {
$(document).ready(function() {
       $('#example').dataTable( {
       $('#example').dataTable( {
Line 29: Line 30:
    }
    }
           },
           },
            { "sTitle": "motif name", "fnRender": function ( obj ) {
                        { "sTitle": "motif name", "fnRender": function ( obj ) {
var sReturn = obj.aData[ obj.iDataColumn ];
var sReturn = obj.aData[ obj.iDataColumn ];
var SReturn_org = sReturn ;
var SReturn_org = sReturn ;
                              sReturn = sReturn.split(":");
global_name=SReturn_org ;
                      return '<a href=/resource_browser/User:Serkan/test2/'+SReturn_org+'>'+sReturn[1]+'</a>';} }
sReturn = sReturn.split(":");
return '<a href=/resource_browser/User:Serkan/test2/'+global_name+'>'+sReturn[1]+'</a>';}}
,
{ "sTitle": "Sequence logos", "mData": 1, "mRender": function (data) {
 
var number_prefix ="";
var SReturn_org = global_name;
motif_prefix = SReturn_org .split(":")[0];
var motif_id=  SReturn_org .split(":")[1];
if(motif_prefix = "HOCOMOCO"){
number_prefix = "426";
}
else if(sReturn_prefix = "JASPAR"){
number_prefix = "130";
}
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">'; }
}
                       ]   
                       ]   
       } );   
       } );   

Revision as of 11:45, 19 April 2013

known motifs