Browse Transcription Factors hg19: Difference between revisions
From FANTOM5_SSTAR
mNo edit summary |
mNo edit summary |
||
(23 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
|sep=? | |sep=? | ||
|propsep=/ | |propsep=/ | ||
|manysep=! | |manysep=! | ||
|recordsep=<RCRD> | |recordsep=<RCRD> | ||
Line 38: | Line 37: | ||
<html> | <html> | ||
<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> | |||
<style type="text/css" title="currentStyle"> | <style type="text/css" title="currentStyle"> | ||
@import "/ | @import "/5/sstar/rb_js/html5button/datatables.css"; | ||
.ImageBorder | .ImageBorder | ||
Line 50: | Line 50: | ||
</style> | </style> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
var content = ""; | var content = ""; | ||
Line 69: | Line 65: | ||
if(temp_array[2].length> 0){ mot_id=temp_array[2];}else{mot_id="NA";} | if(temp_array[2].length> 0){ mot_id=temp_array[2];}else{mot_id="NA";} | ||
m_data.content.push({EntrezGene:'<a href=/ | m_data.content.push({EntrezGene:'<a href=/5/sstar/EntrezGene:'+temp_array[0]+'>'+temp_array[0]+'</a>', Symbol:temp_array[1],MotifId:mot_id,Description:temp_array[3],PeakCount:temp_array[4]}); | ||
} | } | ||
$('#tf_table').DataTable( { | |||
dom: 'Blfrtip', | |||
processing: true, | |||
pageLength: 25, | |||
buttons: ['copyHtml5', 'excelHtml5', 'csvHtml5', 'pdfHtml5'], | |||
lengthMenu: [[10, 25, 50, -1], [10, 25, 50, "All"]], | |||
scrollCollapse: true, | |||
autoWidth: false, | |||
jQueryUI: false, | |||
order: [[ 2, "asc" ]], | |||
data: m_data.content, | |||
columns: [ | |||
{ data: "EntrezGene", title: "EntrezGene"}, | |||
{ data: "Symbol", title: "Symbol"}, | |||
{ data: "MotifId", title: "Associated Motif", | |||
render: function ( data, type, row, meta ) { | |||
var motid = data; | |||
var motid = | |||
if (motid == "NA") { | if (motid == "NA") { | ||
return_val = "NA"; | return_val = "NA"; | ||
} else { | } else { | ||
var splitted = motid.split("!"); | var splitted = motid.split("!"); | ||
if (splitted != null) { | if (splitted!=null) { | ||
if (splitted.length > 1) { | if (splitted.length > 1) { | ||
var return_val = "" | var return_val = ""; | ||
for (i = 0; i < splitted.length; i++) { | for (i = 0; i < splitted.length; i++) { | ||
if (splitted[i].toString().indexOf(" | if (splitted[i].toString().indexOf("JASPAR motif") >= 0) { | ||
return_val = '<a href=\"/ | return_val = '<a href=\"/5/sstar/' + splitted[i] + '\"><img src=\"/5/sstar/seqlogo/jaspar/' + splitted[i].split(":")[1] + '.png" class="ImageBorder" alt="' + splitted[i] + '">' + '</a>' + return_val; | ||
} else if (splitted[i].toString().indexOf("Swissregulon") >= 0) { | } else if (splitted[i].toString().indexOf("Swissregulon") >= 0) { | ||
/*return_val = '<a href=\"/ | /*return_val = '<a href=\"/5/sstar/'+ splitted[i] + '\"><img src=\"/5/sstar/seqlogo/' + replaceAll(splitted[i].split(":")[1]," ","_") + '.png" class="ImageBorder" alt="' + splitted[i] + '">' + '</a>' + return_val;*/ | ||
return_val = ""; | return_val = ""; | ||
} | } | ||
Line 109: | Line 104: | ||
} | } | ||
} else { | } else { | ||
if (splitted[0].toString().indexOf(" | if (splitted[0].toString().indexOf("JASPAR motif") >= 0) { | ||
return_val = '<a href=\"/ | return_val = '<a href=\"/5/sstar/' + splitted[0] + '\"><img src=\"/5/sstar/seqlogo/jaspar/' + splitted[0].split(":")[1] + '.png" class="ImageBorder" alt="' + splitted[0] + '">' + '</a>'; | ||
} else if (splitted[0].toString().indexOf("Swissregulon") >= 0) { | } else if (splitted[0].toString().indexOf("Swissregulon") >= 0) { | ||
/* return_val = '<a href=\"/ | /* return_val = '<a href=\"/5/sstar/' + splitted[0] + '\"><img src=\"/5/sstar/seqlogo/' + replaceAll(splitted[0].split(":")[1]," ","_") + '.png" class="ImageBorder" alt="' + splitted[0] + '">' + '</a>';*/ | ||
return_val = ""; | return_val = ""; | ||
} | } | ||
Line 121: | Line 116: | ||
} | } | ||
} else { | } else { | ||
return_val = "NA" | return_val = "NA"; | ||
} | } | ||
} | } | ||
return return_val | return return_val; | ||
} | } | ||
}, | }, | ||
{ | {data: "Description",title: "Description"}, | ||
{ | {data: "PeakCount",title: "#of peaks"} | ||
] | ] | ||
} ); | } ); | ||
Line 152: | Line 143: | ||
</html> | </html> | ||
<table cellpadding="0" cellspacing="0" border="0" class=" | <table cellpadding="0" cellspacing="0" border="0" class="stripe cell-border order-column compact" id="tf_table"> | ||
</table> | </table> |
Latest revision as of 09:57, 21 September 2021
Human transcription factors