<
classSeq,
classPat,
classCompare_fun>
71 constCompare_fun compare_fun)
79 for(
unsigned int i= 0;
i< pat.size();
i++) {
80 EMatchres = compare_fun(seq[pos+
i], pat[
i]);
92 template<
classSeq,
classPat>
99 template<
classSeq,
classPat>
103 constPat& pat,
TSeqPospos)
const 110 template<
classSeq,
classPat,
classMatch_fun>
113vector<TSeqPos>& definite_matches,
114vector<TSeqPos>& possible_matches,
117 for(
unsigned int i= 0;
i< seq.size() - pat.size() + 1;
i++) {
123definite_matches.push_back(
i);
127possible_matches.push_back(
i);
131 template<
classSeq,
classPat>
134vector<TSeqPos>& definite_matches,
135vector<TSeqPos>& possible_matches)
138definite_matches, possible_matches,
This class provides functions for determining where sequences, perhaps containing ambiguity codes,...
static void FindMatchesNcbi8na(const Seq &seq, const Pat &pat, vector< TSeqPos > &definite_matches, vector< TSeqPos > &possible_matches)
static char IupacToNcbi8na(char in)
stuff for dealing with ncbi8na.
static EMatch MatchNcbi8na(const Seq &seq, const Pat &pat, TSeqPos pos)
static void CompNcbi8na(string &seq8na)
complement an ncbi8na sequence in place
static EMatch CompareNcbi8na(char s, char q)
determine whether ncbi8na base s is a match to q.
static void FindMatches(const Seq &seq, const Pat &pat, vector< TSeqPos > &definite_matches, vector< TSeqPos > &possible_matches, Match_fun match)
find all places where seq must or might match pat
static EMatch Match(const Seq &seq, const Pat &pat, TSeqPos pos, const Compare_fun compare_fun)
determine whether seq matches pattern pat starting at position pos.
Include a standard set of the NCBI C++ Toolkit most basic headers.
std::ofstream out("events_result.xml")
main entry point for tests
unsigned int TSeqPos
Type for sequence locations and lengths.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_XALGOSEQ_EXPORT
std::istream & in(std::istream &in_, double &x_)
static int match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, uint16_t top_bracket, PCRE2_SIZE frame_size, pcre2_match_data *match_data, match_block *mb)
EMatch operator()(const Seq &seq, const Pat &pat, TSeqPos pos) const
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4