I'm trying to create a Genbank file with the SeqIO Feature of Biopython. I am able to parse references of existing files with:
for seq_record in SeqIO.parse("example.gb","genbank"): print(seq_record.annotations['references'])
But somehow I'm not able to create a new Reference. I tried:
from Bio.SeqFeature import Reference ref = Reference(authors='test',title='Testtest') #seq_record.annotations['references].append(ref)
I always get the Error : TypeError: __init__() got an unexpected keyword argument 'authors' So it seems that Reference() doesn't recognize the keywords, even if they are featured in the documentation.
I wasn't able to find a Solution until now.