Straw bound with pybind11
Reason this release was yanked:
deprecate
Project description
Straw: rapidly stream data from .hic files
Straw is library which allows rapid streaming of contact data from .hic files. Besides Python, there are C++, R, Matlab, Java and Javascript versions of Straw.
- For the Python, C++, R, Matlab versions of Straw, see: https://github.com/aidenlab/straw
- For the Java version of Straw, see: https://github.com/aidenlab/java-straw/
- For the Javascript version of Straw, see: https://github.com/igvteam/hic-straw/
Quick Start Python
pip install pystraw Then run via import pystraw and pystraw.strawC
API Usage
pystraw.strawC("observed/oe/expected", "normalization", "hicFile(s)", "region1", "region2", "units", "binsize")
- observed/oe/expected - observed, expected or observed/expected (oe) contacts between loci pairs
- normalization - string indicating normalization scheme. Available options are: NONE, VC, VC_SQRT or KR.
- hicFile(s) - the hic file(s) to query. They can be either local or remote (eg on S3)
- region 1 - genomic region "chr1:x1:x2" in base pair or fragment units. Interval convention is zero based 1/2 open
- region 2 - genomic region "chr2:y1:y2"
- units -- "BP" for base pairs
- binSize -- size of each bin in base pair or fragment units. Bins are square
Example
import pystraw
result = pystraw.strawC('observed', 'KR', 'HIC001.hic', '1:109050000:109055000', '1:109105000:109110000', 'BP', 5000)
for i in range(len(result)):
print("{0}\t{1}\t{2}".format(result[i].binX, result[i].binY, result[i].counts))
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hic-straw-1.0.0.0.tar.gz.
File metadata
- Download URL: hic-straw-1.0.0.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fdf3405d344d1555be9b6bb399d13a4dc8ee267f861ab7d324635d873b7a244
|
|
| MD5 |
416164789da9dbe4e914d7612d6c9811
|
|
| BLAKE2b-256 |
b4b51784dd8b56f1c3242e4876a816515a453bfb302177900ba89315240e2d69
|
File details
Details for the file hic_straw-1.0.0.0-cp38-cp38-macosx_10_9_x86_64.whl.
File metadata
- Download URL: hic_straw-1.0.0.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 137.4 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ef82d45c47d4f761528efdb91cb478e68e179cbf2d18dfb5e4f3d596e0d6307
|
|
| MD5 |
212f9027eaca26826acbb13072a94ac8
|
|
| BLAKE2b-256 |
f464b77b8acee62ce4088fde83fea0b45b61ac273f676453fc551a1e2402f1df
|