Go to the SVN repository for this file.
84vector<double> Pa(seq.size());
85 doublelocal_sum = 0, global_sum = 0;
87 for(
int i= 0;
i< 7;
i++) {
91Pa[3] = local_sum / 7;
93 for(
unsigned int i= 4;
i< seq.size() - 3;
i++) {
97Pa[
i] = local_sum / 7;
100 doubleglobal_mean = global_sum / seq.size();
101 doublethresh =
min(global_mean, 1.0);
110 for(
unsigned int i= 3;
i< seq.size() - 2;
i++) {
111 if(Pa[
i] >= thresh) {
118 if(
count>= min_len) {
123loc->SetInt().SetFrom(begin);
124loc->SetInt().SetTo(end);
135 unsigned intmin_len)
143 unsigned intmin_len)
151 unsigned intmin_len)
153 stringseq_ncbistdaa;
156vec.GetSeqData(0, vec.size(), seq_ncbistdaa);
void x_PredictAGSites(const Seq &seq, CAntigenic::TLocVec &results, int min_len)
vector< CRef< objects::CSeq_loc > > TLocVec
static void PredictSites(const string &seq, TLocVec &results, unsigned int min_len=6)
Predict antigenic determinants from protein sequence according to Kolaskar and Tongaonkar,...
friend void x_PredictAGSites(const Seq &seq, TLocVec &results, int min_len)
static const double sm_Pa_table[26]
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
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