bearclaw-0.0.2
توضیحات
Pipeline components to extract features from variants.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bearclaw-0.0.2 |
| نام | bearclaw |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | "Hylke C. Donker" <h.c.donker@umcg.nl> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/bearclaw/ |
| مجوز | - |
# Bearclaw
Components to help extract features from variants, to be used as part of a pipeline.
## Installation
```bash
pip3 install bearclaw
```
## Usage
```python
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
For open source projects, say how it is licensed.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl bearclaw-0.0.2:
pip install bearclaw-0.0.2.whl
نصب پکیج tar.gz bearclaw-0.0.2:
pip install bearclaw-0.0.2.tar.gz