Skip to main content

Python wrapper for the bwtool library.

Project description

Travis CI build SonarCloud Quality SonarCloud Maintainability Codacy Maintainability Maintainability Pypi project Pypi total project downloads

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:

Coveralls Coverage SonarCloud Coverage Code Climate Coverate

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")

Extract max

The extract_max method, similarly to the extract methon, returns a pandas Dataframe with the max of the data from the regions of a bed file extracted from the given bigwig.

from pybwtool import extract_max

df = extract_max("path/to/my/bed", "path/to/my/bigwig")

Common fixes for getting bwtool to work

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

pybwtool-1.0.1.tar.gz (3.9 kB view hashes)

Uploaded Source

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