Skip to content

Commit

Permalink
Merge pull request #334 from susannasiebert/wildtype_amino_acid_diffe…
Browse files Browse the repository at this point in the history
…rent

Die if the wildtype amino acid in the wildtype sequence is different from the one in the amino acid change
  • Loading branch information
susannasiebert authored Aug 30, 2017
2 parents 57574f0 + d2b8216 commit abae8e2
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 @@ -132,6 +132,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 abae8e2

Please sign in to comment.