((*id)->IsLocal()) {
53 if((*id)->GetLocal().IsId()) {
56 local= (*id)->GetLocal().GetStr();
62(*id)->GetLabel(&
label);
63x_AddIdString(
label, *
id);
68x_AddIdString(
label, *
id);
72x_AddIdString(
label, *
id);
74 if((*id)->IsGenbank()) {
76 if(pos != string::npos) {
77x_AddIdString(
label.substr(0, pos), *
id);
79}
else if((*id)->IsGeneral()) {
80 const CDbtag& dbtag = (*id)->GetGeneral();
88x_AddIdString(tag_str, *
id);
91x_AddIdString(
"BankIt"+ tag_str, *
id);
93 if(pos != string::npos) {
94 string file= tag_str.substr(0, pos);
95x_AddIdString(
file, *
id);
96x_AddIdString(
"BankIt"+
file, *
id);
97 stringfile_id = tag_str.substr(pos + 1);
99x_AddIdString(file_id, *
id);
107 if(pos != string::npos) {
108 string file= tag_str.substr(0, pos);
109x_AddIdString(
file, *
id);
110 stringfile_id = tag_str.substr(pos + 1);
112x_AddIdString(file_id, *
id);
134vector<string> id_str;
138 if((*id)->IsLocal()) {
139 if((*id)->GetLocal().IsId()) {
142 local= (*id)->GetLocal().GetStr();
148(*id)->GetLabel(&
label);
149id_str.push_back(
label);
152id_str.push_back(
label);
153 if((*id)->IsGenbank()) {
155 if(pos != string::npos) {
156id_str.push_back(
label.substr(0, pos));
158}
else if((*id)->IsGeneral()) {
159 const CDbtag& dbtag = (*id)->GetGeneral();
167id_str.push_back(tag_str);
170id_str.push_back(
"BankIt"+ tag_str);
172 if(pos != string::npos) {
173 string file= tag_str.substr(0, pos);
174id_str.push_back(
file);
175id_str.push_back(
"BankIt"+
file);
176 stringfile_id = tag_str.substr(pos + 1);
178id_str.push_back(file_id);
186 if(pos != string::npos) {
187 string file= tag_str.substr(0, pos);
188id_str.push_back(
file);
189 stringfile_id = tag_str.substr(pos + 1);
191id_str.push_back(file_id);
223vector<CBioseq_Handle> bsh_list;
225 if(!string_constraint) {
234bsh_list.push_back(bsh);
244bsh_list.push_back(bsh);
259}
else if(!string_constraint) {
264 boolany_match =
false;
265 boolall_match =
true;
266 ITERATE(vector<string>, it, id_str) {
268any_match |= this_match;
269all_match &= this_match;
TStringIdHash m_StringIdHash
TStringIdHash m_StringIdLCHash
CSeq_entry_Handle m_SeqEntry
static bool DoesSeqMatchConstraint(CBioseq_Handle bsh, CRef< CStringConstraint > string_constraint)
CRef< CSeq_id > Guess(const string &id_str)
static vector< string > GetIdStrings(CBioseq_Handle bsh)
void x_AddIdString(string id_str, CRef< CSeq_id > id)
vector< CBioseq_Handle > FindMatches(CRef< CStringConstraint > string_constraint)
const string & GetMatchText()
EMatchType GetMatchType()
bool DoesTextMatch(const string &text)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
@ eContent
Untagged human-readable accession or the like.
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
CConstRef< CBioseq > GetCompleteBioseq(void) const
Get the complete bioseq.
CScope & GetScope(void) const
Get scope this handle belongs to.
#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.
static SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)
Find the pattern in the string.
static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive equality of a substring with another string.
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
static string & ToLower(string &str)
Convert string to lower case â string& version.
@ eReverseSearch
Search in a backward direction.
@ eNocase
Case insensitive compare.
static const char label[]
bool IsSetDb(void) const
name of database or system Check if a value has been assigned to Db data member.
const TTag & GetTag(void) const
Get the Tag member data.
bool IsId(void) const
Check if variant Id is selected.
bool IsSetTag(void) const
appropriate tag Check if a value has been assigned to Tag data member.
const TDb & GetDb(void) const
Get the Db member data.
const TStr & GetStr(void) const
Get the variant data.
TId GetId(void) const
Get the variant data.
const TId & GetId(void) const
Get the Id member data.
list< CRef< CSeq_id > > TId
constexpr bool empty(list< Ts... >) noexcept
const string version
version string
double value_type
The numeric datatype used by the parser.
USING_SCOPE(ncbi::objects)
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