get_accession
#
- biotite.sequence.io.genbank.get_accession(gb_file)[source]#
Parse the ACCESSION field of a GenBank or GenPept file.
- Parameters:
- gb_fileGenBankFile
The GenBank file to read the ACCESSION field from.
- Returns:
- accessionstr
The accession ID of the file.
Examples
>>> import os.path >>> file = GenBankFile.read(os.path.join(path_to_sequences, "ec_bl21.gb")) >>> print(get_accession(file)) CP001509