A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/seqid__guesser_8cpp_source.html below:

NCBI C++ ToolKit: src/objtools/edit/seqid_guesser.cpp Source File

52  if

((*id)->IsLocal()) {

53  if

((*id)->GetLocal().IsId()) {

56  local

= (*id)->GetLocal().GetStr();

62

(*id)->GetLabel(&

label

);

63

x_AddIdString(

label

, *

id

);

68

x_AddIdString(

label

, *

id

);

72

x_AddIdString(

label

, *

id

);

74  if

((*id)->IsGenbank()) {

76  if

(pos != string::npos) {

77

x_AddIdString(

label

.substr(0, pos), *

id

);

79

}

else if

((*id)->IsGeneral()) {

80  const CDbtag

& dbtag = (*id)->GetGeneral();

88

x_AddIdString(tag_str, *

id

);

91

x_AddIdString(

"BankIt"

+ tag_str, *

id

);

93  if

(pos != string::npos) {

94  string file

= tag_str.substr(0, pos);

95

x_AddIdString(

file

, *

id

);

96

x_AddIdString(

"BankIt"

+

file

, *

id

);

97  string

file_id = tag_str.substr(pos + 1);

99

x_AddIdString(file_id, *

id

);

107  if

(pos != string::npos) {

108  string file

= tag_str.substr(0, pos);

109

x_AddIdString(

file

, *

id

);

110  string

file_id = tag_str.substr(pos + 1);

112

x_AddIdString(file_id, *

id

);

134

vector<string> id_str;

138  if

((*id)->IsLocal()) {

139  if

((*id)->GetLocal().IsId()) {

142  local

= (*id)->GetLocal().GetStr();

148

(*id)->GetLabel(&

label

);

149

id_str.push_back(

label

);

152

id_str.push_back(

label

);

153  if

((*id)->IsGenbank()) {

155  if

(pos != string::npos) {

156

id_str.push_back(

label

.substr(0, pos));

158

}

else if

((*id)->IsGeneral()) {

159  const CDbtag

& dbtag = (*id)->GetGeneral();

167

id_str.push_back(tag_str);

170

id_str.push_back(

"BankIt"

+ tag_str);

172  if

(pos != string::npos) {

173  string file

= tag_str.substr(0, pos);

174

id_str.push_back(

file

);

175

id_str.push_back(

"BankIt"

+

file

);

176  string

file_id = tag_str.substr(pos + 1);

178

id_str.push_back(file_id);

186  if

(pos != string::npos) {

187  string file

= tag_str.substr(0, pos);

188

id_str.push_back(

file

);

189  string

file_id = tag_str.substr(pos + 1);

191

id_str.push_back(file_id);

223

vector<CBioseq_Handle> bsh_list;

225  if

(!string_constraint) {

234

bsh_list.push_back(bsh);

244

bsh_list.push_back(bsh);

259

}

else if

(!string_constraint) {

264  bool

any_match =

false

;

265  bool

all_match =

true

;

266  ITERATE

(vector<string>, it, id_str) {

268

any_match |= this_match;

269

all_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