Skip to content

Commit

Permalink
fix wrong truncated label on partial CDS #341
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Oct 29, 2024
1 parent 3884268 commit d8492e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bakta/features/cds.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ def create_cdss(genes, sequence):
cds = create_cds(sequence, gene.begin, gene.end, strand, False, '', '')
cds['start_type'] = gene.start_type
cds['rbs_motif'] = gene.rbs_motif
if gene.partial_begin:
if gene.partial_begin and gene.partial_end:
cds['truncated'] = bc.FEATURE_END_BOTH
partial_cdss_per_sequence.append(cds)
elif gene.partial_begin:
cds['truncated'] = bc.FEATURE_END_5_PRIME if cds['strand'] == bc.STRAND_FORWARD else bc.FEATURE_END_3_PRIME
partial_cdss_per_sequence.append(cds)
elif gene.partial_end:
Expand Down

0 comments on commit d8492e0

Please sign in to comment.