tntplot | R Documentation |
TnT approach
tntplot(tab, snpcolor = "lightblue", genecolor = "gold", gt = NULL, maxp = 0.1)
tab |
table |
snpcolor |
character(1) |
genecolor |
character(1) |
gt |
defaults to NULL, otherwise a GeneTrackFromTxDb-like object from TnT |
maxp |
numeric(1) if non-NULL loci with p-values greater than this are excluded |
if (requireNamespace("TnT") & requireNamespace("TxDb.Hsapiens.UCSC.hg38.knownGene")) { data(gtex_b38_lung_chr20_exc) cands = avail_syms_gtex() cands chk2 = gtex_b38_lung_chr20_exc |> filter_sym(cands[3], radius=5e5) |> as.data.frame() print(tntplot(chk2)) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.