From 5b62d87bc381c7bb9cf3e3f596ba084edca0b354 Mon Sep 17 00:00:00 2001 From: krt7 Date: Thu, 21 Dec 2017 13:18:01 -0500 Subject: [PATCH] updated annotation script --- bin/parse_annotation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/parse_annotation.py b/bin/parse_annotation.py index 6344c9c..c33fe6c 100755 --- a/bin/parse_annotation.py +++ b/bin/parse_annotation.py @@ -204,10 +204,10 @@ if gene_name == 'erm_37_': gene_name = 'erm(37)' annotation_details = ','.join(subannot[1:]) - if 'ins' in nucleotide_change or 'ins' in amino_acid_change: - variant = 'Insertion' - elif 'del' in nucleotide_change or 'del' in amino_acid_change: - variant = 'Deletion' + if 'del' in nucleotide_change or 'del' in amino_acid_change: + variant = 'Deletion' + elif 'ins' in nucleotide_change or 'ins' in amino_acid_change: + variant = 'Insertion' elif 'dup' in nucleotide_change or 'dup' in amino_acid_change: variant = 'Insertion' else: