Create a formatted gt table of the top significant tRNAs from
tidy_deseq_results() output, sorted by p-value.
Usage
tabulate_deseq(data, lab_col = "ref", n = 10)
Arguments
- data
A tibble from tidy_deseq_results() with at least
log2FoldChange, pvalue, padj, and significant columns.
- lab_col
Column name (string) used for row labels. Default
"ref".
- n
Maximum number of rows to display. Default 10.
Value
An interactive gt_tbl object with search, sorting, and
pagination.
Examples
res <- tibble::tibble(
ref = paste0("tRNA-", 1:20),
log2FoldChange = rnorm(20),
pvalue = runif(20, 0, 0.1),
padj = runif(20, 0, 0.2),
significant = c(rep(TRUE, 10), rep(FALSE, 10))
)
if (requireNamespace("gt", quietly = TRUE)) {
tabulate_deseq(res)
}