Reactable table for hyp objects

rctbl_hyp(
  hyp,
  type = c("inner", "outer"),
  show_emaps = FALSE,
  show_hmaps = FALSE,
  hyp_emap_args = list(top = 25, val = "fdr"),
  hyp_hmap_args = list(top = 25, val = "fdr")
)

Arguments

hyp

A hyp object

type

Use style class for outer or inner tables

show_emaps

Option to show enrichment maps in tabs

show_hmaps

Option to show hiearchy maps in tabs

hyp_emap_args

A list of keyword arguments passed to hyp_emap

hyp_hmap_args

A list of keyword arguments passed to hyp_hmap

Examples

genesets <- msigdb_gsets("Homo sapiens", "C2", "CP:KEGG")$genesets[1:5] signature <- c("IDH3B","DLST","PCK2","CS","PDHB","PCK1","PDHA1","LOC642502", "PDHA2","LOC283398","FH","SDHD","OGDH","SDHB","IDH3A","SDHC", "IDH2","IDH1","OGDHL","PC","SDHA","SUCLG1","SUCLA2","SUCLG2") hyp_obj <- hypeR(signature, genesets, background=2522) rctbl_hyp(hyp_obj)
#> <div class="rctbl-inner-obj"> #> <div id="htmlwidget-3665053acce4b624d457" class="reactable html-widget" style="width:auto;height:auto;"></div> #> <script type="application/json" data-for="htmlwidget-3665053acce4b624d457">{"x":{"tag":{"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.13,1,1,1,1],"fdr":[0.66,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":"a3de62fa66500d1bdfd0bb31dedb8cec","key":"a3de62fa66500d1bdfd0bb31dedb8cec"},"children":[]},"class":"reactR_markup"},"evals":[],"jsHooks":[]}</script> #> </div>