Skip to content

Commit

Permalink
fix GFF3 INSDC output
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Nov 13, 2024
1 parent 7b53962 commit 89178f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bakta/io/gff.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def write_features(data: dict, features_by_sequence: Dict[str, dict], gff3_path:
if(ba.RE_GENE_SYMBOL.fullmatch(feat['gene'])): # discard non-standard ncRNA gene symbols
gene_annotations['gene'] = feat['gene']
else:
annotations.pop('gene')
annotations.pop('gene', None)
if('truncated' in feat):
gene_annotations[bc.INSDC_FEATURE_PSEUDO] = True
gene_annotations = encode_annotations(gene_annotations)
Expand Down
2 changes: 1 addition & 1 deletion bakta/io/insdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def build_biopython_sequence_list(data: dict, features: Sequence[dict]):
if(ba.RE_GENE_SYMBOL.fullmatch(feature['gene'])): # discard non-standard gene symbols
gene_qualifier['gene'] = feature['gene']
else:
qualifiers.pop('gene')
qualifiers.pop('gene', None)
else:
qualifiers['gene'] = feature['gene']
gene_qualifier['gene'] = feature['gene']
Expand Down

0 comments on commit 89178f4

Please sign in to comment.