Python wrapper for the bwtool library.
Project description
Python wrapper for the bwtool library.
How do I install this package?
As usual, just download it using pip:
pip install pybwtool
Tests Coverage
Since some software handling coverages sometime get slightly different results, here’s three of them:
Getting started
At the time of writing, the package includes just two methods from bwtool. If you need more, you are more than welcome to open a pull request adding the new feature or opening a new issue with the request. In the second case I’ll work on it when I’ll get the time.
Extract
The extract method returns a pandas Dataframe with the data from the regions of a bed file extracted from the given bigwig.
from pybwtool import extract
df = extract("path/to/my/bed", "path/to/my/bigwig")
Extract mean
The extract_mean method, similarly to the extract methon, returns a pandas Dataframe with the mean of the data from the regions of a bed file extracted from the given bigwig.
from pybwtool import extract_mean
df = extract_mean("path/to/my/bed", "path/to/my/bigwig")
Common fixes for getting bwtool to work
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pybwtool-1.0.0.tar.gz
.
File metadata
- Download URL: pybwtool-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 969f201ecfd31cb2066dc446632debbb91601e76f5140e830f01de688944fd5e |
|
MD5 | 74bd1e9aa6e72c9ce3f5679860905430 |
|
BLAKE2b-256 | 43e8e77f637a3ffd07a229d90c71b117fcce48e9a5409e99316aa878262a75d2 |