Active development since 2025-01-20! Use with caution.
This Nextflow Pipeline was build similarly to QuasiFlow, and utilises Quasitools HYDRA for the mapping, variant calling and generation of consensus HIV-1 polymerase. Futher classification of drug resistance profiles and scores is done using the Sierra-local through the python package SierraPy. Please cite the relevant tools if utilising this workflow.
This pipeline was built and tested using Nextflow v24.10.1.5930, it has been largely tested using conda as the package manager, but is supported with Docker and Singularity container images built using Seqera container webtool.
The first option is to install the pipeline using nextflow, it will be installed in the $HOME directory under the .nextflow sub-directory. Confirm that installation was successful by printing out the help message.
nextflow pull phesketh-igtp/HUGTiP-HIV-1.nf
nextflow run ~/.nextflow/assets/phesketh-igtp/HUGTiP-HIV-1.nf --help
Alternatively, the github repository can be cloned.
git clone phesketh-igtp/HUGTiP-HIV-1.nf
nextflow run ./phesketh-igtp/HUGTiP-HIV-1.nf/main.nf --help
With the repository available locally, you can proceed with performing the test to ensure that everything works on your system. You may need to adjust the paths in the samplesheet to perform the test.
nextflow run ./phesketh-igtp/HUGTiP-HIV-1.nf/main.nf \
--samplesheet test/samplesheet.csv \
--runID test \
--outdir init-test \
-profile conda_on #OR: docker_on, singularity_on, aptainer_on
You can compare the outputs from the test with the expected results in the rest directory (e.g. test/*.results.html).
To run the pipeline you require a csv file that contains 4 columns, consult the example test/samplesheet.csv:
- sampleID - name of the sample
- forward - full path to forward reads
- reverse - full path to reverse reads
- type - either 'sample' or 'control'
| sampleID | forward | reverse | type |
|---|---|---|---|
| sample-1 | ../test/sample1_R1.fastq.gz | ../test/sample1_R2.fastq.gz | sample |
| sample-8 | ../test/sample8_R1.fastq.gz | ../test/sample8_R2.fastq.gz | control |
nextflow run ./phesketh-igtp/HUGTiP-HIV-1.nf/main.nf \
--samplesheet /path/to/samplesheet.csv \
--outdir /path/to/output \
-p conda_on
Mandatory parameters
--samplesheet: Path to samplesheet csv (',' seperated)
Optional parameters
--reporting_threshold: Minimum mutation frequency percent to report.--consensus_pct: Minimum percentage a base needs to be incorporated into the consensus sequence.--min_read_qual: Minimum quality for a position in a read to be masked.--length_cutoff: Reads which fall short of the specified length will be filtered out.--score_cutoff: Reads that have a median or mean quality score (depending on the score type specified) less than the score cutoff value will be filtered out.--min_variant_qual: Minimum quality for variant to be considered later on in the pipeline.--min_dp: Minimum required read depth for variant to be considered later on in the pipeline.--min_ac: The minimum required allele count for variant to be considered later on in the pipeline--min_freq: The minimum required frequency for mutation to be considered in drug resistance report.
Optional parameters
--outdir: Path to directory where results will be saved (default: ./out)--workDir: Path to directory where temporary work directory will be saved - can be deleted after analysis (default: ./work)
.
├── fastQC
│ ├── ${sampleID}_val_{1,2}_fastqc.html
│ └── ${sampleID}_val_{1,2}_fastqc.zip
├── final-report
│ └── ${sampleID}.report.html
├── hydra
│ ├── ${sampleID}.consensus.fasta
│ ├── ${sampleID}.dr_report.csv
│ ├── ${sampleID}.hydra.coverage.tsv
│ └── ${sampleID}.hydra.vcf
├── multiQC
│ └── raw_reads_multiqc_report.html
├── readStats
│ ├── ${sampleID}-1.length-freq.tsv
│ └── ${sampleID}-1.stats.tsv
└── sierra
└── ${sampleID}.sierrapy.hiv1.csv
- Ewels P. et al. (2016) MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics, 32, 3047–3048.
- Ho J.C. et al. (2019) Sierra-local: a lightweight standalone application for drug resistance prediction. Softw. J. Open Source Softw., 4, 1186.
- Krueger F. (2012) Trim Galore: A Wrapper Tool Around Cutadapt and FastQC to Consistently Apply Quality and Adapter Trimming to FastQ files, with Some Extra Functionality for MspI-Digested RRBS-Type (Reduced Representation Bisufite-Seq) Libraries.
- Langmead B., Salzberg S.L. (2012) Fast gapped-read alignment with Bowtie 2. Nat. Methods, 9, 357–359.
