modified =
false;
53biosource.
SetOrg().ResetCommon();
64biosource.
SetOrg(*new_org);
65 stringnew_name = biosource.
SetOrg().GetTaxname();
66 if(!new_name.empty() && new_name != name)
93vector<string> submit;
98vector<CRef<COrg_ref>> request_list;
99 for(
auto&& it : submit)
104request_list.push_back(new_org);
111 if(reply->IsSetReply() )
113 const auto& ans = reply->GetReply();
114 for(
auto&& it : ans)
117it->GetData().IsSetOrg() &&
118it->GetData().GetOrg().GetTaxId() >= 0)
120org->
Assign(it->GetData().GetOrg());
129vector<string> words;
131 if(words.size() == 1)
133vector<string> subwords;
136 for(
int i= 0;
i< subwords.size() - 1;
i++)
138 stringnew_name = subwords[0];
139 for(
intj = 1; j <=
i; j++)
140new_name +=
"_"+ subwords[j];
141new_name +=
" "+ subwords[
i+1];
142 for(
intj =
i+2; j < subwords.size(); j++)
143new_name +=
"_"+ subwords[j];
144submit.push_back(new_name);
148 if(words.size() == 2)
152 stringnew_name = words[0] +
" "+ words[1] +
" "+ words[2] +
" "+ words[3];
153submit.push_back(new_name);
157 stringnew_name = words[0] +
" "+ words[1] +
" "+ words[2];
158submit.push_back(new_name);
160 if(words.size() >= 2)
162 stringnew_name = words[0] +
" "+ words[1];
163submit.push_back(new_name);
User-defined methods of the data storage class.
const string & GetTaxname(void) const
bool IsSetTaxname(void) const
static void s_PermuteTaxname(const string &name, vector< string > &submit)
static void s_GetNameFromTaxonServer(CRef< objects::COrg_ref > org)
CRef< CCmdComposite > GetCommand(objects::CSeq_entry_Handle tse)
virtual bool x_ApplyToBioSource(objects::CBioSource &biosource)
static bool s_HasTaxId(const objects::CBioSource &)
virtual CRef< CTaxon3_reply > SendOrgRefList(const vector< CRef< COrg_ref > > &list, COrg_ref::fOrgref_parts result_parts=COrg_ref::eOrgref_default, fT3reply_parts t3result_parts=eT3reply_default)
CRef< CCmdComposite > x_GetCommand(objects::CSeq_entry_Handle tse, const string &title)
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
Split a string using specified delimiters.
static bool Equal(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2, ECase use_case=eCase)
Test for equality of a substring with another string.
@ fSplit_Tokenize
All delimiters are merged and trimmed, to get non-empty tokens only.
@ eNocase
Case insensitive compare.
void SetSubtype(TSubtype value)
Assign a value to Subtype data member.
bool IsSetOrg(void) const
Check if a value has been assigned to Org data member.
const TOrg & GetOrg(void) const
Get the Org member data.
void SetOrg(TOrg &value)
Assign a value to Org data member.
void SetName(const TName &value)
Assign a value to Name data member.
TSubtype & SetSubtype(void)
Assign a value to Subtype data member.
const TTaxname & GetTaxname(void) const
Get the Taxname member data.
void SetTaxname(const TTaxname &value)
Assign a value to Taxname data member.
#define EDIT_EACH_ORGMOD_ON_ORGNAME(Itr, Var)
#define ERASE_ORGMOD_ON_ORGNAME(Itr, Var)
ERASE_ORGMOD_ON_ORGNAME.
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