Skip to main content

A library for structured flu sequence analysis

Project description

flua

Note: This project is under active development. APIs may change without notice.

Influenza A sequence analysis toolkit.

(Current) Features

  • Load and parse influenza A FASTA files
  • Automatic sequence type detection (DNA / RNA / Protein)
  • Subtype extraction from FASTA headers (e.g. H1N1, H5N1pdm09)
  • Segment identification (PB2, PB1, PA, HA, NP, NA, MP, NS)
  • Translation with alternative product generation (splicing, frameshift, alt-ORF)
  • DataFrame export for multi-sample comparative analysis

Installation

pip install -e ".[dev]"

Usage

from flua import load_fasta, groups_to_dataframe, load_multiple_fasta

group = load_fasta("sample.fasta")
print(group.subtype)  # e.g. "H1N1"

groups = load_multiple_fasta(["sample1.fasta", "sample2.fasta"])
df = groups_to_dataframe(groups, value_type="translated")

Development

pip install -e ".[dev]"
pytest
ruff check src/ tests/

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

flua-0.0.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

flua-0.0.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flua-0.0.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for flua-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e40a11dea4508126a25be9ee6c44c1c3224727dfbf59d702963d2aa129a213a1
MD5 f2392e38f5bd9dd205a0c4a72bf872e4
BLAKE2b-256 be5af7612dc3c24461bc785f6ecd851c8c0c6b1425501a3bd59c68531eb495d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flua-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for flua-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46d119864749b300f4853c040b75676af575b82e084368b7f7ac8d9d15b7c125
MD5 41e29c7dea7075ebb0317d2f53980039
BLAKE2b-256 1e11ba403ab7f18192cf18db9a3bacad6b27cf4f8697b855cfbf664e002721b6

See more details on using hashes here.

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