Skip to main content

Fast Cython-powered one-hot encoding for DNA sequences

Project description

brisket

Fast cython powered 1 hot encoding for DNA sequences

Installation

$ pip install brisket

Usage

import numpy as np
from brisket import encode_seq

# Encode a DNA sequence to one-hot format
dna_sequence = "ATCG"
encoded = encode_seq(dna_sequence)

print(encoded)
# Output: 2D numpy array with shape (seq_length, 4)
# [[1 0 0 0]  # A
#  [0 0 0 1]  # T  
#  [0 1 0 0]  # C
#  [0 0 1 0]] # G

# The encoding maps: A=column 0, C=column 1, G=column 2, T=column 3
# Each row represents one nucleotide position
# Each column represents one of the four DNA bases (A, C, G, T)

# Invalid characters (not A, T, C, G) result in all-zero rows
encoded_with_n = encode_seq("ATCGN")  # Last row will be [0 0 0 0]

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

brisket was created by Natalie Gill and Sean Whalen. It is licensed under the terms of the MIT license.

Credits

brisket was created with cookiecutter and the py-pkgs-cookiecutter template.

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

brisket-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

brisket-0.1.1-cp312-cp312-win_amd64.whl (30.9 kB view details)

Uploaded CPython 3.12Windows x86-64

brisket-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (121.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

brisket-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (29.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

brisket-0.1.1-cp311-cp311-win_amd64.whl (30.6 kB view details)

Uploaded CPython 3.11Windows x86-64

brisket-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (114.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

brisket-0.1.1-cp311-cp311-macosx_11_0_arm64.whl (28.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

brisket-0.1.1-cp310-cp310-win_amd64.whl (30.6 kB view details)

Uploaded CPython 3.10Windows x86-64

brisket-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (106.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

brisket-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (29.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

brisket-0.1.1-cp39-cp39-win_amd64.whl (30.6 kB view details)

Uploaded CPython 3.9Windows x86-64

brisket-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (106.4 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

brisket-0.1.1-cp39-cp39-macosx_11_0_arm64.whl (29.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file brisket-0.1.1.tar.gz.

File metadata

  • Download URL: brisket-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brisket-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0d010aa0e2d20ee2231ce5da9edaa412475f1c26f37c8b2b770f23823b57d1cd
MD5 2ef814aacb84aa467b7b48ea4a0f9ddd
BLAKE2b-256 16ff37bdda78c6943010d8a7591028b54a6c58acb998c2e9ed6280b1d91fec83

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1.tar.gz:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brisket-0.1.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: brisket-0.1.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brisket-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0f34b4c9775c2edfde8ed4cfbb1c80a45b2ea5fcdaa66f6f6b82feda83ee3b8a
MD5 401df25136ab9b5ee805f9202cc7919b
BLAKE2b-256 aabc035402657395f83041936e22e10afa23d4daaa08a49d6f1fdbb40fcd3dca

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1-cp312-cp312-win_amd64.whl:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brisket-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brisket-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2bf8b2bbe3b5806933f0624cb1ff3ed58559d7d8b5e7e45347e33065b604752c
MD5 577d1e4a85031d9502f5c7cf4b897e95
BLAKE2b-256 f0d54c106446d5fbeb15d2b1cf407a1e55aec999b1f06f0e7594a93d2d184152

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brisket-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brisket-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8d229297cc62889a0d8c2677e388faa2cbc6e8cd037b2715a940eaf1cb7f54f
MD5 59b4968db4eb17a178827323ddabf843
BLAKE2b-256 89a96514a4e8bc7453966ed6f5f48bd87a781afef533bb5e4146b8a959b0ee32

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brisket-0.1.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: brisket-0.1.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brisket-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2a424392f733710961154ffb27b13d04137e919959cce6abe4b1d358fb90e827
MD5 e4d7258bcbfd5564a5a45ac37886dd2b
BLAKE2b-256 d697f8eef1e179c30146f471402e8f64d44320fb38480b230896d28cadf9168d

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1-cp311-cp311-win_amd64.whl:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brisket-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brisket-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e98a58ede62a20d60e61d2b3cf65f265db5369b98277aaf445eea542b5147764
MD5 95f7f5b5f1d8df6345438d527faee917
BLAKE2b-256 b3c3fd17372e4563ba903e7da0acbf88c39a44a50469f9c988a1044bdb22628b

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brisket-0.1.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brisket-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe13d234f45cca82c43d7139c14c50507c9dcec1f7c00466138b1a46d30970f3
MD5 372e882b006df7a1eff8308760cef75d
BLAKE2b-256 b59f7c5de45832ab4ef7177004bc2c7207550ce6d589776a5c3b7a674db97eee

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brisket-0.1.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: brisket-0.1.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brisket-0.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a95fc5219fad39ac913b1a6a446b9af83ab121b25b724afd939aa35c9fb73b58
MD5 4747734d46cbca7deabedb126542a4f2
BLAKE2b-256 fddd437e7be2470dc09fd1e7e286b3099928fd76c0a699759d88f28d0b773083

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1-cp310-cp310-win_amd64.whl:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brisket-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brisket-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c2abad3776d1f62965410debf6863381b6f87cec19ea1cec34defc8e836e2244
MD5 dd37a0ee107e71acc2310d0a334b36ac
BLAKE2b-256 a0fedf0a508c548714f5b779709e08a123edebb072c00b8b2be36115a59a8c6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brisket-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brisket-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 972162718502629c8ca1553fa3fb460ac04c49880228f1edf5e0535d058e766c
MD5 619d801562926ed1ef95ca9af754a76c
BLAKE2b-256 0fe0373558506762d6abbd86b3f27701088b3c5d8cd45d958536e569e2c73329

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brisket-0.1.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: brisket-0.1.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brisket-0.1.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eb968bb1f6856e55499b9251436702de6624bb6d445062ec4d6fd3ee339bb142
MD5 c0ef675f71255eb31ffa4eac06c27255
BLAKE2b-256 4918e3450601acfe12d38a7921ddbdd25c9c0f066c6d740bd092fc2b05400cc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1-cp39-cp39-win_amd64.whl:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brisket-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for brisket-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 624635b870512500c93dbd446628ef669ac64f0af26899336b9d1536714ef2d4
MD5 9f78195fba5b0c204c4d9bfecd2c0f4c
BLAKE2b-256 f0dd5f27bffabd48bf2fda56a6fe4297890343338aa8364e5ce815e58242c4eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brisket-0.1.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for brisket-0.1.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3e01fedffd6e83cc187b3936c45c606a6ae8431b94562f3170f22cfbd051b2a
MD5 beefd3a172e051261516d3d0a5db6b72
BLAKE2b-256 11bd7dd81adc310b4513209246bba9b95a08a32d4338bb2c17728fd6571eea6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for brisket-0.1.1-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: build_wheels.yaml on gladstone-institutes/brisket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page