fastqtobam
workflow to generate bam files from paired-end fastq files
Science Score: 31.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 7 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.6%) to scientific vocabulary
Repository
workflow to generate bam files from paired-end fastq files
Basic Info
- Host: GitHub
- Owner: Popgen48
- License: mit
- Language: Nextflow
- Default Branch: main
- Size: 2.21 MB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Introduction
fastqtobam is a bioinformatics best-practice analysis pipeline to generate bam files from raw paired-end reads fastq files.
The pipeline is built using Nextflow, a workflow tool to run tasks across multiple compute infrastructures in a very portable manner. It uses Docker/Singularity containers making installation trivial and results highly reproducible. The Nextflow DSL2 implementation of this pipeline uses one container per process which makes it much easier to maintain and update software dependencies. Where possible, these processes have been submitted to and installed from nf-core/modules in order to make them available to all nf-core pipelines, and to everyone within the Nextflow community!
The pipeline supports job/batch schedulers/distributed resource management systems (DRMS)/distributed resource managers (DRM), like The Slurm Workload Manager/sbatch.
On release, automated continuous integration tests run the pipeline on a full-sized dataset on the AWS cloud infrastructure. This ensures that the pipeline runs on AWS, has sensible resource allocation defaults set to run on real-world datasets, and permits the persistent storage of results to benchmark between pipeline releases and other analysis sources.
Pipeline summary
- Check input samplesheet (list.csv)
- Fasta index bwa (
BWA-MEM) - Fasta indices samtools faidx (
Samtools) - Quality and adapter trimming (
TrimGalore) - Windowed adaptive trimming (
sickle) - Read QC (
FastQC) - Alignment (
BWA-MEM) - Finding duplicate reads in BAM file (
Sambamba-markdup) - Quality control of bam alignment data (
Qualimap bamqc) - Custom dump (diverse softwareversions)
- Present QC for raw reads (
MultiFastQC) - Present QC for bam alignment (
Multibamqc)
Quick Start
Install
Nextflow(>=22.10.1)Install any of
Docker,Singularity(you can follow this tutorial),Podman,ShifterorCharliecloudfor full pipeline reproducibility (you can useCondaboth to install Nextflow itself and also to manage software within pipelines. Please only use it within pipelines as a last resort; see docs).Download the pipeline and test it on a minimal dataset with a single command:
bash
nextflow run fastqtobam/ -profile test,YOURPROFILE --fasta <path-to-genome.fa> --outdir <OUTDIR>
Note that some form of configuration will be needed so that Nextflow knows how to fetch the required software. This is usually done in the form of a config profile (YOURPROFILE in the example command above). You can chain multiple config profiles in a comma-separated string.
- The pipeline comes with config profiles called
docker,singularity,podman,shifter,charliecloudandcondawhich instruct the pipeline to use the named tool for software management. For example,-profile test,docker.- Please check nf-core/configs to see if a custom config file to run nf-core pipelines already exists for your Institute. If so, you can simply use
-profile <institute>in your command. This will enable eitherdockerorsingularityand set the appropriate execution settings for your local compute environment.- If you are using
singularity, please use thenf-core downloadcommand to download images first, before running the pipeline. Setting theNXF_SINGULARITY_CACHEDIRorsingularity.cacheDirNextflow options enables you to store and re-use the images from a central location for future pipeline runs.- If you are using
conda, it is highly recommended to use theNXF_CONDA_CACHEDIRorconda.cacheDirsettings to store the environments in a central location for future pipeline runs.
Set further configurations, depending on your computational environment, especially if resource managers are used or not.
- In
fastqtobam/nextflow.configone can set an executer (resource manager), withslurmas the default. - A computational facility may structure itself in Slurm clusters and Slurm partitions. If used, the pipeline expects the Slurm cluster to be specified outside of nextflow by a separate command:
bash export SLURM_CLUSTERS=<CLUSTER-NAME>- In
- The Slurm partition is specified in the beginning of
fastqtobam/conf/base.configundersqueue = "<PARTITION-NAME>" - Also, in
fastqtobam/conf/base.configthe maximum amount of CPUs/memory/time pernf-core-label can be set.
If no resource manager is used, the respective lines need to be commented out.
In
fastqtobam/docs/usage.mdandfastqtobam/assets/samplesheet.csv, example input samplesheets are provided to communicate the input structure expected from the pipeline.Start running your own analysis!
<!-- TODO nf-core: Update the example "typical command" below used to run the pipeline -->
bash
nextflow run fastqtobam/ --input samplesheet.csv --outdir <OUTDIR> --fasta <path-to-genome.fna> --samtools_faidx <path-to-genome.fna.fai> -qs 40 -profile <docker/singularity/podman/shifter/charliecloud/conda/institute>
The -qs parameter specifies the number of parallel sent slurm jobs. If the pipeline is cancelled at some point, it can be continued with the -resume flag.
Credits
fastqtobam was originally written by @BioInf2305.
We thank the following people for their extensive assistance in the development of this pipeline:
Citations
An extensive list of references for the tools used by the pipeline can be found in the CITATIONS.md file.
You can cite the nf-core publication as follows:
The nf-core framework for community-curated bioinformatics pipelines.
Philip Ewels, Alexander Peltzer, Sven Fillinger, Harshil Patel, Johannes Alneberg, Andreas Wilm, Maxime Ulysse Garcia, Paolo Di Tommaso & Sven Nahnsen.
Nat Biotechnol. 2020 Feb 13. doi: 10.1038/s41587-020-0439-x.
Owner
- Name: Popgen48
- Login: Popgen48
- Kind: organization
- Repositories: 10
- Profile: https://github.com/Popgen48
Citation (CITATIONS.md)
# nf-core/fastqtobam: Citations ## [nf-core](https://pubmed.ncbi.nlm.nih.gov/32055031/) > Ewels PA, Peltzer A, Fillinger S, Patel H, Alneberg J, Wilm A, Garcia MU, Di Tommaso P, Nahnsen S. The nf-core framework for community-curated bioinformatics pipelines. Nat Biotechnol. 2020 Mar;38(3):276-278. doi: 10.1038/s41587-020-0439-x. PubMed PMID: 32055031. ## [Nextflow](https://pubmed.ncbi.nlm.nih.gov/28398311/) > Di Tommaso P, Chatzou M, Floden EW, Barja PP, Palumbo E, Notredame C. Nextflow enables reproducible computational workflows. Nat Biotechnol. 2017 Apr 11;35(4):316-319. doi: 10.1038/nbt.3820. PubMed PMID: 28398311. ## Pipeline tools - [FastQC](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/) - [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/) > Ewels P, Magnusson M, Lundin S, Käller M. MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics. 2016 Oct 1;32(19):3047-8. doi: 10.1093/bioinformatics/btw354. Epub 2016 Jun 16. PubMed PMID: 27312411; PubMed Central PMCID: PMC5039924. ## Software packaging/containerisation tools - [Anaconda](https://anaconda.com) > Anaconda Software Distribution. Computer software. Vers. 2-2.4.0. Anaconda, Nov. 2016. Web. - [Bioconda](https://pubmed.ncbi.nlm.nih.gov/29967506/) > Grüning B, Dale R, Sjödin A, Chapman BA, Rowe J, Tomkins-Tinch CH, Valieris R, Köster J; Bioconda Team. Bioconda: sustainable and comprehensive software distribution for the life sciences. Nat Methods. 2018 Jul;15(7):475-476. doi: 10.1038/s41592-018-0046-7. PubMed PMID: 29967506. - [BioContainers](https://pubmed.ncbi.nlm.nih.gov/28379341/) > da Veiga Leprevost F, Grüning B, Aflitos SA, Röst HL, Uszkoreit J, Barsnes H, Vaudel M, Moreno P, Gatto L, Weber J, Bai M, Jimenez RC, Sachsenberg T, Pfeuffer J, Alvarez RV, Griss J, Nesvizhskii AI, Perez-Riverol Y. BioContainers: an open-source and community-driven framework for software standardization. Bioinformatics. 2017 Aug 15;33(16):2580-2582. doi: 10.1093/bioinformatics/btx192. PubMed PMID: 28379341; PubMed Central PMCID: PMC5870671. - [Docker](https://dl.acm.org/doi/10.5555/2600239.2600241) - [Singularity](https://pubmed.ncbi.nlm.nih.gov/28494014/) > Kurtzer GM, Sochat V, Bauer MW. Singularity: Scientific containers for mobility of compute. PLoS One. 2017 May 11;12(5):e0177459. doi: 10.1371/journal.pone.0177459. eCollection 2017. PubMed PMID: 28494014; PubMed Central PMCID: PMC5426675.