pyTwobit
Package for fetching sequence from twobit files from local paths or URLs.
Installing
pip install pyTwobit
Usage
To fetch sequence for a genomic region create a TwoBit object with either a local file path or url. Sequence
is fetched with the fetch function which takes chromosome name, start, and end coordinates.
The UCSC coordinate convention is used (0 start, half-open).
Local file
from pytwobit import TwoBit
twobit = TwoBit('test.2bit')
seq = twobit.fetch("chr1", 50, 57) # -> "CTATCTA"
Remote file
from pytwobit import TwoBit
twobit = TwoBit("https://igv.org/genomes/data/hg38/hg38.2bit")
seq = twobit.fetch("chr1", 120565294, 120565335) # -> "TATGAACTTTTGTTCGTTGGTgctcagtcctagaccctttt"
Metadata
Release files for pytwobit 0.3.1
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 |
|---|---|---|---|---|
| pytwobit-0.3.1.tar.gz | 6.8 kB | Without provenance | Details for pytwobit-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytwobit-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for pytwobit-0.3.1-py3-none-any.whl |
Total release size: 13.2 kB
Release files / pytwobit-0.3.1.tar.gz
| Download URL | pytwobit-0.3.1.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30f7ff8b50e8aa8ee933a3f49911d275299def9de43c4287fd26411c2b49d62f
|
|
BLAKE2b-256 checksum How to use checksums |
ab883af2a82a2220016ac6c5609e9ce14e95449954e5046997f5f6ea8f049aef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.5
|
Release files / pytwobit-0.3.1-py3-none-any.whl
| Download URL | pytwobit-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed7f1d27f0e5bf5a99b8130d8fce72c0bedf1815f8178467631fff5e49ad8432
|
|
BLAKE2b-256 checksum How to use checksums |
9d1e5aced5817befbf374106b3381f02cfaed2301bd5c68c86eb99f44aab74ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.5
|
Security for pytwobit 0.3.1
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.