Workflow for calling and analyzing HPV integration events in ONT long-read sequencing data.
This will clone the repository. You can run workflow within this directory.
git clone https://github.com/vanessa-porter/callONTIntegration.git
To run this workflow, you must have snakemake (v6.12.3) and conda. You can install snakemake using this guide. The remaining dependencies will be downloaded automatically within the snakemake workflow.
- bam: ONT alignment (bam file)
- methyl: Methyl-tagged ONT alignment from NanoPolish (bam file)
- HP1: HP1-tagged ONT alignment from NanoMethPhase (bam file)
- HP2: HP2-tagged ONT alignment from NanoMethPhase (bam file)
- dmr: Allelic differentially methylated regions (DSS callDMR.txt)
- phase: Phased SNVs from WhatsHap (vcf file)
- bam: ONT alignment with added HP tags (bam file)
- dmr: Allelic differentially methylated regions (DSS callDMR.txt)
- phase: Phased SNVs from WhatsHap (vcf file)
Config files to specify parameters and paths needed for the workflow. The main parameter to include is the genome path.
genome_path: /path/to/genome/fasta
Main config file to specify input files. Use other headers for R9 flow cell samples.
samples:
sample_name:
bam: /path/to/bam/file
dmr: /path/to/dmr/file
phase: /path/to/vcf/file
A text file can be converted to the samples.yaml file using the scripts/samplestoyaml.py script. The tsv file should have the sample name in one column and the path in another and be tab delimited (no header).
scripts/samplestoyaml.py -t samples.txt -o config/samples.yaml
Each section of the workflow has to be run in succession, according to the listed number on the workflow. The correct version should be used for steps that have different workflows for R9 and R10 flow cells. Samples must be ran one at a time, with each named in the command to pull the paths from the config file.
SAMPLE=sample_name snakemake -s workflow/1_R10_callIntegration.snakefile -c 30 --use-conda
SAMPLE=sample_name snakemake -s workflow/2_intTypeTest.snakefile -c 30 --use-conda
SAMPLE=sample_name snakemake -s workflow/3_intTypeTest.snakefile -c 30 --use-conda
SAMPLE=sample_name snakemake -s workflow/4_intTypeTest.snakefile -c 30 --use-conda
SAMPLE=sample_name snakemake -s workflow/5_intTypeTest.snakefile -c 30 --use-conda
SAMPLE=sample_name snakemake -s workflow/6_R10_methylAnalysis.snakefile -c 30 --use-conda
SAMPLE=sample_name snakemake -s workflow/7_R10_methylAnalysis.snakefile -c 30 --use-conda
The contributors of this project are Vanessa Porter