NCBI C++ ToolKit
Functions
multisource_util.cpp File Reference

Utility functions and classes for multisource app. More...

#include <ncbi_pch.hpp>
#include <serial/typeinfo.hpp>
#include <objects/seqloc/seqloc__.hpp>
#include <objtools/blast/seqdb_writer/multisource_util.hpp>
+ Include dependency graph for multisource_util.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

 USING_SCOPE (objects)
 
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 map. More...
 
string AccessionToKey (const string &acc)
 
bool CheckAccession (const string &acc, TGi &gi, CRef< objects::CSeq_id > &seqid, bool &specific)
 
void GetSeqIdKey (const objects::CSeq_id &id, string &key)
 
void GetDeflineKeys (const objects::CBlast_def_line &defline, vector< string > &keys)
 Get all keys for a defline. More...
 

Detailed Description

Utility functions and classes for multisource app.

Definition in file multisource_util.cpp.

Function Documentation

◆ AccessionToKey()

string AccessionToKey ( const string acc)

◆ CheckAccession()

bool CheckAccession ( const string acc,
TGi gi,
CRef< objects::CSeq_id > &  seqid,
bool specific 
)

◆ GetDeflineKeys()

void GetDeflineKeys ( const objects::CBlast_def_line &  defline,
vector< string > &  keys 
)

Get all keys for a defline.

Definition at line 162 of file multisource_util.cpp.

References GetSeqIdKey(), ITERATE, and ncbi::grid::netcache::search::fields::key.

Referenced by CTaxIdSet::x_SelectBestTaxid(), and CBuildDatabase::x_SetLinkAndMbit().

◆ GetSeqIdKey()

void GetSeqIdKey ( const objects::CSeq_id &  id,
string key 
)

◆ MapToLMBits()

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 map.

Definition at line 66 of file multisource_util.cpp.

References AccessionToKey(), ITERATE, and ncbi::grid::netcache::search::fields::key.

Referenced by CBuildDatabase::SetLinkouts(), and CBuildDatabase::SetMembBits().

◆ ReadTextFile()

void ReadTextFile ( CNcbiIstream f,
vector< string > &  lines 
)

Definition at line 43 of file multisource_util.cpp.

References f, and NcbiGetlineEOL().

◆ USING_SCOPE()

USING_SCOPE ( objects  )
Modified on Fri Sep 20 14:57:20 2024 by modify_doxy.py rev. 669887