Skip to content

Commit

Permalink
fix wrong feature numbers in INSDC output formats #354
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Dec 17, 2024
1 parent 7035d1b commit 5769eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bakta/io/insdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def build_biopython_sequence_list(data: dict, features: Sequence[dict]):
for seq in data['sequences']:
sequence_features = []
if len(features) > 0:
[feat for feat in features if feat['sequence'] == seq['id']] if 'sequence' in features[0] else [feat for feat in features if feat['contig'] == seq['id']] # <1.10.0 compatibility
sequence_features = [feat for feat in features if feat['sequence'] == seq['id']] if 'sequence' in features[0] else [feat for feat in features if feat['contig'] == seq['id']] # <1.10.0 compatibility
comment = (
'Annotated with Bakta',
f"Software: v{bakta.__version__}\n",
Expand Down

0 comments on commit 5769eb3

Please sign in to comment.