Class
BamIOContextThe I/O context to use for BAM I/O.
The I/O context to use for BAM I/O.
Defined in | <seqan/bam_io.h> |
---|---|
Signature |
template <typename TNameStore[, typename TNameStoreCache]>
class BamIOContext;
|
Template Parameters
TNameStore |
The name store class. |
---|---|
TNameStoreCache |
The name store cache class. Defaults to NameStoreCache <TNameStore>l;. |
Member Function Overview
-
BamIOContext::BamIOContext();
Constructor.
Interface Function Overview
-
TNameStoreCacheRef nameStore(context);
Return reference to name store from BamIOContext. -
TNameStoreRef nameStoreCache(context);
Return reference to name store cache from BamIOContext.
Member Typedef Overview
-
typedef (...) BamIOContext::TNameStore;
The name store class. -
typedef (...) BamIOContext::TNameStoreCache;
The name store cache class.
Detailed Description
Examples
Creating a BamIOContext for a raw StringSet of CharString.
StringSet<CharString> nameStore; NameStoreCache<StringSet<CharString> > nameStoreCache(nameStore); BamIOContext<StringSet<CharString> > bamIOContext(nameStore, nameStoreCache); // ...
Using a BamIOContext with a FragmentStore.
typedef FragmentStore<>::TContigNameStore TNameStore; typedef NameStoreCache<TNameStore> TNameStoreCache; FragmentStore<> store; // Optionally, do something with store. typedef BamIOContext<TNameStore, TNameStoreCache> TBamIOContext; TBamIOContext bamIOContext(store.contigNameStore, store.contigNameStoreCache); // ...
Member Functions Detail
BamIOContext::BamIOContext();
Constructor.
Only the default constructor is provided.
Interface Functions Detail
TNameStoreCacheRef nameStore(context);
Return reference to name store from BamIOContext.
Parameters
context
|
The BamIOContext to query. |
---|
Returns
TNameStoreCacheRef |
A reference to the TNameStoreCache of the context. |
---|
TNameStoreRef nameStoreCache(context);
Return reference to name store cache from BamIOContext.
Parameters
context
|
The BamIOContext to query. |
---|
Returns
TNameStoreRef |
A reference to the TNameStore of the context. |
---|
Member Typedef Detail
typedef (...) BamIOContext::TNameStore;
The name store class.
typedef (...) BamIOContext::TNameStoreCache;
The name store cache class.