From f30b432e64a173b40900dbd6d01a9f466f2f4db0 Mon Sep 17 00:00:00 2001 From: mozese2 Date: Wed, 28 Feb 2024 15:27:16 +0000 Subject: [PATCH] Don't fail on CDS features with no product JIRA GP-37410 git-svn-id: https://anonsvn.ncbi.nlm.nih.gov/repos/v1/trunk/c++@101884 78c7ea69-d796-4a43-9a09-de51944f1b03 --- src/algo/sequence/transform_align.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algo/sequence/transform_align.cpp b/src/algo/sequence/transform_align.cpp index 95491e48f5c..8d78db898be 100644 --- a/src/algo/sequence/transform_align.cpp +++ b/src/algo/sequence/transform_align.cpp @@ -186,7 +186,7 @@ void CFeatureGenerator::SImplementation::StitchSmallHoles(CSeq_align& align) try { transcript_id->Assign(align.GetSeq_id(0)); CMappedFeat cds = GetCdsOnMrna(*transcript_id, *m_scope); - if (cds) { + if (cds && cds.IsSetProduct()) { mapper_to_cds.Reset(new CSeq_loc_Mapper(*cds.GetSeq_feat(), CSeq_loc_Mapper::eLocationToProduct, m_scope.GetPointer())); }