Skip to main content

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.

GitHub release PyPI version PyPI downloads Docker pulls

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

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

Metadata

Release files for epitest 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for epitest 0.1
File Size Uploaded Provenance Actions
epitest-0.1.tar.gz 30.5 kB Without provenance Details for epitest-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for epitest 0.1
File Interpreter ABI Platform Actions
epitest-0.1-py3-none-any.whl Python 3 none any Details for epitest-0.1-py3-none-any.whl

Total release size: 67.7 kB

Release files / epitest-0.1.tar.gz

Download URL epitest-0.1.tar.gz
Size 30.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c16729f565ea499fd20c8c99525df6279c2503a793b1201464e1537340a7a303
BLAKE2b-256 checksum
How to use checksums
a3f3ed2409e0d13e9d68a751ccc75c177b6152190eb2452f3fe93b819dec9fc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / epitest-0.1-py3-none-any.whl

Download URL epitest-0.1-py3-none-any.whl
Size 37.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef8b4beeec22ddf4afba75b871aeadb835e48182d735475d8f603934f1157ede
BLAKE2b-256 checksum
How to use checksums
5ad6c7d1c09f072359a798d32df1cdc0b174663f24995050cd1d9ea0b6a374e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for epitest 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page