CLoaderMakerWithReader(
const string& name,
CHugeAsnReader* reader):
65TRegisterInfo GetRegisterInfo(
void)
68 info.Set(m_RegisterInfo.GetLoader(), m_RegisterInfo.IsCreated());
98 #ifdef DEBUG_HUGE_ASN_LOADER 104 #ifdef DEBUG_HUGE_ASN_LOADER 112 #ifdef DEBUG_HUGE_ASN_LOADER 113cerr <<
MSerial_AsnText<<
"Seq id not found: "<< loading_ids <<
"\n";
124 autoinfo_ptr =
id->GetValue();
127 #ifdef DEBUG_HUGE_ASN_LOADER 153 const string& loader_name,
158CLoaderMakerWithReader maker(loader_name, reader);
160 returnmaker.GetRegisterInfo();
172 if(
info==
nullptr)
174 "CHugeAsnDataLoader::GetSequenceType() sequence not found");
178 "CHugeAsnDataLoader::GetSequenceType() type not set");
200 for(
auto id:
info->m_ids)
203 if(std::find(begin(ids), end(ids), newidh) == ids.end())
205ids.push_back(newidh);
217 for(
autod: descr->
Get())
219 const COrg_ref* org_ref =
nullptr;
223 if(d->GetSource().IsSetOrg())
224org_ref = &d->GetSource().GetOrg();
227org_ref = &d->GetOrg();
236 if(parent != cont.end())
237 returnx_FindTaxId(cont, parent->m_parent_set, parent->m_descr);
User-defined methods of the data storage class.
CTSE_LoadLock GetTSE_LoadLock(const TBlobId &blob_id)
void GetIds(const CSeq_id_Handle &idh, CDataLoader::TIds &ids) override
static TRegisterLoaderInfo RegisterInObjectManager(CObjectManager &om, const string &loader_name, CHugeAsnReader *reader, CObjectManager::EIsDefault is_default=CObjectManager::eNonDefault, CObjectManager::TPriority priority=CObjectManager::kPriority_Default)
TBlobId GetBlobId(const CSeq_id_Handle &idh) override
CRef< CHugeAsnReader > m_reader
TTaxId GetTaxId(const CSeq_id_Handle &idh) override
Request for a taxonomy id of a sequence.
TTSE_LockSet GetRecords(const CSeq_id_Handle &idh, EChoice choice) override
Request from a datasource using handles and ranges instead of seq-loc The TSEs loaded in this call wi...
STypeFound GetSequenceTypeFound(const CSeq_id_Handle &idh) override
TSeqPos GetSequenceLength(const CSeq_id_Handle &idh) override
Request for a length of a sequence.
CSeq_inst::TMol GetSequenceType(const CSeq_id_Handle &idh) override
Request for a type of a sequence Returns CSeq_inst::eMol_not_set if sequence is not known.
CHugeAsnDataLoader(const string &name, CHugeAsnReader *reader)
TTSE_Lock GetBlobById(const TBlobId &blob_id) override
const TBioseqSetInfo * FindTopObject(CConstRef< CSeq_id > seqid) const
auto & GetBiosets() const
virtual CRef< CSeq_entry > LoadSeqEntry(const TBioseqSetInfo &info, eAddTopEntry add_top_entry=eAddTopEntry::yes) const
const TBioseqInfo * FindBioseq(CConstRef< CSeq_id > seqid) const
std::list< TBioseqSetInfo > TBioseqSetList
Data loader exceptions, used by GenBank loader.
void SetSeq_entry(CSeq_entry &entry, CTSE_SetObjectInfo *set_info=0)
bool IsLoaded(void) const
iterator_bool insert(const value_type &val)
unsigned int TSeqPos
Type for sequence locations and lengths.
SStrictId_Tax::TId TTaxId
Taxon id type.
const TSeqPos kInvalidSeqPos
Define special value for invalid sequence position.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
#define MSerial_AsnText
I/O stream manipulators â.
CConstRef< CSeq_id > GetSeqId(void) const
static CSeq_id_Handle GetHandle(const CSeq_id &id)
Normal way of getting a handle, works for any seq-id.
string AsString(void) const
vector< CSeq_id_Handle > TIds
CDataSource * GetDataSource(void) const
EChoice
main blob is blob with sequence all other blobs are external and contain external annotations
EIsDefault
Flag defining if the data loader is included in the "default" group.
CBlobIdFor< const void * > CBlobIdPtr
static void RegisterInObjectManager(CObjectManager &om, CLoaderMaker_Base &loader_maker, CObjectManager::EIsDefault is_default, CObjectManager::TPriority priority)
Register the loader only if the name is not yet registered in the object manager.
#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.
const Tdata & Get(void) const
Get the member data.
EMol
molecule class in living organism
@ e_Org
if all from one organism
@ e_Source
source of materials, includes Org-ref
@ eMol_not_set
> cdna = rna
CRef< objects::CObjectManager > om
Better replacement of GetSequenceType(), this method should be defined in data loaders,...
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