Go to the SVN repository for this file.
42vector<TSeqPos>& starts, vector<TSeqPos>& ends) {
56starts.push_back(res[0]);
57ends.push_back(res[1] - 1);
69vector<TSeqPos>& starts,
70vector<TSeqPos>& ends)
73total_pattern =
"("+ pattern +
")\\1{" 75 Find(seq, total_pattern, starts, ends);
84 int n,
intmin_repeats,
85vector<TSeqPos>& starts,
86vector<TSeqPos>& ends)
89 for(
int i= 0;
i<
n; ++
i) {
static void Find(const string &seq, const string &pattern, vector< TSeqPos > &starts, vector< TSeqPos > &ends)
Find non-overlapping matches of regular expression in sequence.
static void FindNucNmerRepeats(const string &seq, int n, int min_repeats, vector< TSeqPos > &starts, vector< TSeqPos > &ends)
Find all cases of at least min_repeats consecutive occurrences of any n-mer consisting of unambiguous...
static void FindRepeatsOf(const string &seq, const string &pattern, int min_repeats, vector< TSeqPos > &starts, vector< TSeqPos > &ends)
Find cases of at least min_repeats consecutive occurrences of any *particular* match to pattern.
const TOffset * GetResults(size_t idx) const
Get location of pattern/subpattern for the last GetMatch().
CTempString GetMatch(CTempString str, size_t offset=0, size_t idx=0, TMatch flags=fMatch_default, bool noreturn=false)
Get matching pattern and subpatterns.
size_t TOffset
Element type for GetResults().
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
bool empty(void) const
Return true if the represented string is empty (i.e., the length is zero)
C++ wrappers for the Perl-compatible regular expression (PCRE) library.
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