A collector for FASTQ files from Illumina (single- and paired-end short reads) or Nanopore (long read) NGS for downstream processing. Built upon previous work at ProvLab1.
conda activate basic-sequence-collector
nextflow run pipelines/basic-sequence-collector \
--folder </path/to/inputdir> | --samplesheet </path/to/samplesheet> \
--outdir </path/to/output> \
--label <>Conda is required to build the basic-sequence-collector environment with the necessary workflow dependencies. To create the environment:
conda env create -f ./environments/environment.yml
--input: Either a folder containing FASTQ files, or a sample sheet specifying FASTQ files/directories corresponding to a sample. See Input.
--outdir: The output directory. See Output.
--label: The label to output directory. See Output. Default is 'raw'.
--prefix: A prefix to attach to the FASTQ file. Default is ''.
--suffix: A suffix to attach to the FASTQ file. Default is ''.
Formats for folders and sample sheets in --input must be as follows:
| Folder |
For a typical sequencing run, only the run folder needs to be specified as the FASTQ files will be searched for automatically. The file format must be as follows:
|
| Sample sheet |
For more complicated runs, such as samples with both Illumina and Nanopore reads, a CSV file can specify an For example: |
The output file structure is determined by the outdir:
<outdir>
├── pipeline_info
│ ├── samplesheet.csv
│ └── software_versions.yml
└── <label>
├── samplesheet.csv
└── fastq
└── [prefix_]<ID>[_suffix]_{R1|R2|ONT}.fastq[.gz]
To use this module in a Nextflow pipeline, copy \modules\local\basic-sequence-collector.nf into the same directory of a Nextflow project. It can be called by:
include { BASIC_SEQUENCE_COLLECTOR as COLLECT } from './modules/local/basic-sequence-collector.nf'
COLLECT(params.input, params.outdir, "raw"[, prefix, suffix])
samplesheet = COLLECT.out.samplesheet // a path() channel- Provlab-Bioinfo/pathogenseq: Pathogen whole genome sequence (WGS) data analysis pipeline. https://github.com/provlab-bioinfo/pathogenseq