nf-core scrnaseq

Single-cell RNA-seq with STARsolo, h5ad and Seurat/SCE conversion and a MultiQC report: a native port of nf-core/scrnaseq 4.2.0.

by Temple Compute

Run nf-core scrnaseq on Horus

W-51 · nf-core/scrnaseq (native port)

Single-cell RNA-seq with STARsolo, h5ad and Seurat/SCE conversion and a MultiQC report: a native port of nf-core/scrnaseq 4.2.0.

Domain: nf-core ports

Overview

Runs the route nextflow run nf-core/scrnaseq -r 4.2.0 -profile test,docker takes (--aligner star --protocol 10XV2), as Horus tasks with the same containers, rendered command lines and per-process cpus/memory: FastQC, the GTF gene filter, the STAR index, STARsolo per sample, MTX to h5ad per sample and matrix type, the combined h5ad per type, Seurat and SingleCellExperiment objects for every h5ad, and MultiQC. Per-sample steps are horus_map stages; the h5ad steps map over one item per (sample, matrix type), as Nextflow runs them. The workflow has 11 tasks (5 maps). On the test data they run the same 19 process commands as Nextflow, plus three staging tasks.

Variants

Pipeline

fetch_reference / stage_samples   URLs ──► work/reference/, work/samples/<id>/ (reads, reads.txt, meta.env)
gtf_filter                        GTF_GENE_FILTER ──► <fasta>_genes.gtf
star_idx                          STAR_GENOMEGENERATE ──► work/star_index/star/
fastqc[*]                         per sample ──► results/fastqc/
star_align[*]                     STARsolo per sample (CB_UMI_Simple, 10x V2 whitelist) ──► results/star/<slot>/<id>.Solo.out, BAM, logs
list_matrices                     one item per (id, raw|filtered), plus combined per type
mtx[*], concat[*], convert[*]     MTX_TO_H5AD, CONCAT_H5AD, ANNDATAR_CONVERT ──► results/mtx_conversions/
multiqc                           FastQC + STAR logs ──► results/multiqc/

Inputs / Outputs

The STARsolo matrices and stats, STAR logs and splice junctions, FastQC data, h5ad contents and the MultiQC general, FastQC and STAR tables match the Nextflow run. The combined h5ad may list cells in another order: CONCAT_H5AD concatenates samples in directory-listing order, in both engines. The STAR BAMs have the same records and header lines apart from @PG, which holds the command line with its work paths. h5ad and RDS bytes carry run metadata, so they are compared by name, and h5ad files also by content (X, layers, obs and var). The MultiQC report has no software versions, workflow summary or methods sections, which nf-core builds from Nextflow run metadata.

Parameters

| id | Default | Meaning | |---|---|---| | samplesheet | examples/samplesheet.csv | Samples and their reads (--input) | | fasta_url | test profile GRCm38.p6.genome.chr19.fa | Genome fasta (--fasta) | | gtf_url | test profile gencode.vM19.annotation.chr19.gtf | Annotation (--gtf) |

Fixed to the test route: --aligner star, --protocol 10XV2, --star_feature Gene, --skip_cellbender, --skip_qcatch. Other aligners (simpleaf, kallisto, Cell Ranger), other protocols, velocity matrices, CellBender, QCatch and prebuilt STAR indexes are not ported.

References