FASTA file reader/writer.
Project description
Welcome to fasta-reader 👋
Read and write FASTA file
🏠 Homepage
⚡️ Requirements
- Python >= 3.9
Install
pip install fasta-reader
Examples
The following example show that it can read a compressed file remotely seamlessly:
from fasta_reader import read_fasta
ROOT = "https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/009/858/895"
REF = "GCF_009858895.2_ASM985889v3"
FILE = f"{ROOT}/{REF}/{REF}_genomic.fna.gz"
for item in read_fasta(FILE):
print(item)
We can also write a FASTA file in a compressed format directly:
from fasta_reader import write_fasta
with write_fasta("protein.faa.gz") as file:
file.write_item("P01013 GENE X PROTEIN", "QIKDLLVSSSTDLDT...")
👤 Author
Show your support
Give a ⭐️ if this project helped you!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fasta_reader-3.1.1.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fasta_reader-3.1.1.tar.gz.
File metadata
- Download URL: fasta_reader-3.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/24.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5f089818fb66e44ba410a0832f2026c82c51a9bb719371df3cd78fe26c296d6
|
|
| MD5 |
6b26af7e4d3b1c3e75e3ad74f194069a
|
|
| BLAKE2b-256 |
8576e14bcee2a9503190695f9b5c9406b8eeb43137f84386de3600d23569d445
|
File details
Details for the file fasta_reader-3.1.1-py3-none-any.whl.
File metadata
- Download URL: fasta_reader-3.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/24.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2517b3ee7fd93984bd0e7af1875f7362a41f310ab6298082304605a7f5cadbc9
|
|
| MD5 |
f64fe3c9cd0754da4c73ce05e9705ec5
|
|
| BLAKE2b-256 |
fa6a377acf779355b682162bed15b8ba3a2c11fd024f3e7f66421d26ab38b935
|