#include <ncbi_pch.hpp>
#include <corelib/test_boost.hpp>
#include <corelib/metareg.hpp>
#include <objmgr/object_manager.hpp>
#include <objmgr/util/sequence.hpp>
#include <objmgr/bioseq_handle.hpp>
#include <objmgr/seq_vector.hpp>
#include <objtools/readers/fasta.hpp>
#include <algo/blast/api/blast_types.hpp>
#include "dust_filter.hpp"
#include <algo/blast/api/blast_exception.hpp>
#include <algo/blast/api/blast_options_handle.hpp>
#include <blast_objmgr_priv.hpp>
#include <algo/blast/core/blast_setup.h>
#include <algo/blast/core/blast_stat.h>
#include <algo/blast/core/blast_encoding.h>
#include <algo/blast/core/gencode_singleton.h>
#include <algo/blast/api/effsearchspace_calc.hpp>
#include <algo/blast/api/objmgr_query_data.hpp>
#include "test_objmgr.hpp"
#include "blast_test_util.hpp"
#include <string>
#include <vector>
Include dependency graph for blastsetup_unit_test.cpp:

Go to the source code of this file.
Classes | |
| struct | CBlastSetupTestFixture |
Functions | |
| BOOST_AUTO_TEST_CASE (NumberOfContextsBlastp) | |
| BOOST_AUTO_TEST_CASE (NumberOfContextsBlastn) | |
| BOOST_AUTO_TEST_CASE (NumberOfContextsBlastx) | |
| BOOST_AUTO_TEST_CASE (NumberOfContextsTblastx) | |
| BOOST_AUTO_TEST_CASE (NumberOfContextsTblastn) | |
| BOOST_AUTO_TEST_CASE (NumberOfContextsRPSBlast) | |
| BOOST_AUTO_TEST_CASE (NumberOfContextsRPSTblastn) | |
| BOOST_AUTO_TEST_CASE (NumberOfContextsThrow) | |
| BOOST_AUTO_TEST_CASE (QueryIsTranslated) | |
| BOOST_AUTO_TEST_CASE (QueryIsPlainNucleotide) | |
| BOOST_AUTO_TEST_CASE (SubjectIsProtein) | |
| BOOST_AUTO_TEST_CASE (SubjectIsNucleotide) | |
| BOOST_AUTO_TEST_CASE (SubjectIsPlainNucleotide) | |
| BOOST_AUTO_TEST_CASE (BlastNumber2Program_CORE) | |
| BOOST_AUTO_TEST_CASE (String2Enum_Blastp) | |
| BOOST_AUTO_TEST_CASE (String2Enum_Blastn) | |
| BOOST_AUTO_TEST_CASE (String2Enum_Blastx) | |
| BOOST_AUTO_TEST_CASE (String2Enum_Tblastx) | |
| BOOST_AUTO_TEST_CASE (String2Enum_Tblastn) | |
| BOOST_AUTO_TEST_CASE (String2Enum_Megablast) | |
| BOOST_AUTO_TEST_CASE (String2Enum_DiscoMegablast) | |
| BOOST_AUTO_TEST_CASE (String2Enum_PSIBlast) | |
| BOOST_AUTO_TEST_CASE (String2Enum_RPSBlast) | |
| BOOST_AUTO_TEST_CASE (String2Enum_RPSTblastn) | |
| BOOST_AUTO_TEST_CASE (String2Enum_Throw1) | |
| BOOST_AUTO_TEST_CASE (String2Enum_PSITblastn) | |
| BOOST_AUTO_TEST_CASE (FindMatrixPathSuccess) | |
| BOOST_AUTO_TEST_CASE (FindMatrixPathNoNcbiRcFile) | |
| BOOST_AUTO_TEST_CASE (FindMatrixPathFailure) | |
| BOOST_AUTO_TEST_CASE (FindMatrixPathWithNull) | |
| BOOST_AUTO_TEST_CASE (Context2Frame_ProteinQuery) | |
| BOOST_AUTO_TEST_CASE (Context2Frame_NucleotideQuery) | |
| BOOST_AUTO_TEST_CASE (Context2Frame_TranslatedQuery) | |
| BOOST_AUTO_TEST_CASE (Context2Frame_Error) | |
| BOOST_AUTO_TEST_CASE (SetupSubjectsProt) | |
| BOOST_AUTO_TEST_CASE (SetupSubjectsProtRange) | |
| BOOST_AUTO_TEST_CASE (SetupSubjectsNuclPlusStrandFiltered) | |
| BOOST_AUTO_TEST_CASE (SetupSubjectsNuclMinusStrandFiltered) | |
| BOOST_AUTO_TEST_CASE (SetupSubjectsNuclBothStrandFiltered) | |
| BOOST_AUTO_TEST_CASE (SetupSubjectsNuclPlusStrand) | |
| BOOST_AUTO_TEST_CASE (SetupSubjectsNuclMinusStrand) | |
| BOOST_AUTO_TEST_CASE (SetupSubjectsNuclBothStrand) | |
| BOOST_AUTO_TEST_CASE (GetSequenceProteinWithSelenocysteine) | |
| BOOST_AUTO_TEST_CASE (GetSequenceNCBI4NA_NoSentinels) | |
| BOOST_AUTO_TEST_CASE (GetSequenceNCBI2NA) | |
| BOOST_AUTO_TEST_CASE (GetGapOnlySequenceNCBI2NA) | |
| BOOST_AUTO_TEST_CASE (GetGapInSequenceNCBI2NA) | |
| BOOST_AUTO_TEST_CASE (testCalcEffLengths) | |
| BOOST_AUTO_TEST_CASE (testEffSearchSpaceCalculator_Ungapped) | |
| BOOST_AUTO_TEST_CASE (testEffSearchSpaceCalculatorNoSideEffects) | |
| BOOST_AUTO_TEST_CASE (testCalcEffLengthsWithUserSearchSpace) | |
| BOOST_AUTO_TEST_CASE (testMitochondrialGeneticCode) | |
| BOOST_AUTO_TEST_CASE (testMainSetup) | |
| BOOST_AUTO_TEST_CASE (testSetupWithZeroLengthSequence) | |
| BOOST_AUTO_TEST_CASE (GetSubjectTranslations) | |
| BOOST_AUTO_TEST_CASE (GetMixedFrameQuery) | |
| BOOST_AUTO_TEST_CASE (GetMixedFrameQueryOnOneStrand) | |
|
|
Definition at line 1264 of file blastsetup_unit_test.cpp. References BLAST_CreateMixedFrameDNATranslation(), CODON_LENGTH, CBlastOptionsFactory::Create(), eBlastx, eNa_strand_plus, CBlastOptions::GetProgramType(), CBlastOptions::GetStrandOption(), id, CTestObjMgr::Instance(), ITERATE, prog, SetupQueries(), and SetupQueryInfo(). |
|
|
Definition at line 1225 of file blastsetup_unit_test.cpp. References BLAST_CreateMixedFrameDNATranslation(), CODON_LENGTH, CBlastOptionsFactory::Create(), eBlastx, eNa_strand_both, CBlastOptions::GetProgramType(), CBlastOptions::GetStrandOption(), id, CTestObjMgr::Instance(), ITERATE, NUM_FRAMES, prog, SetupQueries(), and SetupQueryInfo(). |
|
|
Definition at line 1183 of file blastsetup_unit_test.cpp. References BLAST_GetAllTranslations(), SBlastSequence::data, eBlastEncodingNcbi4na, eNa_strand_both, eSentinels, FindGeneticCode(), AutoPtr< X, Del >::get(), GetSequence(), id, CTestObjMgr::Instance(), SBlastSequence::length, and NUM_FRAMES. |
|
|
Definition at line 1135 of file blastsetup_unit_test.cpp. References eBlastTypeBlastn, eNa_strand_both, CBLAST_SequenceBlk::Get(), id1, id2, CTestObjMgr::Instance(), ITERATE, BLAST_SequenceBlk::lcase_mask, SSeqRange::left, SSeqRange::right, BlastMaskLoc::seqloc_array, SetupQueries(), SetupQueryInfo(), and BlastSeqLoc::ssr. |
|
|
|
Definition at line 1013 of file blastsetup_unit_test.cpp. References eBlastTypeBlastx, eNa_strand_both, GenCodeSingletonFini(), GenCodeSingletonInit(), id, CTestObjMgr::Instance(), SetupQueries(), and SetupQueryInfo(). |
|
|
|
Definition at line 950 of file blastsetup_unit_test.cpp. References CBlastOptionsFactory::Create(), eBlastp, id, and CTestObjMgr::Instance(). |
|
|
Definition at line 924 of file blastsetup_unit_test.cpp. References CBlastOptionsFactory::Create(), eBlastp, id, and CTestObjMgr::Instance(). |
|
|
|
Definition at line 783 of file blastsetup_unit_test.cpp. References SBlastSequence::data, eBlastEncodingNcbi2na, eNa_strand_plus, eNoSentinels, AutoPtr< X, Del >::get(), GetSequence(), CTestObjMgr::Instance(), and SBlastSequence::length. |
|
|
Definition at line 760 of file blastsetup_unit_test.cpp. References SBlastSequence::data, eBlastEncodingNcbi2na, eNa_strand_plus, eNoSentinels, AutoPtr< X, Del >::get(), GetSequence(), CTestObjMgr::Instance(), and SBlastSequence::length. |
|
|
Definition at line 745 of file blastsetup_unit_test.cpp. References COMPRESSION_RATIO, eBlastEncodingNcbi2na, eNa_strand_plus, eNoSentinels, GetSequence(), CTestObjMgr::Instance(), and SBlastSequence::length. |
|
|
Definition at line 730 of file blastsetup_unit_test.cpp. References eBlastEncodingNcbi4na, eNa_strand_plus, eNoSentinels, GetSequence(), CTestObjMgr::Instance(), and SBlastSequence::length. |
|
|
Definition at line 695 of file blastsetup_unit_test.cpp. References AMINOACID_TO_NCBISTDAA, SBlastSequence::data, DIM, eBlastEncodingProtein, eNa_strand_unknown, eSentinels, AutoPtr< X, Del >::get(), CObjectManager::GetInstance(), GetSequence(), id, and ReadFasta(). |
|
|
Definition at line 668 of file blastsetup_unit_test.cpp. References BlastSequenceBlkFree(), CBlastOptionsFactory::Create(), eBlastn, eNa_strand_both, COpenRange< Position >::GetLength(), id, ITERATE, and SetupSubjects(). |
|
|
Definition at line 642 of file blastsetup_unit_test.cpp. References BlastSequenceBlkFree(), CBlastOptionsFactory::Create(), eBlastn, eNa_strand_minus, COpenRange< Position >::GetLength(), id, ITERATE, and SetupSubjects(). |
|
|
Definition at line 615 of file blastsetup_unit_test.cpp. References BlastSequenceBlkFree(), CBlastOptionsFactory::Create(), eBlastn, eNa_strand_plus, COpenRange< Position >::GetLength(), id, ITERATE, and SetupSubjects(). |
|
|
Definition at line 587 of file blastsetup_unit_test.cpp. References Blast_FindDustFilterLoc(), BlastSequenceBlkFree(), CSeq_id_Base::e_Gi, eNa_strand_both, COpenRange< Position >::GetLength(), CBlastOptionsHandle::GetOptions(), CBlastOptions::GetProgramType(), id, ITERATE, and SetupSubjects(). |
|
|
Definition at line 560 of file blastsetup_unit_test.cpp. References Blast_FindDustFilterLoc(), BlastSequenceBlkFree(), CSeq_id_Base::e_Gi, eNa_strand_minus, COpenRange< Position >::GetLength(), CBlastOptionsHandle::GetOptions(), CBlastOptions::GetProgramType(), id, ITERATE, and SetupSubjects(). |
|
|
Definition at line 533 of file blastsetup_unit_test.cpp. References Blast_FindDustFilterLoc(), BlastSequenceBlkFree(), CSeq_id_Base::e_Gi, eNa_strand_plus, COpenRange< Position >::GetLength(), CBlastOptionsHandle::GetOptions(), CBlastOptions::GetProgramType(), id, ITERATE, and SetupSubjects(). |
|
|
Definition at line 501 of file blastsetup_unit_test.cpp. References BlastSequenceBlkFree(), CBlastOptionsFactory::Create(), eBlastp, id, CTestObjMgr::Instance(), ITERATE, and SetupSubjects(). |
|
|
Definition at line 471 of file blastsetup_unit_test.cpp. References BlastSequenceBlkFree(), CBlastOptionsFactory::Create(), eBlastp, GetLength(), id, CTestObjMgr::Instance(), ITERATE, and SetupSubjects(). |
|
|
Definition at line 462 of file blastsetup_unit_test.cpp. References BLAST_ContextToFrame(), and eBlastTypeUndefined. |
|
|
Definition at line 422 of file blastsetup_unit_test.cpp. References BLAST_ContextToFrame(), eBlastTypeBlastx, eBlastTypeRpsTblastn, and eBlastTypeTblastx. |
|
|
Definition at line 407 of file blastsetup_unit_test.cpp. References BLAST_ContextToFrame(), eBlastTypeBlastn, and error(). |
|
|
Definition at line 358 of file blastsetup_unit_test.cpp. References BLAST_ContextToFrame(), eBlastTypeBlastp, eBlastTypePsiBlast, eBlastTypeRpsBlast, and eBlastTypeTblastn. |
|
|
Definition at line 353 of file blastsetup_unit_test.cpp. References BlastFindMatrixPath(). |
|
|
Definition at line 347 of file blastsetup_unit_test.cpp. References BlastFindMatrixPath(), input(), and strdup. |
|
|
Definition at line 337 of file blastsetup_unit_test.cpp. References BlastFindMatrixPath(), CMetaRegistry::GetSearchPath(), input(), CMetaRegistry::SetSearchPath(), sfree, and strdup. |
|
|
Definition at line 329 of file blastsetup_unit_test.cpp. References BlastFindMatrixPath(), input(), sfree, and strdup. |
|
|
Definition at line 324 of file blastsetup_unit_test.cpp. References ePSITblastn, and ProgramNameToEnum(). |
|
|
Definition at line 320 of file blastsetup_unit_test.cpp. References ProgramNameToEnum(). |
|
|
Definition at line 316 of file blastsetup_unit_test.cpp. References eRPSTblastn, and ProgramNameToEnum(). |
|
|
Definition at line 312 of file blastsetup_unit_test.cpp. References eRPSBlast, and ProgramNameToEnum(). |
|
|
Definition at line 308 of file blastsetup_unit_test.cpp. References ePSIBlast, and ProgramNameToEnum(). |
|
|
Definition at line 304 of file blastsetup_unit_test.cpp. References eDiscMegablast, and ProgramNameToEnum(). |
|
|
Definition at line 300 of file blastsetup_unit_test.cpp. References eMegablast, and ProgramNameToEnum(). |
|
|
Definition at line 296 of file blastsetup_unit_test.cpp. References eTblastn, and ProgramNameToEnum(). |
|
|
Definition at line 292 of file blastsetup_unit_test.cpp. References eTblastx, and ProgramNameToEnum(). |
|
|
Definition at line 288 of file blastsetup_unit_test.cpp. References eBlastx, and ProgramNameToEnum(). |
|
|
Definition at line 284 of file blastsetup_unit_test.cpp. References eBlastn, and ProgramNameToEnum(). |
|
|
Definition at line 280 of file blastsetup_unit_test.cpp. References eBlastp, and ProgramNameToEnum(). |
|
|
Definition at line 252 of file blastsetup_unit_test.cpp. References Blast_ProgramNameFromType(), eBlastTypeUndefined, and TestUtil::GetAllBlastProgramTypes(). |
|
|
Definition at line 238 of file blastsetup_unit_test.cpp. References Blast_ProgramIsPhiBlast(), Blast_ProgramNameFromType(), Blast_SubjectIsNucleotide(), Blast_SubjectIsTranslated(), eBlastTypeBlastn, TestUtil::GetAllBlastProgramTypes(), ITERATE, and prog. |
|
|
Definition at line 223 of file blastsetup_unit_test.cpp. References Blast_ProgramNameFromType(), Blast_SubjectIsNucleotide(), eBlastTypeBlastn, eBlastTypePhiBlastn, eBlastTypePsiTblastn, eBlastTypeTblastn, eBlastTypeTblastx, TestUtil::GetAllBlastProgramTypes(), ITERATE, and prog. |
|
|
Definition at line 208 of file blastsetup_unit_test.cpp. References Blast_ProgramIsRpsBlast(), Blast_ProgramNameFromType(), Blast_SubjectIsProtein(), eBlastTypeBlastp, eBlastTypeBlastx, eBlastTypePhiBlastp, eBlastTypePsiBlast, TestUtil::GetAllBlastProgramTypes(), ITERATE, and prog. |
|
|
Definition at line 195 of file blastsetup_unit_test.cpp. References Blast_ProgramIsPhiBlast(), Blast_ProgramNameFromType(), Blast_QueryIsNucleotide(), Blast_QueryIsTranslated(), eBlastTypeBlastn, TestUtil::GetAllBlastProgramTypes(), ITERATE, and prog. |
|
|
Definition at line 182 of file blastsetup_unit_test.cpp. References Blast_ProgramNameFromType(), Blast_QueryIsTranslated(), eBlastTypeBlastx, eBlastTypeRpsTblastn, eBlastTypeTblastx, TestUtil::GetAllBlastProgramTypes(), ITERATE, and prog. |
|
|
Definition at line 175 of file blastsetup_unit_test.cpp. References eBlastTypeUndefined, and GetNumberOfContexts(). |
|
|
Definition at line 170 of file blastsetup_unit_test.cpp. References eBlastTypeRpsTblastn, GetNumberOfContexts(), and NUM_FRAMES. |
|
|
Definition at line 165 of file blastsetup_unit_test.cpp. References eBlastTypeRpsBlast, and GetNumberOfContexts(). |
|
|
Definition at line 160 of file blastsetup_unit_test.cpp. References eBlastTypeTblastn, and GetNumberOfContexts(). |
|
|
Definition at line 155 of file blastsetup_unit_test.cpp. References eBlastTypeTblastx, GetNumberOfContexts(), and NUM_FRAMES. |
|
|
Definition at line 150 of file blastsetup_unit_test.cpp. References eBlastTypeBlastx, GetNumberOfContexts(), and NUM_FRAMES. |
|
|
Definition at line 145 of file blastsetup_unit_test.cpp. References eBlastTypeBlastn, GetNumberOfContexts(), and NUM_STRANDS. |
|
|
Definition at line 141 of file blastsetup_unit_test.cpp. References eBlastTypeBlastp, and GetNumberOfContexts(). |
1.4.6
Modified on Mon Dec 07 16:21:39 2009 by modify_doxy.py rev. 173732