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.1.1.tar.gz (15.1 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.1.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (103.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pyfastatools-2.1.1-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (109.1 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ i686

pyfastatools-2.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (103.2 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pyfastatools-2.1.1-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (109.1 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ i686

pyfastatools-2.1.1-cp312-abi3-musllinux_1_2_x86_64.whl (559.4 kB view details)

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

pyfastatools-2.1.1-cp312-abi3-musllinux_1_2_i686.whl (606.5 kB view details)

Uploaded CPython 3.12+musllinux: musl 1.2+ i686

pyfastatools-2.1.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (106.0 kB view details)

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

pyfastatools-2.1.1-cp312-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (111.9 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ i686

pyfastatools-2.1.1-cp311-cp311-musllinux_1_2_x86_64.whl (560.2 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

pyfastatools-2.1.1-cp311-cp311-musllinux_1_2_i686.whl (607.5 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ i686

pyfastatools-2.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (107.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyfastatools-2.1.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (112.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ i686

pyfastatools-2.1.1-cp310-cp310-musllinux_1_2_x86_64.whl (560.3 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

pyfastatools-2.1.1-cp310-cp310-musllinux_1_2_i686.whl (607.7 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ i686

pyfastatools-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (107.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyfastatools-2.1.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (113.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ i686

pyfastatools-2.1.1-cp39-cp39-musllinux_1_2_x86_64.whl (560.7 kB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

pyfastatools-2.1.1-cp39-cp39-musllinux_1_2_i686.whl (608.2 kB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ i686

pyfastatools-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (107.5 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pyfastatools-2.1.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (113.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ i686

File details

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

File metadata

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

File hashes

Hashes for pyfastatools-2.1.1.tar.gz
Algorithm Hash digest
SHA256 6826cf85c587288ed59da4633f8e209e0557f416b64f8e929db9530e59000edf
MD5 8da82f3862b0388fe1db9734071429a0
BLAKE2b-256 6d4aab5abb317c2f1b08688122db3f4bd53cfd43bc32b5a44324d82c758e7eb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 42ea84c321fdd6f32be1d3c18ee21ec12dff69cc7c0d33b4d5829011638c4ccf
MD5 00857d561d00867280bdbb1d1b489bb6
BLAKE2b-256 f4984562ea9e1447b5c74d45b73c3c2213b64e6c6bac17e07dcf76a72bc3d768

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 1a1472c893cc2a8e7892e0c7f95637f9296983851601f8dc8d70335bcc8650f7
MD5 fab9b40d2019d84d27b2409cf488b367
BLAKE2b-256 10d5950613fdbd1833c1e81043b5eb6f20fc15ceaeb4e9b0d9c38905394b7cd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8fe541e91e17ed5ca08853d02d3b3b1c6b3f3d58eedfa0f38d7921f69431a6fc
MD5 333a51ba5794e246b6a119626a23b471
BLAKE2b-256 31c8feb36cbf1fcc3cfe0312ccafac81429cdd57a238026ee49e16f812bfea9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 f9ec4d2986fcced0ae29b67c115e575422429fcf7079754d16363475d6acdddc
MD5 ba7ad6b53269791c853c0ac66b0b9d92
BLAKE2b-256 2277579db4df7fad886052076039943fdf59141ed3dda0fe52ba50d17467f8ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c90d64f0115e55937e30ccfa4e37fefe072b08f3273a256bbf19ea77ef109679
MD5 f2ebb25e732d29c5778e7e166a737b39
BLAKE2b-256 7107cfa662693886a37fcdd0f90214a0a3a724b2d451ff0e030142178a526bcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp312-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 d79aa9c2993088db49ca79afd5cefe6cb45d863ee1852d6c76568fc5a11a534d
MD5 31e703d7328c01966009f325d1f79114
BLAKE2b-256 43100cf1974d1076d45b802681aac623b6ad459740f168d5a304e8caf68a27a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 af2ec6e44cead3074ac4ed1e10160ef416f6c12dd02e0a3f8260d99264156893
MD5 225e62f97b7000c82e78237a9a8ae629
BLAKE2b-256 c9d0db9c5142251ddacefe4ad6763450d5d3a4b82328ceff778b81e32d18ecd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp312-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 97ca7f513b558ce01355b74761cccd2b2a7471bcc92aefbe1dffe02a32bdb0e1
MD5 d287a36ff0753c572f7c59f57d58639e
BLAKE2b-256 32595aa515775fb32df4d8bdf391052442be503523e83b7986b1e80e66d46f74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 73efc05fd5ad21a9358d42bb5762622234274aa61bfe5036037ffce736772239
MD5 67f50e4c94ecd8e9121d7fa6d2ecd435
BLAKE2b-256 0f5d93889de7b34c4b4be48b38fe9d3c8203242a46926ca4d8ab7d39178caab7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 0f31aace48520342869571ff3286ea48682d02fbde000c53108e0298dcebf569
MD5 20eab70d3fc59a85737d62d4a55df9ed
BLAKE2b-256 e7a4e9b83b46bc86701c7b6ea73c1487dc3c2a021d50bf4545e7adb2e66d08b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 09c80b91664cef8a5ffd6ef27e3745d193e6c92d2319410e0d53b4cbcdaeb012
MD5 11450cbcc0c434b918b2dc58ce20c36a
BLAKE2b-256 0ca0b99d5aa79aa1aa6121c349b307ab3f3212eb90c37fc389e1fde910703495

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 ab1c5b73a6a9edb29fae51f7c242ac94ee876d99de739230f0abe581f007aad1
MD5 65270c6856f460df48c7b889eea3393b
BLAKE2b-256 8bdf8b786f5c20cfe866611d8a1e180968525092543aafe38b6ba7ef8b7ca318

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 505203a70f81522773e7fc4498125bda8d4deb072ef6748112ecbe516dbee79a
MD5 bfe990a625eed8b125e54a4b0e074910
BLAKE2b-256 8f5f151fb7552ebf59338157c1107244789863f105b8e1db0c96743e665b310e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp310-cp310-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 7484d3f3ec02001de3763ea4fc94655e48b26a834a69a68c3f7371da3e4b0f27
MD5 60a812a4092451820844284ed2e82503
BLAKE2b-256 bf16850b35806553aa06abdb33f8e160bb68f886752fa4478d69038c1d499568

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 176af5b0b6bbaf596c407561d571339751aafd36d00130e28671867db93d9533
MD5 3c34f5cb900daf782d75b314c9f6b864
BLAKE2b-256 d909a9b07577dbbef71a65da98882cb9bb608c0e5377dae2d8a575195d2a7dcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 3e1cc62aa4636a8285a5d7dbe774e8480481d213a86c9d9b4e73bb5ee1dc8582
MD5 302569f4e2630320a2ce58ccb83d0e71
BLAKE2b-256 098818d2c2e4229482a049701cad7e20578b35c859ac6ff3ca19600316332780

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 44fb85012f4f83507650d9428ef9c334fedff77208170cb69d1c9442daa37de8
MD5 c2cb5a25a7ead0db8a1b0c2c617acd76
BLAKE2b-256 7a809b248a54402350e0397a5e658f4d29bf0c82938d80a3767449bab752abed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp39-cp39-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 45baa9835b9d86946cd8769cdabc52ce200ed2349254911850ab63d6c82550ea
MD5 052fd307d9dd6a1bbdd91f9a2b078a83
BLAKE2b-256 5725ad7c5d0b5275b3f31a87a8e5ec67db6fe37d195adf4d341850d8d1036f85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3a9870acd43655d0c7d5eef3d28caa2d6523627b8b30e342cb665628eef25999
MD5 5463d2bff61542798da5392e50034b1c
BLAKE2b-256 56ce0fe07f98d7b5175af773500a5ea5e0ae8922ff2a6b9f07cc18561a7f4cb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfastatools-2.1.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 b392536829e262c1c4ea6aa44299731c88fa45c156cdeda21a80e3d43061ce03
MD5 68782f998b212fdec549f87b173885e8
BLAKE2b-256 7c08048d2891af8e25aadb15bd140e98e6dc3d2eaabf6d05c9c69e50b488ba92

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