<jupyter_start><jupyter_text>Get additional parameters for parsing genbank files<jupyter_code>from Bio import SeqIO
from Bio import SeqFeature
genbank_file = '/Users/hughcross/Documents/Rattus_exulans_isolate_RCIPuk007.gb'
handle = open(genbank_file, 'r')
record = SeqIO.read(genbank_file, "genbank")
record.seq
record.id
record.description
record.annotations
len(record.features)
rec1 = record.features[0]
rec1
rec1.qualifiers#['country']
rec1.qualifiers['isolate']
rec3 = record.features[2]
rec3.type
rec3.qualifiers<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10766423357664233, 'fraction_numerical': 0.021897810218978103, 'mean_word_length': 8.46551724137931, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '28899', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 202, 'n_tokens_neox': 197, 'n_words': 36, 'path': 'notebooks/deciphering_SeqFeature_Classes.ipynb', 'repo_name': 'hughcross/genbanking', 'size': '548'}