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.
Metadata
Release files for pycoverm 0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycoverm-0.6.2.tar.gz | 35.4 kB | Without provenance | Details for pycoverm-0.6.2.tar.gz |
Built distributions (wheels)
Total release size: 18.0 MB
Release files / pycoverm-0.6.2.tar.gz
| Download URL | pycoverm-0.6.2.tar.gz |
|---|---|
| Size | 35.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5e96e55ee2756d0cbd1db383e136cd2c1e232204f25b015ce956b7a6f4ddee2
|
|
BLAKE2b-256 checksum How to use checksums |
75f849eff332d61bbbc697f101e18a29d3f72007c699f063da85b74574f61820
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-pp310-pypy310_pp73-musllinux_1_2_x86_64.whl
| Download URL | pycoverm-0.6.2-pp310-pypy310_pp73-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 901.9 kB |
| Tags | Linux musl 1.2+ x86-64 PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
16f89a793c0f369f1ef29fe100b355a0f075be81fb4b403746822d57778e39d7
|
|
BLAKE2b-256 checksum How to use checksums |
1c9bc94e0a8e3abaabfcd220a66e22aeda2300cc302964a4ec72880dde4f1697
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pycoverm-0.6.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 729.8 kB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
d813ce327c533ec43462b1d4e496f4126fc62389f3e9d2458a3036cfc8f084aa
|
|
BLAKE2b-256 checksum How to use checksums |
45d645f601b5be7d45a101f46eac9ffc01556041dc9254cf57a661a27a9fdfe2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-pp39-pypy39_pp73-musllinux_1_2_x86_64.whl
| Download URL | pycoverm-0.6.2-pp39-pypy39_pp73-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 901.9 kB |
| Tags | Linux musl 1.2+ x86-64 PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
d923fc7b10abf031ca1afa0ea49040060f7a7f2974a07a99701825a16c5286e9
|
|
BLAKE2b-256 checksum How to use checksums |
9da01ea01e73f0f43da4ea59821dbb0999fd171962056d8dfb0c33110b06c6f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-pp38-pypy38_pp73-musllinux_1_2_x86_64.whl
| Download URL | pycoverm-0.6.2-pp38-pypy38_pp73-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 902.3 kB |
| Tags | Linux musl 1.2+ x86-64 PyPy 3.8 PyPy 3.8 7.3 |
|
SHA-256 checksum How to use checksums |
2a28f9c5acc172a64b991eb00b8795a44918b7b25a35197ab1fc6eba8b24b0df
|
|
BLAKE2b-256 checksum How to use checksums |
f5d169a97e7931c13d2afdd2f762504c38213f480ba29e66ac1c94cd655bf0f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp313-cp313t-musllinux_1_2_x86_64.whl
| Download URL | pycoverm-0.6.2-cp313-cp313t-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 901.7 kB |
| Tags | CPython 3.13 CPython 3.13 free-threading Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
44ae1f4a99ebd206a006778e4a09da8c9d4e655dd424727899f3fe300fa8da41
|
|
BLAKE2b-256 checksum How to use checksums |
50b331c9260b20f943d093e0f26aa9aa6cb4be1afbb2672e7e77529e7345fe5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp313-cp313-musllinux_1_2_x86_64.whl
| Download URL | pycoverm-0.6.2-cp313-cp313-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 901.7 kB |
| Tags | CPython 3.13 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
5f7b304ac2bd2fde65a045ec385eea82199a2a768563e81a777a62c9550a786b
|
|
BLAKE2b-256 checksum How to use checksums |
93c6c0e0271c009e7f20ea51d5d42cba235e5b63b27b2a62403aeb09474511d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pycoverm-0.6.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 730.5 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e1c9f23db8d64dd372cd567d5357fc5f68a7b47f437a51dfbb26a74177ce12e3
|
|
BLAKE2b-256 checksum How to use checksums |
22853e81dd473dbdc527d662e928dcfa7fa7fe5b32f32e08dc6337ab66aede11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | pycoverm-0.6.2-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 625.1 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d780a07508c7740ae6f64fbc8f563e981e8db149053d7dd099419f9281cb1a31
|
|
BLAKE2b-256 checksum How to use checksums |
fb76ae906debdcecb36b9ad6850883a94c57a32426a803b264abb0612f7af983
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp313-cp313-macosx_10_12_x86_64.whl
| Download URL | pycoverm-0.6.2-cp313-cp313-macosx_10_12_x86_64.whl |
|---|---|
| Size | 648.1 kB |
| Tags | CPython 3.13 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
3357fc80c692c7d66d1fe8bdf591efee5923e04c616aa0a6d79831f27534d85a
|
|
BLAKE2b-256 checksum How to use checksums |
e45d70319aec37d8d5f4fab43484cafe8196fb21d9a24b0ca3edb80601b373ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp312-cp312-musllinux_1_2_x86_64.whl
| Download URL | pycoverm-0.6.2-cp312-cp312-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 901.7 kB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
84c6c02cb719d47f872dae8d0130cb8a8a785040a1ba784e1d4f56ec1add352d
|
|
BLAKE2b-256 checksum How to use checksums |
96601d8fe50225f192fe3215d01ed4ea0e3bae0275cd9b6cfa19c91a34d43425
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pycoverm-0.6.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 730.5 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
37a8cb2acecccbe85480b35e2bc142f3f225a567d4d4361284967ff6b4cfbd3b
|
|
BLAKE2b-256 checksum How to use checksums |
62452a0d3d05f0be9c330a20d1208741d3df81dab7becf5b6a08fc101591544d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | pycoverm-0.6.2-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 625.1 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
af342a24a850cc85441646af2a63b68a7053eb1ae228b92c0f50260dab91a87a
|
|
BLAKE2b-256 checksum How to use checksums |
278b46dba3a47a90d8a82e171c1f070472e4200ebd98d579f8189a4c54c924af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp312-cp312-macosx_10_12_x86_64.whl
| Download URL | pycoverm-0.6.2-cp312-cp312-macosx_10_12_x86_64.whl |
|---|---|
| Size | 648.1 kB |
| Tags | CPython 3.12 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
11093849aa749259be3436c216cc4f0e05e17b18ff79b3214439eb0c9a6bc26a
|
|
BLAKE2b-256 checksum How to use checksums |
fb4bfd04339ed3fb02c1e6404821e2bfca19628d1ea4abfd79b4940ba877c127
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp311-cp311-musllinux_1_2_x86_64.whl
| Download URL | pycoverm-0.6.2-cp311-cp311-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 901.5 kB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
b0e14d5c8df82ddc686207e5f35b303c8109148c8a9c7048bba43475d86bdb47
|
|
BLAKE2b-256 checksum How to use checksums |
65db0c1be85fa5982f290a77fc4ad2453010e64178671fd982b5575184e6a673
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pycoverm-0.6.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 730.1 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
d78ef5b0c3ec8fdcd08b0a58a4cf7879b127e399055632f8c9ed805f796e2fb2
|
|
BLAKE2b-256 checksum How to use checksums |
7cca931e9579008e6cba788d03decb40c355a350b37c68db1199bd01f6b2406c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | pycoverm-0.6.2-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 625.5 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e9287af675071a396b80fea81276d0549bf2a7dc14d2e631d47968053b0c55d9
|
|
BLAKE2b-256 checksum How to use checksums |
d76fbfb9e0fda4b91a9eb7d8325d86f1621e2d4d48b3da75ff781d3510ee8b81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp311-cp311-macosx_10_12_x86_64.whl
| Download URL | pycoverm-0.6.2-cp311-cp311-macosx_10_12_x86_64.whl |
|---|---|
| Size | 648.8 kB |
| Tags | CPython 3.11 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
01cc815e9de3633cc872df3b1508fa0a74bc07f27e0cb520b959cce10e886b86
|
|
BLAKE2b-256 checksum How to use checksums |
7838d21507de4ba31392d836168809cdfbd532e6debd19903bd4d59d25bc71c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp310-cp310-musllinux_1_2_x86_64.whl
| Download URL | pycoverm-0.6.2-cp310-cp310-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 901.4 kB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
bca29c645d33e12a6c4bb3a092b44321c54f366dd2e307bc27573ff38f4a3a01
|
|
BLAKE2b-256 checksum How to use checksums |
96d2a096420bcd09b2c4b17a4f9da84cb3cb5c32320b4c659b8a96d0c32c3143
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pycoverm-0.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 730.3 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
521cd6be414fe0ec26b7600018e0a3eba323759986faf0a99e6f279cca624f51
|
|
BLAKE2b-256 checksum How to use checksums |
129d880a00b764cd79db34011fff88595985a9f4c57cceb97f086a3459576bc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp39-cp39-musllinux_1_2_x86_64.whl
| Download URL | pycoverm-0.6.2-cp39-cp39-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 901.3 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
2e24ef5955df3386fb61db3e3d4274ebc65a738bc9f183b8859b32922e68f1d3
|
|
BLAKE2b-256 checksum How to use checksums |
da3cc2ef571188d1150d484f0e1d9a22c12b4bd1537c9eb75831dc6802ed6635
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pycoverm-0.6.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 729.9 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
6dd9fd5719e1cbff770473a9d4411fc2b377c41ebfeb2517bcf1fd9af807a21b
|
|
BLAKE2b-256 checksum How to use checksums |
9c8fec227e2a4cf2c416ff9744e0a1656103e7a8757d80a2847f465f57964769
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp38-cp38-musllinux_1_2_x86_64.whl
| Download URL | pycoverm-0.6.2-cp38-cp38-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 901.0 kB |
| Tags | CPython 3.8 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
6ad1ede5d0c2760f33d382f4aeafc62e51f3a17b4e5af928fdc50f08b3767f33
|
|
BLAKE2b-256 checksum How to use checksums |
484a0525b70b81257c04815df0a44e03f2a81a99d161c9775c8b16b8f523134e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Release files / pycoverm-0.6.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pycoverm-0.6.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 730.2 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
789ba7fe5a5035075bed33b3880f86a8b4cbec77e886a2a48c056ccb77e30637
|
|
BLAKE2b-256 checksum How to use checksums |
eb7b78888f45ee4fbf05aca55d6a2ec0d0316a29d4f42dfc51b168411c3f8414
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.9
|
Security for pycoverm 0.6.2
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.