Skip to contents

Package Management

Mirror configuration and package inspection utilities. For installing, updating, and checking packages, we recommend pak — it provides a more elegant and performant workflow than the functions previously bundled here.

pkg_functions()
List Package Functions
set_mirror()
Set CRAN/Bioconductor Mirrors

Visualization & Plotting

High-level plotting functions with sensible defaults for common chart types and publication-ready visualizations.

plot_venn()
Venn diagram for 2-4 sets
plot_forest()
Publication-ready forest plot
plot_bar()
Bar plot with optional grouping and sorting
plot_pie()
Pie chart from a vector or grouped data frame
plot_density()
Density plot with optional grouping and faceting

Statistical Analysis

Statistical testing with automatic method selection, assumption checking, and publication-ready output. Power and sample size tools.

quick_ttest() plot(<quick_ttest_result>)
Two-group comparison with automatic method selection
quick_anova() plot(<quick_anova_result>)
One-way comparison with automatic method selection
quick_chisq() plot(<quick_chisq_result>)
Categorical association test with automatic method selection
quick_cor() plot(<quick_cor_result>)
Correlation analysis with heatmap visualization
stat_power() plot(<power_result>)
Calculate Statistical Power
stat_n()
Calculate Required Sample Size

File & Download Utilities

File system utilities and flexible download functions for URLs and GEO datasets.

download_url()
Download a file from a URL
download_batch()
Batch download files in parallel
download_geo()
Download a GEO series
file_info()
Get metadata for one or more files
file_ls()
List files in a directory with metadata
file_tree()
Print directory tree structure
view()
Quick interactive table viewer

Bioinformatics Utilities

Gene ID conversion, gene reference download, and gene set analysis tools.

gene2ensembl()
Convert gene symbols to Ensembl IDs
gene2entrez()
Convert gene symbols to Entrez IDs
download_gene_ref()
Download gene annotation reference table from Ensembl
gmt2df()
Convert a GMT file to a long-format data frame
gmt2list()
Convert a GMT file to a named list

Data Processing & Transformation

Functions for data manipulation and column recoding.

df2list()
Convert a data frame to a named list by grouping
df2vect()
Convert a data frame to a named vector
recode_column()
Recode a column in a data frame using a named vector

Operators & Combinatorics

Custom infix operators and combinatorial utilities.

`%p%`
Paste two strings with a single space
`%is%`
Strict identity comparison
`%nin%`
Not-in operator
`%map%`
Case-insensitive mapping returning a named vector
`%match%`
Case-insensitive match returning indices
comb()
Number of combinations C(n, k)
perm()
Number of permutations P(n, k)

Toy Data

Functions that generate small reproducible datasets for testing and demonstration.

toy_gene_ref()
Generate a toy gene reference table
toy_gmt()
Generate a toy GMT file