Skip to main content

Pipeline components to extract features from variants.

Project description

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

License

For open source projects, say how it is licensed.

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

bearclaw-0.0.1.tar.gz (121.0 kB view details)

Uploaded Source

Built Distribution

bearclaw-0.0.1-py3-none-any.whl (103.5 kB view details)

Uploaded Python 3

File details

Details for the file bearclaw-0.0.1.tar.gz.

File metadata

  • Download URL: bearclaw-0.0.1.tar.gz
  • Upload date:
  • Size: 121.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for bearclaw-0.0.1.tar.gz
Algorithm Hash digest
SHA256 538c882e36aa40cdf6d026b87b9435ba20b137114cba0c1fa8f584d9349c9fba
MD5 8c0c959fdb9c9f2959feda7859c5f950
BLAKE2b-256 c9d9541396cab7cd107ac16f4d4d1c66f7516bd791bd95f6b7341d38607bc254

See more details on using hashes here.

File details

Details for the file bearclaw-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: bearclaw-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 103.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for bearclaw-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fb7f3d56f99de56aea604befb8ca9c870815ef27245b0b59e39108ccbecb999
MD5 1bc114e7f7effdd76a9e76333d50e2a2
BLAKE2b-256 7a7ae9161a1cc8f2733b6e5679c6a2b8c7259569b95401d99f93288458fa30e0

See more details on using hashes here.

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