Skip to content

Latest commit

 

History

77 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HUGTiP HIV-1 Drug Resistance and Lineage Profiling

Active development since 2025-01-20! Use with caution.

Introduction

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.

Installation

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).


Usage

To run the pipeline you require a csv file that contains 4 columns, consult the example test/samplesheet.csv:

  1. sampleID - name of the sample
  2. forward - full path to forward reads
  3. reverse - full path to reverse reads
  4. 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

Simple usage

nextflow run ./phesketh-igtp/HUGTiP-HIV-1.nf/main.nf \
            --samplesheet /path/to/samplesheet.csv \
            --outdir /path/to/output \
            -p conda_on

Parameters

HyDRA parameters

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.

Output parameters

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)

Outputs

.
├── 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

Citations

About

Nextflow workflow for the detection and lineage typing of HIV-1 genomes. This worklow is an updated and modified version of QuasiFlow

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages