Skip to contents

Sample Operations

Functions that operate on samples/observations. See the Sample partition vignette.

balanced_partition()
Balanced partition of samples into groups using one numeric column (mean + SD)
balance_partition_core()
Core optimizer: assign samples to groups to balance mean + SD (Gini loss)

Feature Operations

Functions that operate on features/genes/variables. See the RNA-seq Workflow vignette.

get_top_var_mat()
get the the var_gene_list and topN (or top percent) most variable genes
filter_calcpm_dge()
filter countData by gene expression, perform cpm and log2(cpm+1) transformation

Data Transformation

Functions that transform entire matrices/dataframes. See the RNA-seq and DNA Methylation vignettes.

log_transform()
perform log transformation with psuedo count
beta2M()
Convert beta values to M values

Utilities

Helper functions for common tasks. See the Utilities Guide vignette.

closestMatch()
find the closest match of a string in a vector of strings
print_pval()
print p-values in a more readable format
vec2print()
print a vector in a copy-paste friendly format
mkdir()
create a directory if it does not exist
save2pdf()
save a plot to a PDF file
extract_params()
extract and assign default function arguments to the global environment
createNamedList()
Create a named list
install_packages()
Install packages from CRAN, Bioconductor, or GitHub
check_packages()
Check which packages are not installed

Visualization & Fun

Games and visualizations. See the Visualization vignette.

play_2048()
Play the 2048 game in the R console
draw_heart()
Draw a 2D heart shape image
draw_heart_step()
Convert heart image to LEGO mosaic and extract build steps
draw_heart_gif()
Create a LEGO-style animated heart GIF
draw_xmas_tree_gif()
Make an animated Christmas tree (gganimate GIF)
draw_xmas_tree_gif_panel()
Create a panel GIF from multiple style GIFs