Writing

Notes & tutorials

Occasional write-ups on R and data visualization.

Minty: designing a self-hosted personal finance aggregator

A private dashboard for every bank and card transaction, running on your own free Cloudflare and Plaid accounts.

Museum Reciprocal Finder: from schematic to implementation

A static web app that tells you which museums your membership gets you into free or half price, and how I built it.

Tidy sample metadata with pandas before any modeling

Clean sample IDs, validate every join and fix dtypes in pandas before metadata problems quietly break a multi-platform analysis.

A neural network methylation classifier in TensorFlow, and when it beats a random forest

A Keras MLP for DNA methylation tumor classification, built and compared fairly against a random forest on the same outer folds.

Integrating single-cell RNA-seq with scVI

A practical scvi-tools walkthrough from raw counts to an integrated latent space, clusters, differential expression and label transfer.

Copy number profiles from DNA methylation arrays

How to turn the 450k or EPIC IDAT files you already have into genome-wide copy number profiles in R with conumee.

A DIY guide to creating a brain tumor classifier

Build a DNA methylation-based CNS tumor classifier with a random forest, nested cross-validation and calibrated scores, without leaking.

Survival analysis in R for molecular subgroups

Kaplan-Meier curves, log-rank tests and Cox models for comparing outcomes between subgroups in R, plus the pitfalls that bite genomics papers.

PCA, t-SNE and UMAP on methylation data, done carefully

How I run PCA, t-SNE and UMAP on DNA methylation beta matrices, and how to read the plots without fooling yourself.

Differential expression in R with DESeq2, start to finish

A full DESeq2 walkthrough on the airway dataset: paired design, QC, shrunken fold changes, plots, gene annotation and common mistakes.

Am I going to be delayed? Predicting flight delays with machine learning

I use a month of BTS on-time data to predict whether a U.S. flight lands 15+ minutes late, and check how much that prediction is worth.

Scrapy vs Octoparse vs BeautifulSoup

A hands-on comparison of BeautifulSoup, Scrapy and Octoparse for collecting web data, using the toscrape.com sandbox sites.

Weather in the Cloud

Packaging my Merced weather Shiny app in Docker and running it on AWS with ECR, ECS Fargate and a load balancer.

An ode to joy-plot

I make ridgeline (joy) plots of Merced, CA daily high temperatures by month and by year in R with ggplot2 and ggridges.

R Shiny App for Merced Weather Data Visualization

The Merced weather chart turned into an interactive R Shiny app, with the ui.R and server.R code explained.

Merced Weather Analysis

A Tufte-style chart of a year of Merced, California temperatures, built step by step in R with dplyr and ggplot2.