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 : str
/// 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,
/// trim_lower=0.0, trim_upper=0.0, contig_list=None, threads=1)
/// --
///
/// Computes contig mean coverages from sorted BAM files. All BAM files must be
/// mapped to the same reference.
/// 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
Built Distributions
File details
Details for the file pycoverm-0.6.0.tar.gz
.
File metadata
- Download URL: pycoverm-0.6.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9487ac82cf0c21e5400b98efcd195490f9f25a234b2e3336e45abd6e19002a86 |
|
MD5 | f3d09cab32528c86b12de2a8a556a6ab |
|
BLAKE2b-256 | ecf4109eaaa27acceaae42abca674d21e7e088248aa503f1fa705f2f82490eab |
File details
Details for the file pycoverm-0.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycoverm-0.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c750ae50bba530e2770fab6394c7a080e934348a922915a5dd262bcb69286a0 |
|
MD5 | e908adada379fbac6424ca47b2d64ced |
|
BLAKE2b-256 | 049308f1bfb98252323a39cb010c4ac9a14eb2bae140d11a5a3b31bbe1a5bd23 |
File details
Details for the file pycoverm-0.6.0-cp312-cp312-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: pycoverm-0.6.0-cp312-cp312-macosx_10_7_x86_64.whl
- Upload date:
- Size: 791.8 kB
- Tags: CPython 3.12, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90dfd5a62f696a4f55b0f724d168a0429d73628448118d613efaa8f338e46b62 |
|
MD5 | f220c8a30a50cb1f30bdbafce89fe54a |
|
BLAKE2b-256 | df1ade7eb8e784968a08dd5b6ef0c5b6fe31d62f86ad52b42932ab2bb7bb419c |
File details
Details for the file pycoverm-0.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycoverm-0.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25433e4a2d98afc0019f104386af61e417365ec992082ac10dda6354f9a8f6fc |
|
MD5 | 059b43039ac8f98e34ad9c970b4ca6f7 |
|
BLAKE2b-256 | c7a574f23daf07da45aab2b17d50279453647194ec5a66ca9918aaf998cf3e3f |
File details
Details for the file pycoverm-0.6.0-cp311-cp311-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: pycoverm-0.6.0-cp311-cp311-macosx_10_7_x86_64.whl
- Upload date:
- Size: 750.1 kB
- Tags: CPython 3.11, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614ee7820740cf088278e642d10ea0a5b91d5fe996acd27fe7ba8e4a0ce2e583 |
|
MD5 | 4f470a67a134b9d3c105267c49b14882 |
|
BLAKE2b-256 | 7dc3e51e33bcca7e900583855434182e9edb1d3bf50c3656b1cd5ffb53b7b810 |
File details
Details for the file pycoverm-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycoverm-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7619e7a32aed9dfeab17f4fb567ee7f64cd7a5bf6661418be0082a81894ca442 |
|
MD5 | 838201188c9652bd9f046c3a72d7beed |
|
BLAKE2b-256 | d02669540f952f21866f3c07fbabbf835174c021f7ed68f0149cde867c9fb04d |
File details
Details for the file pycoverm-0.6.0-cp310-cp310-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: pycoverm-0.6.0-cp310-cp310-macosx_10_7_x86_64.whl
- Upload date:
- Size: 750.1 kB
- Tags: CPython 3.10, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c4913813ee92c0994db9f8d66d0993e7cc638a1c2c91f64409435a064e46f7 |
|
MD5 | 9bdb1b0159989682ff82807a25a8dc73 |
|
BLAKE2b-256 | 2a4e7cb0acba26cf310ca669d9a90eb1eaf2c4f8954754099772662a9213b43f |
File details
Details for the file pycoverm-0.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycoverm-0.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b412d9438aa2d15bf71fd862516ce224efc0174f87ebed964b36c356c9c0a4a |
|
MD5 | aa1f472d6c1941751c25849d73e46532 |
|
BLAKE2b-256 | 40ad605833e137d4b945caf78811d8d7240c9f909cb002be174f2ae3b813d447 |
File details
Details for the file pycoverm-0.6.0-cp39-cp39-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: pycoverm-0.6.0-cp39-cp39-macosx_10_7_x86_64.whl
- Upload date:
- Size: 750.1 kB
- Tags: CPython 3.9, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a56487e036b66c737759caf3db56fd61ec01cdc0d168520e0aa6b0cf641300ee |
|
MD5 | c6e56b23b4135951d776d4c09886fa50 |
|
BLAKE2b-256 | 8097849d954522b15ffa36e4ed4cc67c4ba906a527fa5b90d272fc2ffe69be54 |
File details
Details for the file pycoverm-0.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycoverm-0.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb6b559824fcbe16830eb870e8275bb829be8487a64b8ef57ad3d6f21e722cf |
|
MD5 | e930b889e33b46863c5da565c462272a |
|
BLAKE2b-256 | 960a615cb686949aabf643f5819f1b5e24205fcaa789156ebcbfd86da6b337d0 |
File details
Details for the file pycoverm-0.6.0-cp38-cp38-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: pycoverm-0.6.0-cp38-cp38-macosx_10_7_x86_64.whl
- Upload date:
- Size: 750.1 kB
- Tags: CPython 3.8, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12d2911474c51407b1eb181caec80b2ee2eb45edb53e18c0ac55e41fa0e986e9 |
|
MD5 | b91a4f0d7774623214c724d93c54d3df |
|
BLAKE2b-256 | 3cddd6a9f0610ea4355dac3a2965d42a78965e6f0eb158cd933cd50b57a406e6 |
File details
Details for the file pycoverm-0.6.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycoverm-0.6.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b2bbced6d0b6a3a7be99554c2a79422e7fbb1c8d18ac9b347f9aca89ddcabc6 |
|
MD5 | 53e746c1d71f83d28664687c114c1cc4 |
|
BLAKE2b-256 | 2c6c955aaa364b91a4e699c4c7cedaf8c54624874c8baa76aa08d4a1d7f9adb4 |
File details
Details for the file pycoverm-0.6.0-cp37-cp37m-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: pycoverm-0.6.0-cp37-cp37m-macosx_10_7_x86_64.whl
- Upload date:
- Size: 750.1 kB
- Tags: CPython 3.7m, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0299616ff995c652ed9a1cbbd321901aaf936b4391614dc5f44e8b64dc207eba |
|
MD5 | 5721c817395f73ef7ab8105a983a476b |
|
BLAKE2b-256 | c4fd1568e06a207e67f6f32035ca1ab1636be80ed2b4eb33fbdac2b72fca23a3 |