Fasta¶
multimolecule.io.fasta.read_fasta
¶
Python
read_fasta(path: str | Path) -> SequenceRecord
multimolecule.io.fasta.read_fasta_records
¶
Python
read_fasta_records(
path: str | Path,
) -> list[SequenceRecord]
Parse a FASTA file and return all records.
Source code in multimolecule/io/fasta.py
multimolecule.io.fasta.write_fasta
¶
Python
write_fasta(
record: SequenceRecord, path: str | Path
) -> Path
Write a FASTA file for a single record.
Source code in multimolecule/io/fasta.py
multimolecule.io.fasta.write_fasta_records
¶
Python
write_fasta_records(
records: Sequence[SequenceRecord], path: str | Path
) -> Path
Write a FASTA file for one or more records.