{"id":628,"date":"2022-02-17T11:12:40","date_gmt":"2022-02-17T11:12:40","guid":{"rendered":"http:\/\/imdeafoodcompubio.com\/?page_id=628"},"modified":"2022-06-23T14:15:07","modified_gmt":"2022-06-23T14:15:07","slug":"enrichment-analysis","status":"publish","type":"page","link":"https:\/\/imdeafoodcompubio.com\/index.php\/enrichment-analysis\/","title":{"rendered":"Enrichment Analysis"},"content":{"rendered":" <h1 style='text-align: center;' > Database : <\/h1>  <h1 style='text-align: center;' > P Value Adjustement : <\/h1> \n <h1 style='text-align: center;' > Similarity cutoff: <\/h1> \n<!DOCTYPE html>\r\n<html lang=\"es\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n  <link rel=\"stylesheet\" href=\"\/\/code.jquery.com\/ui\/1.13.2\/themes\/base\/jquery-ui.css\">\r\n<script src=\"https:\/\/code.jquery.com\/jquery-3.6.0.min.js\"><\/script>\r\n<script src=\"https:\/\/code.jquery.com\/jquery-migrate-1.4.1.min.js\"><\/script>\r\n  <script src=\"https:\/\/code.jquery.com\/ui\/1.13.2\/jquery-ui.js\"><\/script>\r\n\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@4.5.3\/dist\/css\/bootstrap.min.css\" integrity=\"sha384-TX8t27EcRE3e\/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2\" crossorigin=\"anonymous\">\r\n<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@4.5.3\/dist\/js\/bootstrap.bundle.min.js\" integrity=\"sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ\/JpcUGGOn+Y7RsweNrtN\/tE3MoK7ZeZDyx\" crossorigin=\"anonymous\"><\/script>\r\n\r\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/cdn.datatables.net\/v\/dt\/dt-1.13.1\/datatables.min.css\"\/>\r\n \r\n<script type=\"text\/javascript\" src=\"https:\/\/cdn.datatables.net\/v\/dt\/dt-1.13.1\/datatables.min.js\"><\/script>\r\n    <title>Ejemplo<\/title>\r\n<style>\r\n.site-content{\r\n    height: auto;\r\n}    \r\n    #divtable{\r\n    background-color:white; \r\n                border-radius: 10px;\r\n                font-size:16px; \r\nwidth:auto;   \r\nmargin-top:2%;\r\n }\r\n \r\n\r\n\r\n  h3{\r\n\r\n           font-size:1.25em;\r\n }\r\n #divtable h2  {\r\n    display:inline; \r\n }\r\n#divtable .dataTables_wrapper{\r\n    width: 80%;\r\n    margin: 2%;\r\n    margin-left: 10%;\r\n        margin-right: 10%;\r\n    font-size:16px;\r\n}\r\n        .helpresult{\r\n        z-index: 999;\r\n        top: 100%;\r\n        left: 10%;\r\n        overflow: auto;\r\n        opacity: 1;\r\n    }\r\n           #divtable p , #divtable2 p ,  #divtable3 p {\r\n     color: black !important ;\r\n    }\r\n        .helpresult p , .helpresult h2 , #enrichp{\r\n            font-size:0.9vw;\r\n        margin: 0;\r\n        margin-left:2%;\r\n        font-style:italic;\r\n        max-height: 100px;\r\n    }\r\n    .btn-primary {\r\n        width:10%;\r\n        font-size:16px;\r\n        margin-left:50%;\r\n        }\r\n    \r\n#modaldesc {\r\n  position: absolute;\r\n  left: 50%;\r\n  top: 50%;\r\n  transform: translate(-50%, -50%);\r\n}\r\n.btn-secondary{\r\n            width:20%;\r\n        font-size:16px;\r\n        margin-left:10%;\r\n}\r\n<\/style>\r\n  <script>\r\n    <\/script>\r\n<\/head>\r\n<body>\r\n\r\n               <div id='divtable'>\r\n                    \r\n<table id=\"table\" class=\"stripe\" style=\"width:100%\">\r\n    \r\n<button type=\"button\" class=\"btn btn-primary\" data-toggle=\"modal\" data-target=\"#modaldesc\">\r\nDownload\r\n<\/button>\r\n<\/table>\r\n<\/div>\r\n\r\n<div class=\"modal fade\" id=\"modaldesc\"  role=\"dialog\">\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header\">\r\n        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\r\n          <span aria-hidden=\"true\">&times;<\/span>\r\n        <\/button>\r\n      <\/div>\r\n      <div class=\"modal-body\">\r\n        <button type=\"button\" id='copy' class=\"btn btn-secondary\">copy<\/button>\r\n        <button type=\"button\" id='tsv' class=\"btn btn-secondary\">TSV<\/button>\r\n        <button type=\"button\" id='csv' class=\"btn btn-secondary\">CSV<\/button>\r\n      <\/div>\r\n    <\/div>\r\n  <\/div>\r\n<\/div>\r\n\r\n<script>\r\njQuery(document).ready(function($) {\r\n    var longi;\r\n    var x =\"\";\r\n    var nregis = 20;\r\n    var verdad=true;\r\n    var dataparsear=[];\r\n    var arraynom = [\"Compoundcabe\",\"Pos\",\"Neg\"];\r\n  var datanew=[];\r\n  var pagesession ;\r\n  var data=\"\";\r\n  \r\nparseardata(data);\r\ndatanew=data;\r\ndatanew=datanew.filter(Boolean);\r\ndata2=[];\r\nfor( var i = 0; i<datanew.length; i++){\r\ndata2.push(datanew[i].split(\"\\t\"));\r\n        \r\n    }\r\n\r\nfor( var i = 0; i<data2.length; i++){\r\n    if (data2[i][1]==undefined){\r\n        data2[i][1]='UNDEFINED';\r\n        }\r\n            if (data2[i][2]==undefined){\r\n        data2[i][2]='UNDEFINED';\r\n        }\r\n    }\r\n\r\ntable = $('#table').DataTable({\r\n        data: data2,\r\n          \r\n\r\n        columns: [\r\n     { title: \"Compound\" },\r\n\r\n            { title: \"Pvalue (Drug positive similarty cutoff)\" ,   \r\n            \"render\": function (data, type, row) {\r\n                    return round(data);\r\n                }},\r\n            { title: \"Pvalue (Drug negative similarty cutoff)\" ,\r\n                   \"render\": function (data, type, row) {\r\n                    return round(data);\r\n                }\r\n            },\r\n\r\n           \r\n           \r\n        ],\r\n                 language: {\r\n        \"lengthMenu\": '<h2> Show entries <\/h2> <img decoding=\"async\" class=\"help\" id=\"datahelpentries\" src=\"http:\/\/imdeafoodcompubio.com\/wp-content\/uploads\/2022\/06\/icon1.png\" width=\"15\"><\/img>   <div class=\"helpresult\" id=\"helpentries\"><\/div> _MENU_' ,\r\n    \"search\": ' <h2> Filter Records<\/h2> <img decoding=\"async\" class=\"help\" id=\"datahelpfilter\" src=\"http:\/\/imdeafoodcompubio.com\/wp-content\/uploads\/2022\/06\/icon1.png\" width=\"15\"><\/img>  <div class=\"helpresult\" id=\"helpfilter\"><\/div> _INPUT_' \r\n    },\r\n    });\r\n\r\nfunction parseardata(p){\r\np=p.split(\";\");\r\np.shift();\r\ndata=p;\r\n}\r\n\r\n\r\n\r\n$(document).on(\"mouseenter\", \".help\", function(){\r\n$(\".helpresult\").empty();\r\nvar idhelp = $(this).attr(\"id\");\r\nif (idhelp==\"datahelpentries\") {\r\n            $(\"#helpentries\").append(\"<p>Allow you to filter the number of studies to display<\/p>\");\r\n                    \r\n}   \r\nelse if (idhelp==\"datahelpfilter\") {\r\n            $(\"#helpfilter\").append(\"<p>Allow you to filter with free text on the table by any field<\/p>\");\r\n                    \r\n} \r\n\r\n\r\n\r\n});\r\n\r\n $(document).on(\"mouseleave\", \".help\", function(){\r\n    $(\".helpresult\").empty();\r\n        });\r\n\r\n\r\n\r\n\r\n\r\n\r\n$(document).on('click', '.btn-secondary', function() {\r\n           var subid= $(this).attr(\"id\");\r\n\r\n            if (subid == \"copy\" ) {\r\n                                dataacopiar=[];\r\n                copy=\"\";\r\n                \r\n                            for (let i = 0; i < data2.length || i  < 10 ; i++) {\r\n            for (var  dato in data2[i]){\r\n            copy=copy+data2[i];\r\n\r\n}\r\n}\r\n                    $('<input id=\"textcopy\">').val(copy).appendTo('body').select();         \r\n            document.execCommand('copy'); \r\n            var el = document.getElementById('textcopy');\r\n            el.remove();\r\n            }\r\n            else {\r\n                $.ajax({\r\n            url:'https:\/\/imdeafoodcompubio.com\/wp-content\/themes\/bento-child\/descargararchivo.php',\r\n            type: 'post',\r\n            data: {key:subid,data:data2,name:\"TablaEnrichment\",arrkeys:arraynom},\r\n            dataType: 'json',\r\n            success:function(response){\r\n                fileName=response;\r\n                       fileUrl=\"http:\/\/imdeafoodcompubio.com\/wp-content\/uploads\/2022\/desc\/\"+fileName;\r\n  var a = document.createElement(\"a\");\r\n  a.href = fileUrl;\r\n  console.log(fileUrl);\r\n  a.setAttribute(\"download\", fileName);\r\n  a.click();\r\n            }\r\n                });\r\n            }\r\n            });\r\n\r\n\r\n\r\nfunction round(num) {\r\n    var m = Number((Math.abs(num) * 1000).toPrecision(15));\r\n    return Math.round(m) \/ 1000 * Math.sign(num);\r\n}\r\n\r\n\r\n\r\n    });\r\n\r\n\r\n<\/script>\r\n\r\n<\/body>           \r\n<\/html>\r\n\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-628","page","type-page","status-publish","hentry","no-thumb"],"_links":{"self":[{"href":"https:\/\/imdeafoodcompubio.com\/index.php\/wp-json\/wp\/v2\/pages\/628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imdeafoodcompubio.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/imdeafoodcompubio.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/imdeafoodcompubio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imdeafoodcompubio.com\/index.php\/wp-json\/wp\/v2\/comments?post=628"}],"version-history":[{"count":2,"href":"https:\/\/imdeafoodcompubio.com\/index.php\/wp-json\/wp\/v2\/pages\/628\/revisions"}],"predecessor-version":[{"id":631,"href":"https:\/\/imdeafoodcompubio.com\/index.php\/wp-json\/wp\/v2\/pages\/628\/revisions\/631"}],"wp:attachment":[{"href":"https:\/\/imdeafoodcompubio.com\/index.php\/wp-json\/wp\/v2\/media?parent=628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}