Skip to main content

Read bioinformatics sequence formats into a Pandas DataFrame

Project description

Import genomic data to get a custom Pandas & Biopython hybrid class object with fancy shortcuts to make Machine Learning preprocessing easy!

Installation

pip install seqpandas

Usage

import seqpandas as spd

# Direct File Path
df = spd.read_seq('file.fasta', format='fasta')
df = spd.read_seq('file.sam', format='sam')
df = spd.read_vcf('file.vcf', format='vcf')
df = spd.read_bed('file.bed', format='bed')

# Just need BioPython Seqs? No problem!
seqrecords = spd.read('file.fasta', format='fasta')

# Already Opened BioPython Handle
from Bio import SeqIO
seqrecords = SeqIO.parse('file.fasta', format='fasta')
df = spd.BioDataFrame.from_seqrecords(seqrecords)

Tutorial

For a complete walkthrough and to use it for a machine learning pipeline please follow the tutorial notebook.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project 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

seqpandas-0.1.0.tar.gz (11.5 MB view details)

Uploaded Source

Built Distributions

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

seqpandas-0.1.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl (51.9 kB view details)

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

seqpandas-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (46.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

seqpandas-0.1.0-cp312-cp312-macosx_10_9_x86_64.whl (46.3 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

seqpandas-0.1.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl (51.7 kB view details)

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

seqpandas-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (47.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

seqpandas-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl (46.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

seqpandas-0.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl (51.7 kB view details)

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

seqpandas-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (47.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

seqpandas-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl (46.7 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file seqpandas-0.1.0.tar.gz.

File metadata

  • Download URL: seqpandas-0.1.0.tar.gz
  • Upload date:
  • Size: 11.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for seqpandas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 55fed620f8f4b6f00d4a6add8eb11ba3a104f9a1adf4d0bb08bbc99534a94c02
MD5 4e2d7eef27b927097e6ba2e552a126f6
BLAKE2b-256 e0fe257b61b2947ba225cf68ac3fe415d5242d85b227bad7a37ecf7d1d345aa4

See more details on using hashes here.

Provenance

The following attestation bundles were made for seqpandas-0.1.0.tar.gz:

Publisher: publish.yaml on tmsincomb/SeqPandas

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

File details

Details for the file seqpandas-0.1.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for seqpandas-0.1.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a371a43bc4e0675413ef393071a53be4ea526075c85f96d16aa7d8282aea4598
MD5 dd88eb39bede81015f9a4245add8dc8f
BLAKE2b-256 91c6be6391737459e88b87d060d7b721352f726191e1be27935fa0d8e8d73843

See more details on using hashes here.

Provenance

The following attestation bundles were made for seqpandas-0.1.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yaml on tmsincomb/SeqPandas

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

File details

Details for the file seqpandas-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for seqpandas-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5dc3b3af80990a967cd8cde454a2e295f4cebb1f4006b9b72e31497d30e34f0
MD5 4294c74fb3cd0891098fcabe24401e65
BLAKE2b-256 ca63f8f0a577599e6a6a836ac2485b032aefa3cb73113b49cd00dde6b8226977

See more details on using hashes here.

Provenance

The following attestation bundles were made for seqpandas-0.1.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish.yaml on tmsincomb/SeqPandas

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

File details

Details for the file seqpandas-0.1.0-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for seqpandas-0.1.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 694bf0785db919c3ed776be0208d428fef6ac168f2f5979aa6358becab298e1a
MD5 f30bac7f7b4f2014785d2a2114384b52
BLAKE2b-256 9d33547ff536bb767904547afd37e1a285c72cc894c91433bba334b143bc535d

See more details on using hashes here.

Provenance

The following attestation bundles were made for seqpandas-0.1.0-cp312-cp312-macosx_10_9_x86_64.whl:

Publisher: publish.yaml on tmsincomb/SeqPandas

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

File details

Details for the file seqpandas-0.1.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for seqpandas-0.1.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d325ebc32b2f20c9d48e026fbc37af742b96a042ca70b29b05a2b9a2616310a3
MD5 6c5b4f089d56364499cb1d4fa309f640
BLAKE2b-256 4d9bfa7eedc92b2813df0553bf35d7d3662ef8e873a824ef67c99e4b50a0fa9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for seqpandas-0.1.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yaml on tmsincomb/SeqPandas

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

File details

Details for the file seqpandas-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for seqpandas-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d0ddfc4f850ab75b1d1f05c7a390096073a14f8ba57c3666325b7fb7b769d32
MD5 2993b93bb0224e9c2d0ad2398c0db53c
BLAKE2b-256 d5599fe4010a08f2171a25136c9f9e3348bcb16b4affa90cb86decd54eacbdbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for seqpandas-0.1.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish.yaml on tmsincomb/SeqPandas

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

File details

Details for the file seqpandas-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for seqpandas-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 deeedd053c13bd18adff75b57751cb31c79dc9fc41f785113f08897b41669e73
MD5 248fe0f9874a715e2b6afb6f70e88a51
BLAKE2b-256 70cb6ecd7342b20f00230da1f91de5aabba496940be5ecc841ed98e1e8022e1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for seqpandas-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: publish.yaml on tmsincomb/SeqPandas

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

File details

Details for the file seqpandas-0.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for seqpandas-0.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 837877c219887fbe683f1ea7e8f40622095f0ff15196552f62056cee8cb1ac6c
MD5 2359f582ca29e8eea9ba24a0755bc3f9
BLAKE2b-256 cdfc03a687de299e594c13fa80d1b430892c8b1f67675d1d9a64e9d9639a7c06

See more details on using hashes here.

Provenance

The following attestation bundles were made for seqpandas-0.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yaml on tmsincomb/SeqPandas

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

File details

Details for the file seqpandas-0.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for seqpandas-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21c57058b4a7ecdd7a02564e64972bd0f36d3fb705d4113920ddf3badb7c5311
MD5 2317b412890aade7f6f7bb7132528d63
BLAKE2b-256 0df59279aa92dc65dac6d2a349079d6d5ef54dac4834aab5aec7693a183b1073

See more details on using hashes here.

Provenance

The following attestation bundles were made for seqpandas-0.1.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: publish.yaml on tmsincomb/SeqPandas

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

File details

Details for the file seqpandas-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for seqpandas-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f8a1cab8ff46222beba2c9cb6c48d6aa1ee5063a3ae84da95cec09c3c3830250
MD5 f92ffd8d36347071168f8e2b7896fa05
BLAKE2b-256 e0f3008c2ca2bea4c099fe77a9b8f1c6db392348ef89e0796ff3172d5b6c1257

See more details on using hashes here.

Provenance

The following attestation bundles were made for seqpandas-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: publish.yaml on tmsincomb/SeqPandas

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