Tests for detecting such epidemic aspects as contact-tracing, incubation and superspreading in transmission trees.
Project description
epitest
Quick non-parametric tests for detecting if such aspects as contact tracing, incubation, superspreading or transmission/detection rate changes over time are present in an epidemic represented by a time-scaled phylogenetic trees.
Input data
One needs to supply a time-scaled phylogenetic tree in newick format, or a collection of trees (one per line in the newick file), which will be treated as all belonging to the same epidemic.
Installation
There are 4 alternative ways to run epitest on your computer: with docker, apptainer, in Python3, or via command line (requires installation with Python3).
Run in python3 or command-line (for linux systems, recommended Ubuntu 21 or newer versions)
You could either install python (version 3.10 or higher) system-wide and then install epitest via pip:
sudo apt install -y python3 python3-pip python3-setuptools python3-distutils
pip3 install epitest
or alternatively, you could install python (version 3.10 or higher) and epitest via conda (make sure that conda is installed first). Here we will create a conda environment called epitestenv:
conda create --name epitestenv python=3.10
conda activate epitestenv
pip install epitest
Basic usage in a command line
If you installed epitest in a conda environment (here named epitestenv), do not forget to first activate it, e.g.
conda activate epitestenv
Run the following commands to check for the presence of contact tracing, superspreading, incubation, and changes in transmission and detection patterns over time in a given tree. Here we will use an early SARS-CoV-2 tree real_data/covid.resolved.nwk as an example. The command will produce a tab-separated file covid.resolved.epitest.tsv, containing the results of the tests (can be viewed with a text editor, Excel or Libre Office Calc). The results are presented as p-values, where the values lower than a certain threshold (e.g., 0.05) suggest the presence of the epidemic aspect in question (e.g., incubation).
epitest --nwk covid.resolved.nwk --log covid.resolved.epitest.tsv
Help
To see detailed options, run:
epitest --help
Run with docker
Basic usage
Once docker is installed, run the following command to to check for the presence of contact tracing, superspreading, incubation, and changes in transmission and detection patterns over time in a given tree:
docker run -v <path_to_the_folder_containing_the_tree>:/data:rw -t modpath/epitest --nwk /data/<tree_file>.nwk --log /data/<test_results>.tsv
This will produce a tab-separated file in the <path_to_the_folder_containing_the_tree> folder, containing the test results (can be viewed with a text editor, Excel or Libre Office Calc).
Help
To see advanced options, run
docker run -t modpath/epitest -h
Run with apptainer
Basic usage
Once apptainer is installed, run the following command to to check for the presence of contact tracing, superspreading, incubation, and changes in transmission and detection patterns over time in a given tree:
apptainer run docker://modpath/epitest --nwk <tree_file>.nwk --log <test_results>.tsv
This will produce a tab-separated file, containing the test results (can be viewed with a text editor, Excel or Libre Office Calc).
Help
To see advanced options, run
apptainer run docker://modpath/epitest -h
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file epitest-0.1.tar.gz.
File metadata
- Download URL: epitest-0.1.tar.gz
- Upload date:
- Size: 30.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c16729f565ea499fd20c8c99525df6279c2503a793b1201464e1537340a7a303
|
|
| MD5 |
72bd54225956936dea42174186627ee2
|
|
| BLAKE2b-256 |
a3f3ed2409e0d13e9d68a751ccc75c177b6152190eb2452f3fe93b819dec9fc3
|
File details
Details for the file epitest-0.1-py3-none-any.whl.
File metadata
- Download URL: epitest-0.1-py3-none-any.whl
- Upload date:
- Size: 37.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef8b4beeec22ddf4afba75b871aeadb835e48182d735475d8f603934f1157ede
|
|
| MD5 |
59fddb8ccb7788782e18beb74990ab4b
|
|
| BLAKE2b-256 |
5ad6c7d1c09f072359a798d32df1cdc0b174663f24995050cd1d9ea0b6a374e4
|