Skip to content

Commit

Permalink
Fixing accidental dinucleotides in the codon.fasta output
Browse files Browse the repository at this point in the history
  • Loading branch information
kirilenkobm committed Apr 13, 2023
1 parent b7b8d84 commit 33d73c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CESAR_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1845,6 +1845,10 @@ def extract_codon_data(codon_table, excl_exons=None):
que_subcodons = [GAP_CODON for x in range(len(ref_subcodons))]
t_codons.extend(ref_subcodons)
q_codons.extend(que_subcodons)
elif ref_codon == "-" or ref_codon == "--":
# special case to be captured Apr 2023
t_codons.append(GAP_CODON)
q_codons.append(XXX_CODON)
else:
# something strange
ref_int = check_codon(ref_codon[-3:])
Expand Down

0 comments on commit 33d73c1

Please sign in to comment.