Skip to main content

Read bioinformatics sequence formats into a Pandas DataFrame

Project description

SeqPandas

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.

History

0.0.1 (2022-02-17)

  • First release on PyPI.

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.0.2.tar.gz (11.4 MB view details)

Uploaded Source

Built Distribution

seqpandas-0.0.2-py2.py3-none-any.whl (10.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: seqpandas-0.0.2.tar.gz
  • Upload date:
  • Size: 11.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.8.2 requests/2.27.1 setuptools/59.4.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for seqpandas-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1d733298a2cb2faceedea23f4f7f9d99f6c99ed8577a21308ac36d93672db00e
MD5 66e5dd70f2c5fd98cdcd8e4066541237
BLAKE2b-256 bfa0f05beb99cc51fe3e6341ac8c221d6c90298ccdf0e608ce9b126783939106

See more details on using hashes here.

File details

Details for the file seqpandas-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: seqpandas-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.8.2 requests/2.27.1 setuptools/59.4.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for seqpandas-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f0552d8adeb3eca96a62a0928c368f1b6e75817bb7f9882ffca5c5e6be9dab43
MD5 62618cb48c01eaf233e0cfaa4deddce6
BLAKE2b-256 7816cede1a50e99a45f0d9735245d848bbc68f99d57b191d9a16f0efecf368b8

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