Skip to content

Commit

Permalink
fix signal peptide backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Dec 2, 2024
1 parent 093204d commit 182feb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bakta/io/gff.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,5 +403,5 @@ def write_signal_peptide(fh, feat: dict): # <1.10.0 compatibility
'Parent': feat['locus']
}
annotations = encode_annotations(annotations)
seq_id = seq_id if 'sequence' in feat else feat['contig']
seq_id = feat['sequence'] if 'sequence' in feat else feat['contig'] # <1.10.0 compatibility
fh.write(f"{seq_id}\tDeepSig\t{so.SO_SIGNAL_PEPTIDE.name}\t{sig_peptide['start']}\t{sig_peptide['stop']}\t{sig_peptide['score']:.2f}\t{feat['strand']}\t.\t{annotations}\n")

0 comments on commit 182feb7

Please sign in to comment.