code: def parse_annotations(annots, fmt, annot_tables, trans_table):
      
      annotations = {} # annotations[contig] = [features]
      # gbk format
      if fmt is False:
          for contig, feature in parse_gbk(annots):
              if contig not in annotations:
                  annotations[contig] = []
              annotations[contig].append(feature)
      # fasta format
      else:
          for contig, feature in parse_fasta_annotations(annots, annot_tables, trans_table):
              if contig not in annotations:
                  annotations[contig] = []
              annotations[contig].append(feature)
      return annotations
docs: parse annotations in either gbk or Prodigal fasta format