From: Aaron M. Ucko Date: Thu, 15 Dec 2016 03:44:19 +0000 (-0500) Subject: Hang on to sequence data even if -parse_deflines recognized a non-local ID, X-Git-Tag: archive/raspbian/2.16.0+ds-7+rpi1~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f12213ef840b2709101e08d98919e9fa74be8c12;p=ncbi-blast%2B.git Hang on to sequence data even if -parse_deflines recognized a non-local ID, on the condition that the environment variable BLAST_ALWAYS_KEEP_SEQUENCE (or configuration parameter [BLAST] always_keep_sequence) is set to a "true" value (English-only, case-insensitive true, t, yes, y, or 1). Gbp-Pq: Name optionally_keep_sequence --- diff --git a/c++/src/algo/blast/api/search_strategy.cpp b/c++/src/algo/blast/api/search_strategy.cpp index a70b3b9c..5bc6cb64 100644 --- a/c++/src/algo/blast/api/search_strategy.cpp +++ b/c++/src/algo/blast/api/search_strategy.cpp @@ -560,6 +560,11 @@ void CExportStrategy::x_Process_Pssm(CRef & pssm) m_QueueSearchRequest->SetService(new_service); } +NCBI_PARAM_DECL(bool, BLAST, always_keep_sequence); +NCBI_PARAM_DEF_EX(bool, BLAST, always_keep_sequence, false, eParam_Default, + BLAST_ALWAYS_KEEP_SEQUENCE); +typedef NCBI_PARAM_TYPE(BLAST, always_keep_sequence) TAlwaysKeepSequence; + void CExportStrategy::x_Process_Query(CRef & query) { if (query.Empty()) @@ -581,7 +586,7 @@ void CExportStrategy::x_Process_Query(CRef & query) // Check if there are any range restrictions applied and if local IDs are // being used to determine how to specify the query sequence(s) - bool has_local_ids = false; + bool has_local_ids = TAlwaysKeepSequence::GetDefault(); if (!seqloc_list.empty()) {