35 #ifndef CU_CDUPDATER_HPP
36 #define CU_CDUPDATER_HPP
94 string toString(vector<OldNewGiPair>& giPairs,
string type);
104 virtual void getCds(vector<CCdCore*>&) = 0;
109 static bool IsEmpty();
110 static int checkAllBlasts(vector< UpdaterInterface* >& blasted);
111 static void removeUpdaters(
const vector<CCdCore*>& cds);
112 static void removeUpdaters(
const vector<UpdaterInterface*>& updaters);
128 int submitBlast(
bool wait =
false,
int row = 0);
130 bool processBlastHits();
131 void getCds(vector<CCdCore*>&);
136 bool blast(
bool wait =
false,
int row = 0);
149 bool checkBlastAndUpdate();
156 static int processPendingToNormal(
int overlap,
CCdCore* cd);
157 static int mergePending(
CCdCore* cd,
int threshold,
bool remaster);
173 static bool BioseqHasSeqId(
const CBioseq& bioseq,
const CSeq_id& seqId);
182 static void RemoveBlastDefline (
CBioseq& handle);
198 double ComputePercentIdentity(
const CRef< CSeq_align >& alignment,
const string& queryString,
const string& subjectString);
225 int submitBlast(
bool wait=
false,
int row=0);
227 bool processBlastHits();
228 void getCds(vector<CCdCore*>&);
User-defined methods of the data storage class.
Declares the CBlastProteinOptionsHandle class.
AccessionBioseqMap m_accSeqMap
map< string, CRef< CBioseq > > AccessionBioseqMap
CdUpdateParameters & getUpdateParameters()
void requireProcessPending(int threshold)
CRef< CSeq_align_set > getAlignments()
void setHitsNeeded(int num)
cd_utils::BlockModelPair * m_guideAlignment
const string getLastError()
void setLastError(const string &lastError)
CDUpdateStats & getStats()
void SetAlignments(CRef< CSeq_align_set > &hits)
CRef< CSeq_id > m_masterPdb
const CRef< CSeq_align_set > & GetAlignments() const
CdUpdateParameters m_config
int m_processPendingThreshold
CRef< CSeq_align_set > m_hits
vector< CDUpdater * > m_cdUpdaters
static CSafeStatic< list< UpdaterInterface * > > m_updaterList
virtual int submitBlast(bool wait=false, int row=0)=0
virtual void getCds(vector< CCdCore * > &)=0
virtual bool processBlastHits()=0
virtual bool getBlastHits()=0
virtual bool hasCd(CCdCore *)=0
virtual ~UpdaterInterface()
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_CDUTILS_EXPORT
vector< vector< char > * > TOss
static std::string toString(boost::unit_test::const_string bstr)
Static variables safety - create on demand, destroy on application termination.
Declares the CRemoteBlast class.
static CNamedPipeClient * client
#define row(bind, expected)
pair< TGi, TGi > OldNewGiPair
vector< OldNewGiPair > oldNewPairs