Skip to main content

No project description provided

Project description

pyCoverM

This package is still in experimental stages and aims to be a simple Python interface to CoverM's fast coverage estimation functions. Currently, pyCoverM provides two functions: is_bam_sorted, which checks whether a BAM file is sorted by coordinate, and get_coverages_from_bam, that computes average contig coverages from sorted BAM files.

Installation

pip install pycoverm

Usage

/// is_bam_sorted(bam_file)
/// --
///
/// Checks whether a BAM file is sorted by coordinate.
///
/// Parameters
/// ----------
/// bam_file : list
///     Path to a BAM file.
///
/// Returns
/// -------
/// bool
///     Returns `True` if the BAM file is sorted by coordinate and `False`
///     otherwise.
/// get_coverages_from_bam(bam_list, contig_end_exclusion=75, min_identity=0.97, threads=1)
/// --
///
/// Computes contig mean coverages from sorted BAM files. Trimmed means will be
/// computed if `trim_min` and/or `trim_max` are set to values greater than 0.
///
/// Parameters
/// ----------
/// bam_list : list
///     Paths to input BAM files.
/// contig_end_exclusion : int, optional
///     Exclude bases at the ends of reference sequences from calculation.
///     Default is 75.
/// min_identity : float, optional
///     Exclude reads by overall identity to the reference sequences.
///     Default is 0.97.
/// trim_lower : float, optional
///     Fraction to trim from the lower tail of the coverage distribution.
///     Default is 0.0.
/// trim_upper : float, optional
///     Fraction to trim from the upper tail of the coverage distribution.
///     Default is 0.0.
/// contig_set : set, optional
///     If provided, only the coverages of the contigs within `contig_set` will
///     returned.
///     Default is None (return the coverages of all contigs).
/// threads : int, optional
///     Number of threads to use for coverage computation. Default is 1.
///
/// Returns
/// -------
/// tuple
///     A tuple whose fist element is a list of the contig names and the second
///     one is a numpy matrix of contig coverages in the input BAM files.

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

pycoverm-0.2.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pycoverm-0.2.0-cp39-cp39-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

pycoverm-0.2.0-cp39-cp39-macosx_10_7_x86_64.whl (477.6 kB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

pycoverm-0.2.0-cp38-cp38-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

pycoverm-0.2.0-cp38-cp38-macosx_10_7_x86_64.whl (477.6 kB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

pycoverm-0.2.0-cp37-cp37m-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

pycoverm-0.2.0-cp37-cp37m-macosx_10_7_x86_64.whl (477.6 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

pycoverm-0.2.0-cp36-cp36m-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

pycoverm-0.2.0-cp36-cp36m-macosx_10_7_x86_64.whl (477.9 kB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

File details

Details for the file pycoverm-0.2.0.tar.gz.

File metadata

  • Download URL: pycoverm-0.2.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200322 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for pycoverm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 60461a53e80c67c34ce13c07deed62721e6176f517e510f4196eb808f5c7fb42
MD5 1532122fbc6e385d90b8222b04232bbb
BLAKE2b-256 9d03ec130787e902c043d231c3d7774650be87baa1ead26aa6f16fa40dc9fcf6

See more details on using hashes here.

File details

Details for the file pycoverm-0.2.0-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pycoverm-0.2.0-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200322 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for pycoverm-0.2.0-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0b791cf6af8b48b9c8663cc0ea065e4b5aa5c9669d926c137c61b2205591f23b
MD5 82e5c847d984f756d9ba3b2773eecbf2
BLAKE2b-256 99c44f21a3fd2d6977920785899eb3583468f2993dc11e6d7abd2400249481f8

See more details on using hashes here.

File details

Details for the file pycoverm-0.2.0-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: pycoverm-0.2.0-cp39-cp39-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 477.6 kB
  • Tags: CPython 3.9, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200322 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for pycoverm-0.2.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 02e816cbf90ff434326b1366f591a5acbd8a4c2f56b05911051bf1fada1e9031
MD5 f176d07e80e8b5778c78ad97811ba9be
BLAKE2b-256 e4b5287dd333bf06d25449be444e4530823477dc13b0b23defa07dbec1f5b570

See more details on using hashes here.

File details

Details for the file pycoverm-0.2.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pycoverm-0.2.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200322 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for pycoverm-0.2.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8760ce4001cb795e7d3a4ce5bebd9d8e0d079f0dd7b5a6597d59fa979cbb392f
MD5 ee298d2862ab9bace161e7a57f95df39
BLAKE2b-256 0355ac8ea7c00e855ebc02e0edd9df3c99c1b2e41c4dd9f36f380fe39631f024

See more details on using hashes here.

File details

Details for the file pycoverm-0.2.0-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: pycoverm-0.2.0-cp38-cp38-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 477.6 kB
  • Tags: CPython 3.8, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200322 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for pycoverm-0.2.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 ab0c5de11fcb883be40469a79420feb8b50485a45d89691facca6a2e605c1ac2
MD5 44af872f95bf765d41e7e0a0c8a87231
BLAKE2b-256 76704c33feff4df793d57fa82995ab9cbef7fc69a37a05ae2d71418b49c830f5

See more details on using hashes here.

File details

Details for the file pycoverm-0.2.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pycoverm-0.2.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200322 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for pycoverm-0.2.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 04aaa8c1e6d895599df9187c7b8f89ce9b417c89ad4ea7629e6bdc0df0a227a7
MD5 703dc23276d686caf12a396a114596e2
BLAKE2b-256 e2958809c2fea38d2d14cd3f6bfb1b408cb80f85dd6af01ef522c07d71a8b93c

See more details on using hashes here.

File details

Details for the file pycoverm-0.2.0-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: pycoverm-0.2.0-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 477.6 kB
  • Tags: CPython 3.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200322 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for pycoverm-0.2.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b0008701456fe8e0607d336f87843a73bbade201fe04040c8320c5d94325f2d7
MD5 7d86ee6b7750e5369bf886f734824df7
BLAKE2b-256 aebb35f098910746c901f38d464357a0bad61dad8717c5356d82d477085658ef

See more details on using hashes here.

File details

Details for the file pycoverm-0.2.0-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pycoverm-0.2.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200322 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for pycoverm-0.2.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 977845f6b395a1f68cbee40640e0ba6b28192c68faddd02c5c86c2f15ce8e13d
MD5 4fb073004f07dbe2292db9766055b7f3
BLAKE2b-256 fa2595a158244b7064bf46febfd45cc5bff85a82cef8b3512eca1433560b07ab

See more details on using hashes here.

File details

Details for the file pycoverm-0.2.0-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: pycoverm-0.2.0-cp36-cp36m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 477.9 kB
  • Tags: CPython 3.6m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200322 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for pycoverm-0.2.0-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 385e2ad20f57298b8ed25a9f7db2b843243260d3e8eaceeb145892f98593c5d3
MD5 1bb92ebce0d1fa3c3f2d894c7fe819b2
BLAKE2b-256 6ea0acecadd900ad3a25c118ec1dd290c0c94923d7d4d4117918478f4479a813

See more details on using hashes here.

Supported by

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