From d6e2fad2c252a3f214bf0bc5d4ef02c97bd94880 Mon Sep 17 00:00:00 2001 From: rsajulga-nmdp Date: Fri, 28 Aug 2020 13:52:09 -0500 Subject: [PATCH] add line to check if annotation.annotation exists for the ref_align function --- seqann/sequence_annotation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/seqann/sequence_annotation.py b/seqann/sequence_annotation.py index 6d6a7e7..82cdeff 100644 --- a/seqann/sequence_annotation.py +++ b/seqann/sequence_annotation.py @@ -772,6 +772,7 @@ def ref_align(self, found_seqs, sequence: Seq=None, ##Make sure order of alignment make sense if an.features[f].location.start == 0 \ and f != "five_prime_UTR" \ + and annotation.annotation \ and 'three_prime_UTR' in annotation.annotation: del an.features[f] continue