Collections:
Single Sequence Record in FASTA Format
How to read a Single Sequence Record in FASTA Format?
✍: FYIcenter.com
If you want to store additional information to a DNA or protein
sequence, you can use the Bio.SeqRecord class, which contains
the following properties:
We can download an example of a Sequence Record in FASTA Format.
fyicenter$ wget https://raw.githubusercontent.com/biopython/biopython/master/Tests/GenBank/NC_005816.fna -rw-r--r--. 1 fyicenter staff 9853 Jan 27 23:55 NC_005816.fna
Then we can create a Bio.SeqRecord object with the SeqIO.read() function.
fyicenter$ python
>>> from Bio import SeqIO
>>> record = SeqIO.read("NC_005816.fna", "fasta")
>>> print(record)
ID: gi|45478711|ref|NC_005816.1|
Name: gi|45478711|ref|NC_005816.1|
Description: gi|45478711|ref|NC_005816.1| Yersinia pestis biovar Microtus str. 91001 plasmid pPCP1, complete sequence
Number of features: 0
Seq('TGTAACGAACGGTGCAATAGTGATCCACACCCAACGCCTGAAATCAGATCCAGG...CTG')
As you can see, the FASTA format does not provide enough properties and a good structure for Biopython to parse from.
⇒ Single Sequence Record in GenBank Format
2023-04-04, 1178🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1002029 Names: InChIKey: FPJCOLPRFZWPHM-UHFFFAOYS A-NSMILES: COc2cc(CC(C)C...
Molecule Summary: ID: FYI-1000181 SMILES: CS(=O)C1=CC=C(C=C1)C2=NC (=C(N2)C3=CC=NC=C3)C4=CC =C(C=C4)F...
Molecule Summary: ID: FYI-1009038 Names: InChIKey: QMKZZQPPJRWDED-UHFFFAOYS A-NSMILES: Nc1cc(C(=O)O)...
Reaction Summary: ID: FYI-1006692 Formula: SMILES: Cl.[Na]O>>[Na]Cl.O Received at FYIcenter.com on: ...
Molecule Summary: ID: FYI-1002886 Names: InChIKey: ZUCBUUIASYMKCB-UHFFFAOYS A-OSMILES: NS(=O)(=O)c3c...