Skip to content

Commit

Permalink
Merge c1ba9b8 into 04cbc3f
Browse files Browse the repository at this point in the history
  • Loading branch information
susannasiebert committed Aug 18, 2020
2 parents 04cbc3f + c1ba9b8 commit d32562b
Show file tree
Hide file tree
Showing 5 changed files with 6,867 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/output_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,17 @@ def find_mutation_position(self, wt_epitope_seq, mt_epitope_seq):

def get_percentile(self, line):
if 'percentile' in line:
return float(line['percentile'])
percentile = line['percentile']
elif 'percentile_rank' in line:
return float(line['percentile_rank'])
percentile = line['percentile_rank']
elif 'rank' in line:
return float(line['rank'])
percentile = line['rank']
else:
return 'NA'
if percentile == 'None':
return 'NA'
else:
return float(percentile)

def match_wildtype_and_mutant_entry_for_missense(self, result, mt_position, wt_results, previous_result):
#The WT epitope at the same position is the match
Expand Down
Loading

0 comments on commit d32562b

Please sign in to comment.