Useful YAML options for generating HTML reports in R

A few neat tricks to make Rmarkdown reports more readable

Annotating unknown clusters in scRNAseq data using CIPR: A cross-species reference comparison

We have recently published a Shiny (R) app called Cluster Identity Predictor (CIPR) in BMC Bioinformatics that helps annotate unknown clusters in single cell RNAseq (scRNAseq) datasets. CIPR does its thing by comparing the gene expression signatures of unknown clusters against signatures from known cell types.

Programmatically create new headings and outputs in Rmarkdown

Even though I do this fairly often, I keep forgeting its recipe. I might as well write it down and save time for my future self and others like me.

Understanding Lasso and Ridge Regression

To understand how these algorithms work, let's make up a toy data frame about shark attacks. Imagine that we are trying to find out the factors that are associated with the number of shark attacks at a given location.