Skip to content

Commit

Permalink
PM4: Remove double condition for inframe variants
Browse files Browse the repository at this point in the history
Remove duplicated condition made on protein length ratio calculation
  • Loading branch information
damianosmel committed Jun 4, 2022
1 parent 69b2bd0 commit ccf7f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genotoscope/variants/AssignPM4.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def assess_PM4_inframe_indel(self, transcripts_info, variant_info, var_coding_se
else:
obs_prot_len = self.calculate_observed_protein_length(variant_info)
ref_prot_len = len(transcript.protein_sequence)
prot_change_ratio = abs(obs_prot_len - ref_prot_len) / ref_prot_len > 0.1
prot_change_ratio = abs(obs_prot_len - ref_prot_len) / ref_prot_len
self.logger.debug("Protein change ratio: {}".format(prot_change_ratio))

if transcript.protein_sequence and prot_change_ratio > 0.1:
Expand Down

0 comments on commit ccf7f1c

Please sign in to comment.