User Guide
Organizing Data
We assume that all wastewater samples are organized in the data directory, each within its own subdirectory given by DIR argument (see Run Command). For each sample, WEPP generates intermediate and output files in corresponding subdirectories under intermediate and result, respectively.
Each created DIR inside data is expected to contain the following files:
- Sequencing Reads: Ending with
*_R{1/2}.fastq.gzfor paired-ended reads and*.fastq.gzfor single-ended. - Reference Genome in FASTA format
- Mutation-Annotated Tree (MAT)
- [OPTIONAL] Genome Masking File:
mask.bed, whose third column specifies sites to be excluded from analysis. - [OPTIONAL] Taxonium
.jsonlfile to be used for visualizing results in the WEPP dashboard.
Visualization of WEPP's workflow directories
π WEPP
ββββπdata # [User Created] Contains data to analyze
ββββπSARS_COV_2_real # SARS-CoV-2 run wastewater samples - 1
ββββsars_cov_2_reads_R1.fastq.gz # Paired-ended reads
ββββsars_cov_2_reads_R2.fastq.gz
ββββsars_cov_2_reference.fa
ββββmask.bed # OPTIONAL
ββββsars_cov_2_taxonium.jsonl.gz # OPTIONAL
ββββsars_cov_2_mat.pb.gz
ββββπintermediate # [WEPP Generated] Contains intermediate stage files
ββββπSARS_COV_2_real
ββββfile_1
ββββfile_2
ββββπresults # [WEPP Generated] Contains final WEPP results
ββββπSARS_COV_2_real
ββββfile_1
ββββfile_2
WEPP Arguments
The WEPP Snakemake pipeline requires the following arguments, which can be provided either via the configuration file (config/config.yaml) or passed directly on the command line using the --config argument. The command line arguments take precedence over the config file.
DIR- Folder name containing the wastewater reads.FILE_PREFIX- File Prefix for all intermediate files.REF- Reference Genome in fasta.TREE- Mutation-Annotated Tree.SEQUENCING_TYPE- Sequencing read type (s:Illumina single-ended, d:Illumina double-ended, or n:ONT long reads).PRIMER_BED- BED file argument for primers, with few primers provided in theprimersfolder. Requires path to the file.MIN_AF- Alleles with an allele frequency below this threshold in the reads will be masked (Illumina: 0.5%, Ion Torrent: 1.5%, ONT: 2%).MIN_DEPTH- Sites with read depth below this threshold will be masked.MIN_Q- Alleles with a Phred score below this threshold in the reads will be masked.MIN_PROP- Minimum Proportion of haplotypes (Wastewater Samples: 0.5%, Clinical Samples: 5%).MIN_LEN- Minimum read length to be considered after ivar trim (Deafult: 80).MAX_READS- Maximum number of reads considered by WEPP from the sample. Helpful for reducing runtime.CLADE_LIST- List the clade annotation schemes used in the MAT. SARS-CoV-2 MAT uses both nextstrain and pango lineage naming systems, so use "nextstrain,pango" for it.CLADE_IDX- Index used for assigning clades to selected haplotypes from MAT. Use '1' for Pango naming and '0' for Nextstrain naming for SARS-CoV-2. Other pathogens usually follow a single lineage annotation system, so work with '0'. In case of NO lineage annotations, use '-1'. Lineage Annotations could be checked by running: "matUtils summary -i {TREE} -C {FILENAME}" -> Use '0' for annotation_1 and '1' for annotation_2.DASHBOARD_ENABLED- Set toTrueto enable the interactive dashboard for viewing WEPP results, orFalseto disable it.TAXONIUM_FILE[Optional] - Name of the user-provided Taxonium.jsonlfile for visualization. If specified, this file will be used instead of generating a new one from the given MAT. Ensure that the provided Taxonium file corresponds to the same MAT used for WEPP.
Run Command
WEPP's snakemake workflow requires DIR and FILE_PREFIX as config arguments through the command line, while the remaining ones can be taken from the config file. It also requires --cores from the command line, which specifies the number of threads used by the workflow.
Examples:
-
Using all the parameters from the config file.
-
Overriding MIN_Q and CLADE_IDX through command line.
-
To visualize results from a previous WEPP analysis that was run without the dashboard, set
DASHBOARD_ENABLEDtoTrueand re-run only the dashboard components, without reanalyzing the dataset.
Note
β οΈ Use the same configuration parameters (DIR, FILE_PREFIX, etc.) as were used for the specific project. This ensures the dashboard serves the correct results for your chosen dataset. β οΈ Make sure port forwarding is enabled when running on external servers to view results on your personal machine.
MAT Download
Mutation-annotated trees (MAT) for different pathogens are maintained by the UShER team, which can be found here. You can also create your own MAT for any pathogen from the consensus genome assemblies using viral_usher.