1 Preface and Notes
Welcome to Analysing Cytometry Data with R
This book is your step-by-step guide to mastering cytometry data analysis using R. Whether you’re completely new to programming or have wrestled with R before, we’ve designed this resource to actually get you analysing data.
1.1 What This Isn’t
While we’ll give you everything necessary to analyse cytometry data, this is not a complete introduction to R programming. Your R education will have some gaps. If you catch the R bug and want broader training, R for Data Science is fantastic and freely available. Think of this as learning to drive before studying automotive engineering.
1.2 Who This Is For
This book is for anyone who stares at piles of .FCS files and needs a better way to analyse them. We assume you know cytometry but have never programmed - or tried programming and bounced off other tutorials that assumed too much.
You might be: - A student or postdoc who can’t afford FlowJo’s yearly license fees - A researcher at an institution with limited software budgets - Someone who wants to apply cutting-edge analysis methods not available in commercial software - Anyone tired of clicking through the same analysis on hundreds of files
1.3 Why Choose R?
When you don’t have FlowJo: R provides a complete, free alternative for cytometry analysis. Everything FlowJo can do, R can do - though sometimes with more effort.
When you do have FlowJo: R excels where FlowJo struggles: - Batch processing dozens or hundreds of files consistently - Advanced clustering and dimensionality reduction algorithms - Integrating cytometry data with genomics or clinical data - Creating custom publication-quality visualisations - Accessing the latest computational methods before commercial implementation
We’ll be honest: for manual gating, FlowJo is usually easier. Use the right tool for the job. But for everything after gating - transformation, clustering, advanced analysis, batch processing - R is often superior.
1.4 What You’ll Actually Accomplish
- Set up R and load cytometry data properly
- Apply transformations and cleaning that work consistently across experiments
- Use automated clustering to discover populations you might miss manually
- Generate reproducible analysis pipelines you can apply to future datasets
- Create publication-quality figures that tell your data’s story
1.5 The Reality Check
This will take effort. R has a learning curve. But the payoff comes surprisingly quickly - by Chapter 5, you’ll be doing analysis that’s difficult or impossible in commercial software.