Skip to main content

Identify frequencies of concerning mutations from aligned reads

Project description

Alcov

Abundance learning for SARS-CoV-2 variants. The primary purpose of the tool is:

  • Estimating abundace of variants of concern from wastewater sequencing data

The tool can also be used for:

The tool is under active development. If you have questions or issues, please open an issue on GitHub or email me (email in setup.py).

Installing

The latest release can be downloaded from PyPI

pip install alcov

This will install the Python library and the CLI.

To install the development version, clone the repository and run

pip install .

Usage example

Estimating relative abundance of variants of concern:

alcov find_lineages reads.bam

Converting mutation names:

$ alcov nt A23063T
A23063T causes S:N501Y
$ alcov aa S:E484K
G23012A causes S:E484K

Finding mutations in BAM file:

alcov find_mutants reads.bam

Finding mutations in BAM files for multiple samples:

alcov find_mutants samples.txt

Where samples.txt looks like:

reads1.bam	Sample 1 name
reads2.bam	Sample 2 name
...

Running find_mutants will print the number of reads with and without each mutation in each sample and then generate a heatmap showing the frequencies for all samples.

You can also specify a custom mutations file:

alcov find_mutants samples.txt mutations.txt

Where mutations.txt looks like:

S:N501Y
G23012A
...

Getting the read depth for each amplicon

alcov amplicon_coverage reads.bam

or

alcov amplicon_coverage samples.txt

Plotting amplicon GC content against amplicon depth

alcov gc_depth reads.bam

or

alcov gc_depth samples.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alcov-0.1.1.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

alcov-0.1.1-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file alcov-0.1.1.tar.gz.

File metadata

  • Download URL: alcov-0.1.1.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6

File hashes

Hashes for alcov-0.1.1.tar.gz
Algorithm Hash digest
SHA256 42059356a63868b004c754cbff5beac31d3d323f82551d345b8da79236819f3d
MD5 c9fc6a18eaa0fa2095bafb10425e1bdd
BLAKE2b-256 f8164cc29d652eb11755e7f68a02e41097577bc4e8605f8ea1222e2dc990f6aa

See more details on using hashes here.

File details

Details for the file alcov-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: alcov-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6

File hashes

Hashes for alcov-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd96989bf10c08c72d95c3041bb06fbc4968476972d29c75232e88b2b73e713f
MD5 aa77a29bb04ffcc59a61da997cecf9a8
BLAKE2b-256 4b1cdb2bd1d4e5328c0336daf74ec149ee87ce4b816b6d958a2bdda1245c3737

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page