Skip to content

Commit

Permalink
Don't fail on CDS features with no product
Browse files Browse the repository at this point in the history
JIRA GP-37410

git-svn-id: https://anonsvn.ncbi.nlm.nih.gov/repos/v1/trunk/c++@101884 78c7ea69-d796-4a43-9a09-de51944f1b03
  • Loading branch information
eyalmozes authored and gouriano committed Mar 1, 2024
1 parent 1d05d56 commit f30b432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algo/sequence/transform_align.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
Expand Down

0 comments on commit f30b432

Please sign in to comment.