Bearclaw
Components to help extract features from variants, to be used as part of a pipeline.
Installation
pip3 install bearclaw
Usage
from bearclaw.preprocessing import VariantDataGenerator
from bearclaw.transforms import spectrum
# Dataframe containing locations of VCF files and labels.
dataframe = DataFrame({
"vcf": [
"src/test/resources/GRCh37/sample1.vcf",
"src/test/resources/GRCh37/sample2.vcf",
],
"class": [1, 0],
})
# Transform VCF files into features using `spectrum`, which counts the number of variants by flanking context.
dg = VariantDataGenerator(transform=spectrum)
# Convert dataframe to label `y` and features `X_spectrum` using `spectrum`.
X_spectrum, y = dg.flow_from_dataframe(dataframe, x_col="vcf")
Reference documentation
https://hylkedonker.gitlab.io/bearclaw/
License
The code in this repository is licensed under the MIT License.
Metadata
Release files for bearclaw 0.0.4
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 | |
|---|---|---|---|---|
| bearclaw-0.0.4.tar.gz | 182.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bearclaw-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 350.7 kB
Release files / bearclaw-0.0.4.tar.gz
| Download URL | bearclaw-0.0.4.tar.gz |
|---|---|
| Size | 182.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a284937580c14da2708b6f5f33675bab368fb9f7bd00f8f5ade4ca8dfd510190
|
|
BLAKE2b-256 checksum How to use checksums |
92593c88fbb0bc49150a16ba77e4487acf6fb5a3342d5ae3cd89d1f2122d37db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Release files / bearclaw-0.0.4-py3-none-any.whl
| Download URL | bearclaw-0.0.4-py3-none-any.whl |
|---|---|
| Size | 168.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb74b280b5db43649fe2edc64d6cb72b34643b21ec57c79351a991623a2c90b2
|
|
BLAKE2b-256 checksum How to use checksums |
a96aa2f01d02a4ce9120adf409464f2903fc43c49b176225effd9ee2d9375d6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Security for bearclaw 0.0.4
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.