@@ -13,7 +13,24 @@ This walkthrough uses **local Nextflow**. The exact same workflows run on Seqera
1313(` tw launch ` ) or through the Viash Hub web form, see the
1414[ execution guides] ( ../guides/index.qmd ) for those routes.
1515
16- ## 1 · Set up Nextflow and Docker
16+ ::: {.callout-note appearance="simple"}
17+ ** Before you start**
18+
19+ - ** Prerequisites:** a Unix-like shell (macOS, Linux, or WSL2 on Windows). No
20+ prior Nextflow or single-cell experience needed, every command is here.
21+ - ** Hardware:** Cell Ranger (step 3) is the heavy step. Budget ** ~ 32 GB RAM** ,
22+ ** ~ 8 CPU cores** , and ** ~ 50 GB free disk** for the downloads plus Cell Ranger's
23+ intermediate files.
24+ - ** Time:** roughly ** 2–4 hours** end to end on a laptop, almost all of it in Cell
25+ Ranger mapping. The processing, integration, and read-output steps are minutes each.
26+ - ** What you'll have at the end:** one batch-corrected, Leiden-clustered ` .h5mu `
27+ object with a UMAP, built from two public PBMC samples.
28+
29+ Just want to see the shape of a run first? The [ Quickstart] ( quickstart.qmd ) skips
30+ Cell Ranger and takes about 10 minutes on pre-computed counts.
31+ :::
32+
33+ ## 1 · Set up Nextflow and Docker {#sec-setup-nextflow-and-docker}
1734
1835Everything else ships inside containers, so this is all you install: a Java
1936runtime (Nextflow needs it), Nextflow, and Docker.
91108
92109## 2 · Get the data
93110
94- The run uses two public 10x Genomics PBMC datasets ( 5' gene expression + VDJ +
95- antibody capture) . Each 10x dataset page lists ready-made ` curl ` commands; the
96- loops below fetch both datasets' libraries and unpack them into a local ` data/ `
97- folder:
111+ The run uses two public 10x Genomics PBMC datasets, each with 5' gene expression
112+ and VDJ (T- and B-cell) libraries . Each 10x dataset page lists ready-made ` curl `
113+ commands; the loops below fetch both datasets' libraries and unpack them into a
114+ local ` data/ ` folder:
98115
99116``` bash
100117mkdir -p data && cd data
101118
102119# Dataset 1 — Human PBMC, 10k cells, 5' v2
103120base1=" https://cf.10xgenomics.com/samples/cell-vdj/5.0.0/sc5p_v2_hs_PBMC_10k"
104- for lib in 5gex t b 5fb ; do
121+ for lib in 5gex t b; do
105122 curl -O " ${base1} /sc5p_v2_hs_PBMC_10k_${lib} _fastqs.tar"
106123 tar -xf " sc5p_v2_hs_PBMC_10k_${lib} _fastqs.tar"
107124done
108125
109- # Dataset 2 — Human PBMC, 10k cells, TotalSeq-C, 5' GEM-X
110- # (confirm the download URL on the dataset page)
126+ # Dataset 2 — Human PBMC, 10k cells, 5' GEM-X
111127base2=" https://cf.10xgenomics.com/samples/cell-exp/9.0.0/10k_Human_PBMC_TotalSeqC_5p_gemx"
112- for lib in gex tcr ig ab ; do
128+ for lib in gex tcr ig; do
113129 curl -O " ${base2} /10k_Human_PBMC_TotalSeqC_5p_gemx_${lib} _fastqs.tar"
114130 tar -xf " 10k_Human_PBMC_TotalSeqC_5p_gemx_${lib} _fastqs.tar"
115131done
116132
117133cd ..
118134```
119135
120- The transcriptome, VDJ, and antibody ** feature reference** (TotalSeq-C panel) are
121- all fetched automatically from URLs in the ` param_list ` below, so FASTQs are the
122- only thing you download by hand.
136+ The transcriptome and VDJ ** references** are fetched automatically from URLs in the
137+ ` param_list ` below, so FASTQs are the only thing you download by hand.
123138
124139After both downloads, ` data/ ` holds one folder per library:
125140
@@ -128,11 +143,9 @@ data/
128143├── sc5p_v2_hs_PBMC_10k_5gex_fastqs/ # sample 1 · Gene Expression
129144├── sc5p_v2_hs_PBMC_10k_t_fastqs/ # sample 1 · VDJ-T
130145├── sc5p_v2_hs_PBMC_10k_b_fastqs/ # sample 1 · VDJ-B
131- ├── sc5p_v2_hs_PBMC_10k_5fb_fastqs/ # sample 1 · Antibody Capture
132146├── 10k_Human_PBMC_TotalSeqC_5p_gemx_gex_fastqs/ # sample 2 · Gene Expression
133147├── 10k_Human_PBMC_TotalSeqC_5p_gemx_tcr_fastqs/ # sample 2 · VDJ-T
134- ├── 10k_Human_PBMC_TotalSeqC_5p_gemx_ig_fastqs/ # sample 2 · VDJ-B
135- └── 10k_Human_PBMC_TotalSeqC_5p_gemx_ab_fastqs/ # sample 2 · Antibody Capture
148+ └── 10k_Human_PBMC_TotalSeqC_5p_gemx_ig_fastqs/ # sample 2 · VDJ-B
136149```
137150
138151Each folder holds that library's ` *_R1_*.fastq.gz ` / ` *_R2_*.fastq.gz ` files.
@@ -141,8 +154,8 @@ Each folder holds that library's `*_R1_*.fastq.gz` / `*_R2_*.fastq.gz` files.
141154
142155` ingestion/cellranger_multi ` aligns each library and writes one ` .h5mu ` per
143156sample; under the hood OpenPipeline 4.2.0 runs
144- [ Cell Ranger ` multi ` ] ( https://www.10xgenomics.com/support/software/cell-ranger/latest/analysis/running-pipelines/cr-5p-multi )
145- 10 . Describe the samples and their libraries in a ` param_list `
157+ [ Cell Ranger ` multi ` ] ( https://www.10xgenomics.com/support/software/cell-ranger/latest/analysis/running-pipelines/cr-5p-multi ) .
158+ Describe the samples and their libraries in a ` param_list `
146159(` params_cellranger.yaml ` ):
147160
148161``` yaml
@@ -153,18 +166,15 @@ param_list:
153166 - data/sc5p_v2_hs_PBMC_10k_5gex_fastqs/*_R*.fastq.gz
154167 - data/sc5p_v2_hs_PBMC_10k_t_fastqs/*_R*.fastq.gz
155168 - data/sc5p_v2_hs_PBMC_10k_b_fastqs/*_R*.fastq.gz
156- - data/sc5p_v2_hs_PBMC_10k_5fb_fastqs/*_R*.fastq.gz
157- library_id : [PBMC_10k_5gex, PBMC_10k_t, PBMC_10k_b, PBMC_10k_5fb]
158- library_type : [Gene Expression, VDJ-T, VDJ-B, Antibody Capture]
169+ library_id : [PBMC_10k_5gex, PBMC_10k_t, PBMC_10k_b]
170+ library_type : [Gene Expression, VDJ-T, VDJ-B]
159171 - id : 10k_Human_PBMC_TotalSeqC_5p_gemx
160172 input :
161173 - data/10k_Human_PBMC_TotalSeqC_5p_gemx_gex_fastqs/*_R*.fastq.gz
162174 - data/10k_Human_PBMC_TotalSeqC_5p_gemx_tcr_fastqs/*_R*.fastq.gz
163175 - data/10k_Human_PBMC_TotalSeqC_5p_gemx_ig_fastqs/*_R*.fastq.gz
164- - data/10k_Human_PBMC_TotalSeqC_5p_gemx_ab_fastqs/*_R*.fastq.gz
165- library_id : [TotalSeqC_gex, TotalSeqC_tcr, TotalSeqC_ig, TotalSeqC_ab]
166- library_type : [Gene Expression, VDJ-T, VDJ-B, Antibody Capture]
167- feature_reference : " <TotalSeq-C feature-reference CSV URL, from the dataset page>"
176+ library_id : [TotalSeqC_gex, TotalSeqC_tcr, TotalSeqC_ig]
177+ library_type : [Gene Expression, VDJ-T, VDJ-B]
168178gex_reference : https://cf.10xgenomics.com/supp/cell-exp/refdata-gex-GRCh38-2020-A.tar.gz
169179vdj_reference : https://cf.10xgenomics.com/supp/cell-vdj/refdata-cellranger-vdj-GRCh38-alts-ensembl-7.0.0.tar.gz
170180publish_dir : results/ingestion
0 commit comments