}
NCBI_CATCH(
"CMappingObjectLoader - Creating Id mapper.");
76 for( ; idit; ++idit ) {
79 if(src_idh &&
m_IdMap.count(src_idh) == 0) {
109 for( ; idit; ++idit ) {
112genomic_id_set.
insert(idh);
118 for( ; feat_iter; ++feat_iter) {
121 if(feat_iter->IsSetProduct()) {
125 switch(feat_iter->GetData().Which()) {
127transcript_id_set.
insert(idh);
130protein_id_set.
insert(idh);
146vector<CSeq_id_Handle> genomic_ids;
147vector<CSeq_id_Handle> transcript_ids;
148vector<CSeq_id_Handle> protein_ids;
151 if(transcript_id_set.count(*it) == 0 &&
152protein_id_set.count(*it) == 0) {
153genomic_ids.push_back(*it);
158transcript_ids.push_back(*it);
162protein_ids.push_back(*it);
167 if(!genomic_ids.empty())
169(
"Genomic", genomic_ids));
170 if(!transcript_ids.empty())
172(
"Transcript", transcript_ids));
173 if(!protein_ids.empty())
175(
"Protein", protein_ids));
190}
catch(
conststd::exception&) {
198 if(dlg.ShowModal() != wxID_OK)
209 for( ; id_iter; ++id_iter) {
214id_iter->
Assign(*new_id->second.GetSeqId());
User-defined methods of the data storage class.
User-defined methods of the data storage class.
virtual void SetRegistryPath(const string &path)
bool IsRefSeq() const
Is this assembly a RefSeq assembly?
static CRef< CGencollSvc > GetInstance(void)
IdMapper implementation using a GC-Assembly.
EAliasMapping
Mapping destination type.
@ eGenBankAcc
GenBank accession.
@ eRefSeqAcc
RefSeq accession.
void x_CreateMapper(const string &assembly)
unique_ptr< objects::IIdMapper > m_IdMapper
void x_UpdateMap(objects::CSeq_annot &annot)
bool x_ShowMappingDlg(IObjectLoader::TObjects &objects)
Template class for iteration on objects of class C (non-medifiable version)
Template class for iteration on objects of class C.
vector< SObject > TObjects
container_type::const_iterator const_iterator
container_type::iterator iterator
const_iterator begin() const
const_iterator end() const
const_iterator find(const key_type &key) const
iterator_bool insert(const value_type &val)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
#define NCBI_CATCH(message)
Catch CExceptions as well This macro is deprecated - use *_X or *_XX variant instead of it.
void SetData(const TData &data, TIdMap &map, objects::CScope &scope)
vector< pair< string, THandles > > TData
static CSeq_id_Handle GetHandle(const CSeq_id &id)
Normal way of getting a handle, works for any seq-id.
void Assign(const CTypeIteratorBase &it)
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
static CRef< CObjectManager > GetInstance(void)
Return the existing object manager or create one.
void AddDefaults(TPriority pri=kPriority_Default)
Add default data loaders from object manager.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
double value_type
The numeric datatype used by the parser.
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