get_db_link
#
- biotite.sequence.io.genbank.get_db_link(gb_file)[source]#
Parse the DBLINK field of a GenBank or GenPept file.
- Parameters:
- gb_fileGenBankFile
The GenBank file to read the DBLINK field from.
- Returns:
- link_dictdict
A dictionary storing the database links, with the database name as key, and the corresponding ID as value.
Examples
>>> import os.path >>> file = GenBankFile.read(os.path.join(path_to_sequences, "ec_bl21.gb")) >>> for key, val in get_db_link(file).items(): ... print(key, ":", val) BioProject : PRJNA20713 BioSample : SAMN02603478