Skip to content

Commit

Permalink
BugFix: rare frameshift insertions of aa change -/X now annotetdd cor…
Browse files Browse the repository at this point in the history
…rectly
  • Loading branch information
ambj committed Apr 17, 2018
1 parent 3ce505a commit e98bcb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MuPeXI.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ def frame_shift_peptide(genome_reference, proteome_reference, mutation_info, pep
n_index = index_creator(mutation_info.prot_pos, peptide_length, aaseq, mutation_info.codon_mut, cdna_pos_start, index_type = 'nucleotide', frame_type = 'frameshift_insertion')
new_codon = re.search(r'([A-Z]+)', mutation_info.codon_mut).group(1).strip()
if mutation_info.codon_normal == '-':
mutation_sequence = seq[n_index.lower_index - 3:cdna_pos_start + 1] + new_codon.lower() + seq[cdna_pos_end : ]
mutation_sequence = seq[n_index.lower_index - 3:cdna_pos_start] + new_codon.lower() + seq[cdna_pos_end - 1: ]
else:
mutation_sequence = seq[n_index.lower_index :cdna_pos_start] + new_codon.lower() + seq[cdna_pos_end - 1: ]

Expand Down

0 comments on commit e98bcb1

Please sign in to comment.