get_sequence
#
- biotite.sequence.io.genbank.get_sequence(gb_file, format='gb')[source]#
Get the sequence from the ORIGIN field of a GenBank file.
- Parameters:
- gb_fileGenBankFile
The GenBank file to read the ORIGIN field from.
- format{‘gb’, ‘gp’}
Indicates whether the file is a GenBank or a GenPept file. Depending on this parameter a
NucleotideSequence
or aProteinSequence
is returned.
- Returns:
- sequenceNucleotideSequence or ProteinSequence
The reference sequence in the file.