From 0bca5bebf7f7c1f2be0b051bb0736280f378eebd Mon Sep 17 00:00:00 2001 From: Vitaliy Mysak Date: Fri, 30 Jun 2023 12:11:30 -0700 Subject: [PATCH] Improve hivintact errors priority and translation --- gene_splicer/utils.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gene_splicer/utils.py b/gene_splicer/utils.py index f576034..b5f65b6 100644 --- a/gene_splicer/utils.py +++ b/gene_splicer/utils.py @@ -396,6 +396,8 @@ def align(target_seq, 'APOBECHypermutationDetected': 'Hypermut', 'LongDeletion': 'LargeDeletion', 'PackagingSignalDeletion': '5DEFECT', + 'PackagingSignalNotComplete': '5DEFECT', + 'MajorSpliceDonorSiteMutated': '5DEFECT', 'WrongORFNumber': 'PrematureStop_OR_AAtooLong_OR_AAtooShort', } @@ -405,19 +407,19 @@ def translate_hivintact_error(error): HIVINTACT_ERRORS_TABLE = [ 'NonHIV', 'LongDeletion', - 'Scramble', 'InternalInversion', + 'Scramble', 'APOBECHypermutationDetected', + 'MajorSpliceDonorSiteMutated', + 'PackagingSignalDeletion', + 'PackagingSignalNotComplete', + 'RevResponseElementDeletion', 'MisplacedORF', 'WrongORFNumber', 'DeletionInOrf', 'InsertionInOrf', 'InternalStopInOrf', 'FrameshiftInOrf', - 'MajorSpliceDonorSiteMutated', - 'PackagingSignalDeletion', - 'PackagingSignalNotComplete', - 'RevResponseElementDeletion', ] def iterate_hivintact_data(name, outpath):