Skip to main content

Simple FASTA file tools to parse, edit, subset, split, and perform stats on FASTA files

Project description

C++ bindings for FASTA file parsing

Installation

pip install pyfastatools

Usage

The pyfastatools.Parser object is the primary API that parses FASTA files and yields pyfastatools.Record objects.

If you have a FASTA file called proteins.faa that looks like this:

>seq_1
MSKFKKIPL
>seq_2
MQSSSKTCN
>seq_3
MEDNMITIY

Then you can parse this file in python like this:

from pyfastatools import Parser

for record in Parser("proteins.faa"):
    print(record.name, record.seq)

which will print:

>>> 'seq_1 MSKFKKIPL'
>>> 'seq_2 MQSSSKTCN'
>>> 'seq_3 MEDNMITIY'

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

pyfastatools-2.2.1.tar.gz (16.8 kB view details)

Uploaded Source

Built Distributions

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

pyfastatools-2.2.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (149.5 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pyfastatools-2.2.1-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (159.6 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ i686

pyfastatools-2.2.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (149.5 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pyfastatools-2.2.1-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (159.7 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ i686

pyfastatools-2.2.1-cp312-abi3-musllinux_1_2_x86_64.whl (611.1 kB view details)

Uploaded CPython 3.12+musllinux: musl 1.2+ x86-64

pyfastatools-2.2.1-cp312-abi3-musllinux_1_2_i686.whl (664.5 kB view details)

Uploaded CPython 3.12+musllinux: musl 1.2+ i686

pyfastatools-2.2.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (153.4 kB view details)

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

pyfastatools-2.2.1-cp312-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (164.0 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ i686

pyfastatools-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl (611.6 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

pyfastatools-2.2.1-cp311-cp311-musllinux_1_2_i686.whl (665.4 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ i686

pyfastatools-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (153.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyfastatools-2.2.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (164.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ i686

pyfastatools-2.2.1-cp310-cp310-musllinux_1_2_x86_64.whl (611.2 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

pyfastatools-2.2.1-cp310-cp310-musllinux_1_2_i686.whl (664.8 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ i686

pyfastatools-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (153.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyfastatools-2.2.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (163.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ i686

pyfastatools-2.2.1-cp39-cp39-musllinux_1_2_x86_64.whl (611.6 kB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

pyfastatools-2.2.1-cp39-cp39-musllinux_1_2_i686.whl (664.9 kB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ i686

pyfastatools-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (153.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pyfastatools-2.2.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (163.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ i686

File details

Details for the file pyfastatools-2.2.1.tar.gz.

File metadata

  • Download URL: pyfastatools-2.2.1.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.19

File hashes

Hashes for pyfastatools-2.2.1.tar.gz
Algorithm Hash digest
SHA256 3ae39d423651805e9c24ff7501ebb2ebc4b612cf41ff3fbbf78f54a396aa0c07
MD5 7904dbfd99aa0dad51a0666748d48603
BLAKE2b-256 6fb5ddaa272421b39e6ccc64664183bfc647cc82467d2c3717d5b2da2f82f74b

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 57c7eadfdfaea98e3f9000d90aaef0c27116f41dfb8da9f6105c80a8552d21be
MD5 2771574e9ef99384ba15627259bd5e7e
BLAKE2b-256 6c700b310aac8d9bd7eef15f5a1c7af1e7eb5aa5036344f954f3d966f1ac2bd5

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 bc02ed71feb756c0428e554a18d9891f91014a205f2a8d3339ffc5ef28749453
MD5 1ffa2bf63945d405dbcec22f3115b2b1
BLAKE2b-256 81b174bd8f97f49c33a23f04174c0955d0e7af5a9847f1c44d877ddf9ace769f

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a77fceb7996f53b739fff9d595d041d5e646afd264f9f13d300374096feeaf58
MD5 b336d343c59f877023ba6554701921be
BLAKE2b-256 b8a1772dea40fedce0286b801c6dda85b9811e8c584b91b0171d9daab23e4b60

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 f77008841d61ccb05b1b1687d235e92b72620e23d8b4779df0dbe5b818633bff
MD5 3072e88581cb797fcb0f6297948975ac
BLAKE2b-256 3acc360f2c02ddd2255859f0f605cee571fe2bc6cd8d7918d65167ca74c2d7ed

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp312-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9ad2c9a581a3442afad47c39f7abe1828e18900b2489ea892fcecb561a4308f6
MD5 8c86e03efb1166249f21535fac2b3834
BLAKE2b-256 3b21974382739b14f38da899f1c5175413473114aac9a2769f354f5e4311c0ff

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp312-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp312-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 e9320e5358f6ad6c4b9d6e44373e2e0ededc24a931b5f4c39772eb5b23d98983
MD5 c7c8fe457278dbbd26073c866afd5ffb
BLAKE2b-256 e5a2ca1317245a9c510db00f2b544300af759212236b5c5e2262ae2bcde776e9

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ef2c0ed9a3bf1849de1fda2ca09ee62af068f8a71fdd65fbd4538fc683de9e3e
MD5 68ce074359108408527499d964bf9931
BLAKE2b-256 1da4a733aace4d39e2a1007f7d30cff01846b7f001dc2912217b8b3588b318a4

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp312-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp312-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 0fcc77c4e112e1edefc2a3ac1f68b6d52abb9d319ef440524924e96d1c17948f
MD5 b82085e07ec30fbb275e2770fa6c757f
BLAKE2b-256 003b1b776ea288d54174387683ba7e7d3be8d2b7a67b3d6dfaa46151aa4d2b01

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 96d1f69dd718719b0e0646ec2cc1997aaf821c33d177321d851ac9571d185129
MD5 ec86635b0f2e815570775ea57dd1c63d
BLAKE2b-256 8e9e4c48e39f125f75c18243372672c191308e8dadbb624a2a6a53f282a2f724

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp311-cp311-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 51dc0735fcdbb78556d58bea0d2d4420c5d0c15f45fbe076e0ed9d8f82f68ac6
MD5 b47efe05f3dedffb146aaeb2b1f25ab5
BLAKE2b-256 2fc035372931e41e8c441280d493031ce3587a277f6d6c72bffac2fa58ff3a05

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2a6836e24f7e4775f15688dc75d346e5fd22e23d35450abba88993de82a0f58a
MD5 1a60002addc50b71e2938f8e8ea75baa
BLAKE2b-256 fc5d13fb31ab0f89ab4fb63bcd643d3359f6beae461993f8aeccd683f2c36b21

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 be82969370e6d4ee0dcc9c1e7b70e13ee1d75e3c0fc0b4eb20d1917564523243
MD5 b9120dc061531407efc2e34042f35c24
BLAKE2b-256 76491661905b738d432ed89a3e950745c55de72eb40f2546122367d8c0caaa26

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 68727196c937f00609631175d6f781fbd8615ab79aed4e3d80b4f45452e6cffc
MD5 8d5c3e80ec4d360145b12e07e52123bb
BLAKE2b-256 5d4286b62733822f16b4ee86436b500db774d24b875c3f3afeecc5c6e6574aa1

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp310-cp310-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp310-cp310-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 b16179bad9487164d08aa03650ede758686823f3defd891b5eb1feede950ff94
MD5 0314c5d7e2f19452426fb02f0e6ba746
BLAKE2b-256 a253834b54a1582690a6fd7863c8cb12ec738e632969f57ccc8aa19dc46af818

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 02df51c15a314eb3b627ea4a98c7674f53e03caf9963f6c04a26a47986417981
MD5 8745301ac37e89a4a7597161e9286d66
BLAKE2b-256 9cab9fc67df12a0474ee0493c458a57437e1aa011c184fba3f071c50c6e001d9

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 52cdbcf5459ab35b486e665f93d408e5486914578817f24dc062b9cb730e61a5
MD5 7507b6119689496a7bb6421e8be69dda
BLAKE2b-256 2600f206fa0624e28b836db1ff2abc8837df39ea127322814b32fcf3e693e516

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ded5e21a3bcf9243105bb46a3ba34a6bd1431894bfe9e7680962e3dd4347358f
MD5 2b77daa0a857c77dd3c124223271e162
BLAKE2b-256 c85a929234ea51ad6a377245ed5a6a607594eccb8806e63d34546559c63d39d9

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp39-cp39-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp39-cp39-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 ea0787f574b8d4e0478bcfa14b7057cf090c2f888651bf75f45c58adcde5ae98
MD5 9bcdb0d9e7b4bb011919908eb37425ae
BLAKE2b-256 1a8570f92a555a3c64365e64e769fef413708cddf006434852a3d2250a667631

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e01f380f137ca8346b2ad42d6ef7b53cb65b24d3c7dd1a8d2e7b17c33f2e60eb
MD5 1f00d0b23181d72522e557b6d07a5295
BLAKE2b-256 d01c77c07c114238a806b2791dfaebd2fb84b785e22f5043c3f9c58c8cac275e

See more details on using hashes here.

File details

Details for the file pyfastatools-2.2.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyfastatools-2.2.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 712231050a3fbccd53f7191d2999cd45f77ac9ac9b43084d2d04dc6a6578d516
MD5 8940ada482a59f9f484be9608e8c958b
BLAKE2b-256 c37bb754bd9d669cfb22cc9b3d95d8b6f715e99a9a35d385968c792b5ae13db5

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