Skip to content

Commit 400c71d

Browse files
kansgouriano
authored andcommitted
JIRA:RW-2375 CCleanup::WGSCleanup called with also_fix_location false, remove conditional around early SetBestFrame and SetCDSPartialsByFrameAndTranslation calls
git-svn-id: https://anonsvn.ncbi.nlm.nih.gov/repos/v1/trunk/c++@103512 78c7ea69-d796-4a43-9a09-de51944f1b03
1 parent 8bf894b commit 400c71d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/app/table2asn/table2asn_validator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ CTable2AsnValidator::~CTable2AsnValidator()
240240
void CTable2AsnValidator::Cleanup(CRef<CSeq_submit> submit, CSeq_entry_Handle& h_entry, const string& flags) const
241241
{
242242
if (flags.find('w') != string::npos) {
243-
CCleanup::WGSCleanup(h_entry, true, CCleanup::eClean_NoNcbiUserObjects, false);
243+
CCleanup::WGSCleanup(h_entry, true, CCleanup::eClean_NoNcbiUserObjects, false, false);
244244
}
245245

246246
// ignore 'e' flag, run ExtendedCleanup() uncoditionally - but only after 'x'

src/objtools/cleanup/cleanup.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2692,11 +2692,9 @@ bool CCleanup::WGSCleanup(CSeq_entry_Handle entry, bool instantiate_missing_prot
26922692
} else {
26932693
string current_name = GetProteinName(*new_cds, entry);
26942694

2695-
if (also_fix_location) {
2696-
change_this_cds |= SetBestFrame(*new_cds, entry.GetScope());
2697-
2698-
change_this_cds |= SetCDSPartialsByFrameAndTranslation(*new_cds, entry.GetScope());
2699-
}
2695+
// the next two lines should not be under the control of also_fix_location
2696+
change_this_cds |= SetBestFrame(*new_cds, entry.GetScope());
2697+
change_this_cds |= SetCDSPartialsByFrameAndTranslation(*new_cds, entry.GetScope());
27002698

27012699
// retranslate
27022700
if (new_cds->IsSetProduct() && entry.GetScope().GetBioseqHandleFromTSE(*(new_cds->GetProduct().GetId()), entry)) {

0 commit comments

Comments
 (0)