Skip to content

Commit

Permalink
keep INSDC io downward compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Nov 13, 2024
1 parent 0415166 commit b2b847e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bakta/io/insdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def build_biopython_sequence_list(data: dict, features: Sequence[dict]):
qualifiers[bc.INSDC_FEATURE_PSEUDOGENE] = bc.INSDC_FEATURE_PSEUDOGENE_TYPE_UNKNOWN
elif(feature['type'] == bc.FEATURE_TM_RNA):
qualifiers['inference'] = 'profile:aragorn:1.2'
qualifiers['tag_peptide'] = f"{feature['tag']['start']}..{feature['tag']['stop']}"
if('tag' in feature):
qualifiers['tag_peptide'] = f"{feature['tag']['start']}..{feature['tag']['stop']}"
if feature['strand'] == bc.STRAND_REVERSE:
qualifiers['tag_peptide'] = f"complement({qualifiers['tag_peptide']})"
insdc_feature_type = bc.INSDC_FEATURE_TM_RNA
Expand Down

0 comments on commit b2b847e

Please sign in to comment.