Skip to content

Commit

Permalink
Die if the wildtype amino acid in the wildtype sequence is different …
Browse files Browse the repository at this point in the history
…from the one in the amino acid change
  • Loading branch information
susannasiebert committed Aug 30, 2017
1 parent 9e43721 commit d2b8216
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pvacseq/lib/generate_fasta.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ def main(args_input = sys.argv[1:]):
else:
mutation_start_position, wildtype_subsequence = get_wildtype_subsequence(position, full_wildtype_sequence, wildtype_amino_acid_length, peptide_sequence_length, line)
mutation_end_position = mutation_start_position + wildtype_amino_acid_length
if wildtype_amino_acid != '-' and wildtype_amino_acid != wildtype_subsequence[mutation_start_position:mutation_end_position]:
sys.exit("ERROR: There was a mismatch between the actual wildtype amino acid and the expected amino acid. Did you use the same reference build version for VEP that you used for creating the VCF?\n%s" % line)
mutant_subsequence = wildtype_subsequence[:mutation_start_position] + mutant_amino_acid + wildtype_subsequence[mutation_end_position:]

if '*' in wildtype_subsequence or '*' in mutant_subsequence:
Expand Down

0 comments on commit d2b8216

Please sign in to comment.