vector<pair<CBioseq_Handle, string> >& handles)
86 size_tblockCount = (seqLength + blockSize - 1) / blockSize;
88vector<ITextItem*> items(blockCount, 0);
90 for(
size_t i= 0;
i< blockCount; ++
i) {
92 size_tfrom =
i*blockSize;
93 size_t count= (
i+ 1 == blockCount) ? seqLength - from : blockSize;
96expanded->
AddItem(
new CExpandItem(seqCollapsed, seqExpanded, (blockCount == 1)),
false);
130 size_tblockCount = (seqLength + blockSize - 1)/blockSize;
132 for(
size_t i= 0;
i< blockCount; ++
i) {
135 size_tfrom = range.
GetFrom() +
i*blockSize;
136 size_t count= (
i+ 1 == blockCount) ? seqLength -
i*blockSize : blockSize;
139expanded->
AddItem(
new CExpandItem(seqCollapsed, seqExpanded, (blockCount == 1)),
false);
static CRef< CScope > m_Scope
void AddItem(ITextItem *item, bool updatePositions=true)
virtual EJobState x_Run()
vector< pair< objects::CBioseq_Handle, string > > m_Handles
virtual ~CFastaRetrieveJob()
CFastaRetrieveJob(CTextPanelContext &context, const vector< pair< objects::CBioseq_Handle, string > > &handles)
void x_DumpBioseq(const objects::CBioseq_Handle &h)
virtual EJobState x_Run()
CConstRef< objects::CSeq_loc > m_Loc
CFastaRetrieveLocJob(CTextPanelContext &context, const objects::CSeq_loc &loc, objects::CScope &scope)
CRef< objects::CScope > m_Scope
virtual ~CFastaRetrieveLocJob()
Seq-loc iterator class â iterates all intervals from a seq-loc in the correct order.
void x_CheckCancelled() const
void x_AddItem(ITextItem *item)
const int kFastaSeqBlockSize
unsigned int TSeqPos
Type for sequence locations and lengths.
EJobState
Job states (describe FSM)
TSeqPos GetBioseqLength(void) const
position_type GetLength(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TFrom GetFrom(void) const
Get the From member data.
static CS_CONTEXT * context
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