Reactable builder for hyp or mhyp objects

rctbl_build(obj, ...)

Arguments

obj

A hyp or multihyp object

...

Arguments passed to table generators

Examples

genesets <- msigdb_gsets("Homo sapiens", "C2", "CP:KEGG")$genesets[1:5] experiment <- list("S1"=c("IDH3B","DLST","PCK2","CS","PDHB","PCK1","PDHA1","LOC642502"), "S2"=c("PDHA2","LOC283398","FH","SDHD","OGDH","SDHB","IDH3A","SDHC")) mhyp_obj <- hypeR(experiment, genesets, background=2522)
#> Warning: Only 0% of signature was found across genesets
rctbl_build(mhyp_obj)
#> <div class="rctbl-outer-obj"> #> <div id="htmlwidget-1e34fb0b92e8d8a3b258" class="reactable html-widget" style="width:auto;height:auto;"></div> #> <script type="application/json" data-for="htmlwidget-1e34fb0b92e8d8a3b258">{"x":{"tag":{"name":"Reactable","attribs":{"data":{"signature":["S1","S2"],"size":["8","8"],"enriched":[5,5],"gsets":["Custom ","Custom "],"bg":["2522","2522"]},"columns":[{"accessor":".details","name":"","type":"NULL","headerClassName":"rctbl-outer-header","sortable":false,"resizable":false,"filterable":false,"width":45,"align":"center","details":[{"name":"div","attribs":{"className":"rctbl-inner-obj"},"children":[{"name":"Reactable","attribs":{"data":{"label":["KEGG_ADIPOCYTOKINE_SIGNALING_PATHWAY","KEGG_ABC_TRANSPORTERS","KEGG_ACUTE_MYELOID_LEUKEMIA","KEGG_ADHERENS_JUNCTION","KEGG_ALANINE_ASPARTATE_AND_GLUTAMATE_METABOLISM"],"pval":[0.018,1,1,1,1],"fdr":[0.088,1,1,1,1],"geneset":[67,44,57,73,32],"overlap":[2,0,0,0,0],"hits":["PCK1,PCK2","","","",""]},"columns":[{"accessor":"label","name":"Label","type":"character","headerClassName":"rctbl-inner-header","minWidth":300},{"accessor":"pval","name":"P-Value","type":"numeric","headerClassName":"rctbl-inner-header"},{"accessor":"fdr","name":"FDR","type":"numeric","headerClassName":"rctbl-inner-header"},{"accessor":"geneset","name":"Geneset Size","type":"numeric","headerClassName":"rctbl-inner-header"},{"accessor":"overlap","name":"Overlap","type":"numeric","headerClassName":"rctbl-inner-header"},{"accessor":"hits","name":"Hits","type":"character","headerClassName":"rctbl-inner-header"}],"resizable":true,"defaultPageSize":10,"paginationType":"numbers","showPageInfo":true,"minRows":1,"compact":true,"className":"rctbl-inner-tbl","dataKey":"34e67601515392f15828698417a78725","key":"34e67601515392f15828698417a78725","nested":true},"children":[]}]},{"name":"div","attribs":{"className":"rctbl-inner-obj"},"children":[{"name":"Reactable","attribs":{"data":{"label":["KEGG_ABC_TRANSPORTERS","KEGG_ACUTE_MYELOID_LEUKEMIA","KEGG_ADHERENS_JUNCTION","KEGG_ADIPOCYTOKINE_SIGNALING_PATHWAY","KEGG_ALANINE_ASPARTATE_AND_GLUTAMATE_METABOLISM"],"pval":[1,1,1,1,1],"fdr":[1,1,1,1,1],"geneset":[44,57,73,67,32],"overlap":[0,0,0,0,0],"hits":["","","","",""]},"columns":[{"accessor":"label","name":"Label","type":"character","headerClassName":"rctbl-inner-header","minWidth":300},{"accessor":"pval","name":"P-Value","type":"numeric","headerClassName":"rctbl-inner-header"},{"accessor":"fdr","name":"FDR","type":"numeric","headerClassName":"rctbl-inner-header"},{"accessor":"geneset","name":"Geneset Size","type":"numeric","headerClassName":"rctbl-inner-header"},{"accessor":"overlap","name":"Overlap","type":"numeric","headerClassName":"rctbl-inner-header"},{"accessor":"hits","name":"Hits","type":"character","headerClassName":"rctbl-inner-header"}],"resizable":true,"defaultPageSize":10,"paginationType":"numbers","showPageInfo":true,"minRows":1,"compact":true,"className":"rctbl-inner-tbl","dataKey":"127d28920943ebe45e0a91a41504f1fa","key":"127d28920943ebe45e0a91a41504f1fa","nested":true},"children":[]}]}]},{"accessor":"signature","name":"Signature","type":"character","headerClassName":"rctbl-outer-header","minWidth":300},{"accessor":"size","name":"Signature Size","type":"character","headerClassName":"rctbl-outer-header"},{"accessor":"enriched","name":"Enriched Genesets","type":"numeric","headerClassName":"rctbl-outer-header"},{"accessor":"gsets","name":"Genesets","type":"character","headerClassName":"rctbl-outer-header"},{"accessor":"bg","name":"Background","type":"character","headerClassName":"rctbl-outer-header"}],"resizable":true,"defaultPageSize":10,"paginationType":"numbers","showPageInfo":true,"minRows":1,"onClick":"expand","nowrap":true,"className":"rctbl-outer-tbl","rowStyle":{"cursor":"pointer"},"dataKey":"0108d5e7e348b326c70447fff69fbc3e","key":"0108d5e7e348b326c70447fff69fbc3e"},"children":[]},"class":"reactR_markup"},"evals":[],"jsHooks":[]}</script> #> </div>