You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Docker](https://docs.docker.com/engine/install/ubuntu/) (or [Singularity](https://docs.sylabs.io/guides/3.0/user-guide/installation.html) if you do not have user permissions for Docker).
39
39
40
-
The latest version for each dependency is recommended.
41
-
42
40
### **General Usage**
43
41
To run the pipeline, you must provide a samplesheet, reference genome, and reference annotation file as input. The pipeline performs transcript discovery and quantification on either a single sample or multiple samples based on the number of samples specified in the samplesheet. Refer to the [Parameters](#parameters) and Samplesheet (CSV) sections below for more details.
44
42
@@ -47,9 +45,9 @@ To run the pipeline, you must provide a samplesheet, reference genome, and refer
47
45
Use the command below to run the pipeline on the test data provided in `examples/`
> **Note:** Example samplesheets are provided in `examples/`. If all samples share the same library chemistry and/or sequencing technology, you may omit the `chemistry` and `technology` columns and use the `--chemistry` and `--technology` flags instead.
92
90
93
91
94
92
*Supported 10x Library Chemistries*
95
93
96
-
The following single cell and spatial library chemistries are supported. Please specify the sample chemistry in the samplesheet as shown:
94
+
For the following chemistries, the pipeline handles the full workflow — FASTQ preprocessing, genome alignment, and transcript discovery and quantification. Please specify the sample chemistry in the samplesheet as shown:
97
95
-`10x3v2` (Single Cell 3' v2)
98
96
-`10x3v3` (Single Cell 3' v3 & Next GEM Single Cell 3' v3.1)
99
97
-`10x3v4` (GEM-X Single Cell 3' v4)
@@ -105,6 +103,12 @@ The following single cell and spatial library chemistries are supported. Please
> **Note:** Visium samples must be run one sample at a time. Multi-sample runs are not supported for Visium chemistries.
107
+
108
+
*Custom Chemistry*
109
+
110
+
If your dataset uses a chemistry not listed above, or if you prefer to handle FASTQ preprocessing and genome alignment manually, provide a pre-processed, demultiplexed BAM file as input. See the [Advanced Usage](#advanced-usage) section for details.
111
+
108
112
**Pipeline Configuration**
109
113
110
114
*Nextflow Profiles*
@@ -122,9 +126,9 @@ To configure the executor and container, pass profile types via the `-profile` a
122
126
### **Parameters**
123
127
124
128
**Mandatory**
125
-
-`--input`[string]: Path to the samplesheet .csv file
126
-
-`--genome`[string]: Path to the reference genome .faor .fasta file
127
-
-`--annotation`[string]: Path to the reference annotation .gtfor .gff file
129
+
-`--input`[string]: Path to the samplesheet `.csv` file
130
+
-`--genome`[string]: Path to the reference genome `.fa`, `.fasta`, or `.fa.gz` file
131
+
-`--annotation`[string]: Path to the reference annotation `.gtf`, `.gff`, `.gtf.gz`, or `.gff.gz` file
128
132
129
133
**Optional**
130
134
-`--output_dir`[string, default: 'output']: Path to the output directory
@@ -221,7 +225,7 @@ The pipeline applies the same processing steps to both single-cell and spatial s
221
225
222
226
For `visium-v*` samples, `colData` contains the spatial barcode and the corresponding X and Y spatial coordinates.
223
227
224
-
|Barcode|X coordinate | Y coordinate|
228
+
|barcode|x_coordinate | y_coordinate |
225
229
|:---|:---|:---|
226
230
| AAACAACGAATAGTTC | 17 | 1 |
227
231
| AAACAAGTATCTCCCA | 103 | 51 |
@@ -245,32 +249,53 @@ Example data and pre-configured profiles are provided in `examples/` to run the
245
249
246
250
| Profile | Description |
247
251
|---|---|
248
-
|`test_fastq`| Single-sample ONT run from raw reads |
249
-
|`test_bam`| Single-sample ONT run from demultiplexed BAM |
250
-
|`test_multi`| Multi-sample run with ONT and PacBio samples |
252
+
|`test_sc_fastq`| Single-cell, single-sample ONT run from raw reads |
253
+
|`test_sc_bam`| Single-cell, single-sample ONT run from demultiplexed BAM |
254
+
|`test_sc_multi`| Single-cell, multi-sample ONT run across two chemistries (10x5v2 FASTQ + 10x5v3 BAM) |
255
+
|`test_visium`| Spatial (Visium), single-sample ONT run from raw reads |
256
+
|`test_custom`| Custom chemistry, single-sample ONT run from demultiplexed BAM |
251
257
252
258
```bash
253
-
#Test from FASTQ input
254
-
nextflow run . -profile test_base,test_fastq,singularity
259
+
#Single-cell: test from FASTQ input
260
+
nextflow run . -profile test_base,test_sc_fastq,singularity
255
261
256
-
#Test from BAM input
257
-
nextflow run . -profile test_base,test_bam,singularity
262
+
#Single-cell: test from BAM input
263
+
nextflow run . -profile test_base,test_sc_bam,singularity
258
264
259
-
# Test with multiple samples (ONT + PacBio)
260
-
nextflow run . -profile test_base,test_multi,singularity
265
+
# Single-cell: test with multiple samples (ONT + PacBio)
266
+
nextflow run . -profile test_base,test_sc_multi,singularity
267
+
268
+
# Spatial: test Visium from FASTQ input
269
+
nextflow run . -profile test_base,test_visium,singularity
270
+
271
+
# Custom chemistry: test from demultiplexed BAM
272
+
nextflow run . -profile test_base,test_custom,singularity
261
273
```
262
274
263
275
The output files from the smoke tests are written to `.smoke_test/<profile>/output/`.
264
276
277
+
**Running Pipeline with a Custom Chemistry or Pre-aligned BAM**
278
+
279
+
If your dataset uses a chemistry not listed under Supported 10x Library Chemistries, or if you prefer to perform FASTQ preprocessing and genome alignment manually, start the pipeline directly from a pre-processed, demultiplexed BAM file. The BAM file must have the barcode and UMI information encoded either in the `CB`/`UB` column, or in the read name using the format `<barcode>_<umi>#<read_id>`.
280
+
281
+
*Samplesheet (Custom Chemistry)*
282
+
283
+
For samples with a custom chemistry, set the `chemistry` field in the samplesheet to any descriptive string.
The `--bam_only` flag stops the pipeline after genome alignment, saving BAM files to `output/bam/`. This is useful when you want to inspect the aligned reads or run downstream steps separately.
The `seurat_obj.rds` output contains PCA embeddings and cluster assignments but does not include a UMAP. The examples below show how to compute UMAP and visualise clusters in R.
298
323
299
-
> **Note:** These examples use output generated from the smoke tests (`test_fastq` for single sample, `test_multi` for multiple samples), which are not representative of real datasets.
324
+
> **Note:** These examples use output generated from the smoke tests (`test_sc_fastq` for single sample, `test_sc_multi` for multiple samples), which are not representative of real datasets.
0 commit comments