vector<string> & lines)
53 while(
f&& (!
f.eof())) {
69 intbitnum = iter1->first;
70 constvector<string> & v = iter1->second;
72 ITERATE(vector<string>, iter2, v) {
76id2links[
key] |= bitnum;
86 boolspecific(
false);
91 if(seqid.
Empty()) {
99 stringtempID =
"lcl|"+ acc;
119 booldigits = !! acc.size();
121 for(
unsigned i= 0;
i< acc.size();
i++) {
129gi = NStr::StringToNumeric<TGi>(acc);
163vector<string> & keys)
170keys.push_back(
key);
static const char * str(char *buf, int n)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
@ fLabel_GeneralDbIsContent
For type general, use the database name as the tag and the (text or numeric) key as the content.
@ eContent
Untagged human-readable accession or the like.
void Reset(void)
Reset reference object.
bool Empty(void) const THROWS_NONE
Check if CRef is empty â not pointing to any object, which means having a null value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
CNcbiIstream & NcbiGetlineEOL(CNcbiIstream &is, string &str, string::size_type *count=NULL)
Read from "is" to "str" the next line (taking into account platform specifics of End-of-Line)
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
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.
list< CRef< CSeq_id > > TSeqid
bool IsSetVersion(void) const
Check if a value has been assigned to Version data member.
string AccessionToKey(const string &acc)
bool CheckAccession(const string &acc, TGi &gi, CRef< objects::CSeq_id > &seqid, bool &specific)
void GetDeflineKeys(const objects::CBlast_def_line &defline, vector< string > &keys)
Get all keys for a defline.
void ReadTextFile(CNcbiIstream &f, vector< string > &lines)
void MapToLMBits(const TLinkoutMap &gilist, TIdToBits &id2links)
Read a set of GI lists, each a vector of strings, and combine the bits into the resulting linkbits ma...
void GetSeqIdKey(const objects::CSeq_id &id, string &key)
const struct ncbi::grid::netcache::search::fields::KEY key
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