nf-core-mphivseq
Minority variant mutation detection for HIV sequencing data using mpileup approach.
https://github.com/clinical-infection-research-uosheffield/nf-core-mphivseq
Science Score: 52.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
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 10 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
✓Institutional organization owner
Organization clinical-infection-research-uosheffield has institutional domain (www.sheffield.ac.uk) -
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.9%) to scientific vocabulary
Repository
Minority variant mutation detection for HIV sequencing data using mpileup approach.
Basic Info
- Host: GitHub
- Owner: Clinical-Infection-Research-UoSheffield
- License: mit
- Language: Nextflow
- Default Branch: master
- Size: 230 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Introduction
nf-core/mphivseq is a bioinformatics pipeline designed to analyze HIV sequencing data for the presence of majority and minority variants of mutations as defined by the HIVdb Stanford database. The workflow includes steps for quality control, alignment, variant calling, and report generation using various bioinformatics tools, culminating in a comprehensive html report.
The mpileup HIV pipeline processes FASTQ files from sequencing to identify mutations in the PR, RT, and INT proteins using the Stanford consensus sequence for subtype B (download link: []) (source: [
]). During processing, any variant bases with a frequency below 10% are discarded. The remaining mutations are then assembled into artificial alleles. The 1st allele is created by taking the most common base at each position, while the 2nd allele is built from the second most common base, with gaps filled by the reference sequence where no mutations are present. This process is repeated for the 3rd and 4th most common bases, resulting in four artificial alleles with varying mutation frequencies. These sequences are queried against Stanford HIVDB to receive information about drug susceptibility and subtype annotation. All the information is put into html reports which can be further printed or saved as pdf files.
Workflow Steps
Run FastQC:
- Input:
ch_samplesheet - Output:
ch_multiqc_files,ch_versions
- Input:
Collate and Save Software Versions:
- Input:
ch_versions - Output:
ch_collated_versions
- Input:
Align with Minimap2:
- Input:
ch_samplesheet,params.reference - Output:
ch_aligned
- Input:
Filter and View BAM Files:
- Input:
ch_aligned - Output:
ch_filtered
- Input:
Run BCFTOOLS Mpileup:
- Input:
ch_filtered,params.reference - Output:
BCFTOOLS_MPILEUP.out.vcf
- Input:
Process VCF Files:
- Input:
BCFTOOLS_MPILEUP.out.vcf - Output:
VCF_PROCESS.out.csv - Description: Reformats the VCF file to extract allele information and frequencies for each gene position. It removes alleles with frequencies below 10%. This script converts raw VCF data into a more interpretable format for further analysis.
- Input:
Process Allele Sequences:
- Input:
VCF_PROCESS.out.csv - Output:
ALLELE_SEQ.out.fasta - Description: Takes columns from the VCF processing step (reference allele, allele 1, allele 2, allele 3, and allele 4) and constructs nucleotide sequences. Where there is no nucleotide it takes the reference nucleotide. For alleles with frequencies below 10%, it uses the reference allele instead. The resulting sequences are written to a FASTA file, which is prepared for subsequent analysis by HIVDB.
- Input:
Run SierraPy:
- Input:
ALLELE_SEQ.out.fasta - Output:
SIERRAPY.out.json - Description: Analyses the FASTA file using Stanford HIVDB to identify mutation calls. Outputs the results in JSON format. HIVDB web server available at https://hivdb.stanford.edu/hivdb/by-sequences/
- Input:
Combine JSON and CSV Results:
- Input:
SIERRAPY.out.json,VCF_PROCESS.out.csv - Output:
ch_json_process
- Input:
Process JSON Results:
- Input:
ch_json_process - Output:
JSON_PROCESS.out.results - Description: Reformats the JSON output from HIVDB. It looks up frequency of a mutation in the following ways:
- looks for 3 rows which constitute the codon of a mutation
- looks at the allele column that corresponds to the variant the mutation came from
- double checks that the allele is different than the reference
- takes the frequency of the allele
- transforms it into percentage value
- Input:
Generate Reports:
- Input:
JSON_PROCESS.out.results - Output:
REPORTS.out - Description: Runs R script to combine information and output a html report
- Input:
Run MultiQC:
- Input:
ch_multiqc_files,ch_multiqc_config,ch_multiqc_custom_config,ch_multiqc_logo - Output:
MULTIQC.out.report
- Input:
Channels
- ch_samplesheet: Channel containing the input samplesheet, which lists the sequencing data files to be processed. Derived from params.input.
- ch_versions: Channel containing the software versions used in the workflow, ensuring reproducibility.
- chmultiqcfiles: Channel containing files to be aggregated by MultiQC for a comprehensive quality control report.
- chcollatedversions: Channel containing the collated software versions, compiled into a single file.
- ch_aligned: Channel containing aligned BAM files, which are the result of mapping sequencing reads to the reference genome via minimap2.
- ch_filtered: Channel containing filtered BAM files, which have been processed to remove unmapped reads.
- chjsonprocess: Channel containing combined JSON and CSV results, which are used for downstream analysis and report generation.
Parameters
- params.reference: Path to the reference genome file used for aligning sequencing reads (HXB2).
- params.intervals: Specific genomic intervals to be used for filtering during bcftools mpileup, allowing for targeted analysis.
- params.multiqc_config: Path to a custom configuration file for MultiQC, enabling tailored quality control reports.
- params.multiqc_logo: Path to a custom logo file for MultiQC reports, allowing for branding and customization.
- params.multiqcmethodsdescription: Custom methods description text for MultiQC reports, providing detailed information about the analysis methods used.
Usage
[!NOTE] If you are new to Nextflow and nf-core, please refer to this page on how to set-up Nextflow. Make sure to test your setup with
-profile testbefore running the workflow on actual data.
First, prepare a samplesheet with your input data that looks as follows:
samplesheet.csv:
csv
sample,fastq_1,fastq_2
CONTROL_REP1,AEG588A1_S1_L002_R1_001.fastq,AEG588A1_S1_L002_R2_001.fastq
Each row represents a pair of fastq files (paired-end sequencing data). The input files should be in fastq or fastq.gz format.
Now, you can run the pipeline using:
bash
nextflow run nf-core/mphivseq \
-profile <docker/singularity/.../institute> \
--input samplesheet.csv \
--reference <path_to_reference_genome>.fasta \
--intervals <path_to_intervals_file>.bed \
--outdir <OUTDIR>
[!WARNING] Please provide pipeline parameters via the CLI or Nextflow
-params-fileoption. Custom config files including those provided by the-cNextflow option can be used to provide any configuration except for parameters; see docs.
For more details and further functionality, please refer to the usage documentation and the parameter documentation.
Pipeline output
The pipeline generates several output files, with the most important being the HTML report. This report provides a detailed summary of the analysis results, including the presence of majority and minority variants of mutations as defined by the HIVdb Stanford database.
Key Outputs
HTML Report: The main output of the pipeline, providing a comprehensive summary of the analysis results. This report includes:
- Sample Information (runID, timestamps, sampleID)
- HIV Subtype
- Protease mutations (Major, Accessory, Other)
- Reverse Transcriptase mutations (Major, Accessory, Other)
- Integrase mutations (Major, Accessory, Other)
- Inhibitor susceptibility and drug effectivness
- Additional information on inhibitor susceptibility scoring
- Location:
report/
MultiQC Report: A summary report generated by MultiQC, aggregating quality control metrics from various steps in the pipeline.
- Location:
multiqc/
- Location:
Aligned BAM Files: Files containing sequencing reads aligned to the reference genome.
- Location:
minimap2/
- Location:
Filtered BAM Files: Aligned BAM files that have been processed to remove unwanted reads.
- Location:
samtools/
- Location:
Variant Call Files (VCF): Files containing the called variants from the sequencing data.
- Location:
bcftools/
- Location:
Allele FASTA Files: FASTA files containing 4 artificial alleles for each sample.
- Location:
allele/
- Location:
FastQC Reports: Quality control reports generated by FastQC for the input sequencing data.
- Location:
fastqc/
- Location:
JSON Files: Folder containing two CSV files for each sample:
- One with scores for each drug
- One with mutations for each allele and their frequencies
- Location:
json/
SierraPy JSON Report: A JSON report generated by Sierra after running it against the HIVdb database
- Location:
sierrapy/
- Location:
Software Versions: A YAML file listing the software versions used in the workflow, ensuring reproducibility.
- Location:
pipeline_info/
- Location:
To see the results of an example test run with a full-size dataset, refer to the results tab on the nf-core website pipeline page. For more details about the output files and reports, please refer to the output documentation.
Credits
nf-core/mphivseq was originally written by Magdalena Dabrowska at the University of Sheffield.
We thank the following people for their extensive assistance in the development of this pipeline:
Contributions and Support
If you would like to contribute to this pipeline, please see the contributing guidelines.
For further information or help, don't hesitate to get in touch on the Slack #mphivseq channel (you can join with this invite).
Citations
<!-- If you use nf-core/mphivseq for your analysis, please cite it using the following doi: 10.5281/zenodo.XXXXXX --><!-- TODO nf-core: Add bibliography of tools and data used in your pipeline -->
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: Clinical Infection Research UoSheffield
- Login: Clinical-Infection-Research-UoSheffield
- Kind: organization
- Email: ....@sheffield.ac.uk
- Location: United Kingdom
- Website: https://www.sheffield.ac.uk/smph/research/themes/infection-and-immunity
- Repositories: 1
- Profile: https://github.com/Clinical-Infection-Research-UoSheffield
Clinical-oriented research into Microorganisms, the Human body and Immunity internationally and in the UK
Citation (CITATIONS.md)
# nf-core/mphivseq: 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/) > Andrews, S. (2010). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online].- [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) > Merkel, D. (2014). Docker: lightweight linux containers for consistent development and deployment. Linux Journal, 2014(239), 2. 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.
GitHub Events
Total
- Watch event: 1
- Public event: 1
Last Year
- Watch event: 1
- Public event: 1
Dependencies
- actions/upload-artifact v4 composite
- octokit/request-action v2.x composite
- seqeralabs/action-tower-launch v2 composite
- actions/upload-artifact v4 composite
- seqeralabs/action-tower-launch v2 composite
- mshick/add-pr-comment b8f338c590a895d50bcbfa6c5859251edc8952fc composite
- actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
- conda-incubator/setup-miniconda a4260408e20b96e80095f42ff7f1a15b27dd94ca composite
- eWaterCycle/setup-apptainer main composite
- jlumbroso/free-disk-space 54081f138730dfa15788a46383842cd2f914a1be composite
- nf-core/setup-nextflow v2 composite
- actions/stale 28ca1036281a5e5922ead5184a1bbf96e5fc984e composite
- actions/setup-python 0b93645e9fea7318ecaed2b359559ac225c90a2b composite
- eWaterCycle/setup-apptainer 4bb22c52d4f63406c49e94c804632975787312b3 composite
- jlumbroso/free-disk-space 54081f138730dfa15788a46383842cd2f914a1be composite
- nf-core/setup-nextflow v2 composite
- actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
- actions/setup-python 0b93645e9fea7318ecaed2b359559ac225c90a2b composite
- peter-evans/create-or-update-comment 71345be0265236311c031f5c7866368bd1eff043 composite
- actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
- actions/setup-python 0b93645e9fea7318ecaed2b359559ac225c90a2b composite
- actions/upload-artifact b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 composite
- nf-core/setup-nextflow v2 composite
- pietrobolcato/action-read-yaml 1.1.0 composite
- dawidd6/action-download-artifact 80620a5d27ce0ae443b965134db88467fc607b43 composite
- marocchino/sticky-pull-request-comment 331f8f5b4215f0445d3c07b4967662a32a2d3e31 composite
- actions/setup-python 0b93645e9fea7318ecaed2b359559ac225c90a2b composite
- rzr/fediverse-action master composite
- zentered/bluesky-post-action 80dbe0a7697de18c15ad22f4619919ceb5ccf597 composite
- actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
- mshick/add-pr-comment b8f338c590a895d50bcbfa6c5859251edc8952fc composite
- nichmor/minimal-read-yaml v0.0.2 composite