This pipeline is primarily used to call variant and assemble short-read Illumina
sequencing data from viral samples. The pipeline is developed using Nextflow.
The pipelines follow the Nextflow DSL2 guidelines, and each process has a
singularity container associated with it. Except for genome_annotation.nf
which uses a custom conda environment that is included with the repo.
The primary workflow is ebvAssembly. The inputs for the workflow are read from
main.yaml. We use the hg38 human genome with the EBV contig removed to
remove host human sequences from our sequencing samples. The EBV reference
NC_007605.1 Human gammaherpesvirus 4, complete genome. The workflow takes the
following steps:
- QC on raw reads (
fastqQCRaw) - Trim adapters and low quality reads (
bbduk) - QC on trimmed reads (
fastqQCTrim) - Remove host reads and extract EBV reads (
hostReads) - QC on EBV specific reads (
fastQCEbv) - Repair read pair orders in EBV FASTQ files (
repairFastq) - Run SPAdes assembly (
spades) - Run Unicycler assembly (
unicycler) - Run ABACAS on both SPAdes and Unicycler assemblies (
abacasSpades,abacasUnicyler) - Identify genes from assemblies (
prokkaSpades,prokkaUnicycler) - Generate MultiQC reports (
runMultiQC) - Generate Quast reports (
quastSpades,quastUnicycler) - Call variants and annotate variants using GATK and SnpEff (
haplotypeCaller,cnnScoreVariants,annotateVCFs)
A run script run.sh is included in the repertoire to execute the workflow. The
user would need to edit the following variables in run.sh before running the
script
NXF_CONFIGWORKFLOW_REPOQUEUEpath_to_work_dirpath_to_yaml.yaml
The provided main.yaml serves as a template. Reference genomes used were
obtained here:
- Human genome: http://igenomes.illumina.com.s3-website-us-east-1.amazonaws.com/Homo_sapiens/NCBI/GRCh38/Homo_sapiens_NCBI_GRCh38.tar.gz
- EBV type 1 reference genome: https://www.ncbi.nlm.nih.gov/nuccore/NC_007605.1/
- EBV type 2 reference genome: https://www.ncbi.nlm.nih.gov/nuccore/NC_009334.1/
- GATK databases: https://github.com/bahlolab/bioinfotools/blob/master/GATK/resource_bundle.md
Note: We generated the reference sans_ebv mentioned in main.yaml by removing
the EBV contig from the hg38 genome file
-
Change directory to
viral_genomicsfolder -
Install the
ebv_enktlenvironmentconda env create -f snpeff.yml -
Change the path to
data.dirinsnpEff.configto theebvfolder inenvs -
Copy the
snpEff.configfile to the correct pathcp envs/snpEff.config ~/.conda/envs/ebv_enktl/share/snpeff-5.0-1/