nf-core fetchngs

Public sequencing reads and their metadata from SRA, ENA, DDBJ and GEO ids: a native port of nf-core/fetchngs 1.13.0.

by Temple Compute

Run nf-core fetchngs on Horus

W-54 · nf-core/fetchngs (native port)

Public sequencing reads and their metadata from SRA, ENA, DDBJ and GEO ids: a native port of nf-core/fetchngs 1.13.0.

Domain: nf-core ports

Overview

Runs the nf-core/fetchngs pipeline as a Horus workflow, with the same containers, command lines and per-process cpus/memory as nextflow run nf-core/fetchngs -r 1.13.0 -profile test,docker. Each id is resolved to its runs through the ENA and NCBI APIs. Runs with ENA FTP links are downloaded with wget and checked against their md5. Runs without them go through sra-tools (prefetch, then fasterq-dump). The workflow then writes a samplesheet for downstream nf-core pipelines and a MultiQC sample-name mapping. Per-id and per-run steps are horus_map stages; the pipeline's Groovy steps are scripts/fetchngs.py. The workflow has 10 tasks.

Variants

Pipeline

split_ids                   ids list ──► work/ids/<id>                  (input schema check)
sra_ids_to_runinfo[*]       per id ──► work/runinfo/<slot>/<id>.runinfo.tsv
sra_runinfo_to_ftp[*]       per id ──► results/metadata/<slot>/<id>.runinfo_ftp.tsv
branch_downloads            ──► work/lists/ftp/<run>, work/lists/sratools/<run>
sra_fastq_ftp[*]            per FTP run ──► results/fastq/<slot>/<run>[_1|_2].fastq.gz, md5/
custom_sratoolsncbisettings ──► work/ncbi_settings/user-settings.mkfg   (only when a run needs sra-tools)
sratools_prefetch[*]        per sra-tools run ──► work/sra/<slot>/<accession>/
sratools_fasterqdump[*]     per sra-tools run ──► results/fastq_sratools/<slot>/<run>[_1|_2].fastq.gz
create_samplesheet          ──► results/samplesheet/{samplesheet.csv,id_mappings.csv}
multiqc_mappings_config     ──► results/multiqc_config/multiqc_config.yml

Inputs / Outputs

Reads, md5 files, run tables, samplesheet, id mappings and MultiQC config match the Nextflow run (reads byte for byte; read paths compared by file name). Run tables match with the same header and the same set of rows: the row order for an id follows the ENA/NCBI API response, which can change between runs. There is no pipeline_info/ software versions file, which nf-core builds from Nextflow run metadata.

Layout differences from the Nextflow outdir:

SRA_IDS_TO_RUNINFO and SRA_FASTQ_FTP have label 'error_retry' in the pipeline (maxRetries 2). Horus has no per-task retry, so their command runs the script up to 3 times; each try starts from an empty output folder.

Parameters

| id | Default | Meaning | |---|---|---| | input | examples/sra_ids_test.csv | One id per line (--input) | | ena_metadata_fields | empty | ENA fields to fetch (--ena_metadata_fields) | | download_method | ftp | --download_method; only ftp is ported (runs without FTP links use sra-tools, as in the pipeline) | | skip_fastq_download | false | Only fetch metadata (--skip_fastq_download) | | nf_core_pipeline | empty | Add the columns of this nf-core pipeline's samplesheet (--nf_core_pipeline) | | nf_core_rnaseq_strandedness | auto | Strandedness column for rnaseq (--nf_core_rnaseq_strandedness) | | sample_mapping_fields | experiment_accession,...,sample_description | Columns of id_mappings.csv (--sample_mapping_fields) |

Not ported: --download_method aspera, fastq-dl and sratools for every run, and --dbgap_key for controlled-access data.

References