( ; align_iter; ++align_iter) {
62 const CSeq_align& align = align_iter.GetOriginalSeq_align();
73 "Annotation is not a seq-align");
159TAlignments::const_iterator end)
161 for(TAlignments::const_iterator iter = begin; iter != end; ++iter) {
163 if(proxy.
align->IsSetScore()) {
165 const CScore& score = **score_iter;
205 staticwxString s(
wxT(
"Description"));
212 staticwxString s(
wxT(
"Type"));
219 staticwxString s(
wxT(
"Seq1 Start"));
226 staticwxString s(
wxT(
"Seq1 Stop"));
233 staticwxString s(
wxT(
"Seq2 Start"));
240 staticwxString s(
wxT(
"Seq2 Stop"));
247 staticwxString s(
wxT(
"# Sequences"));
254 staticwxString s(
wxT(
"Aligned Length"));
261 staticwxString s(
wxT(
"Mismatches"));
268 staticwxString s(
wxT(
"GapCount"));
279 staticwxString s(
wxT(
"Unknown Score"));
292 return wxT(
"string");
302 return wxT(
"int");
305 return wxT(
"double");
315 "CAlnTableDS::GetValueAt(): Array index out-of-bounds");
322 if(aln.
label.empty()) {
328 if(aln.
type.empty()) {
390 if(aln.
align->GetNamedScore(it->second, f_score)) {
391 return(
float)f_score;
394 if(aln.
align->GetNamedScore(it->second, i_score)) {
395 return(
float)i_score;
408 for( ; id_iter; ++id_iter) {
412 return(
int)id_set.
size();
440range = proxy.
align->GetSeqRange(1);
475 "CAlnTableDS::GetData(): Array index out-of-bounds");
User-defined methods of the data storage class.
int x_GetNumSeqs(const SAlignment &proxy) const
void x_GetStartStop(const SAlignment &proxy) const
TScoreColIndices m_ColIndices
virtual wxString GetColumnType(int aColIx) const
Tries to extract actual type from row 0 value if it exists.
void Add(objects::CScope &scope, const objects::CSeq_align &aln)
void x_GetSeqLength(const SAlignment &proxy) const
TScoreColNames m_ColNames
virtual int GetNumColumns() const
Returns the number of columns in the model.
void x_AddAlign(objects::CScope &scope, const objects::CSeq_align &align)
void x_GetMismatchCount(const SAlignment &proxy) const
TAlignments m_Alignments
the alignments we represent
const SAlignment & GetData(size_t row) const
access a given row's data
virtual wxString GetColumnName(int aColIx) const
Returns a default name for the column using spreadsheet conventions: A, B, C, ...
vector< SAlignment > TAlignments
void x_GetGapCount(const SAlignment &proxy) const
const TAlignments & GetAlignments(void) const
virtual wxVariant GetValueAt(int i, int j) const
virtual int GetNumRows() const
Returns the number of rows in the model.
TSeqPos GetAlignLength(const CSeq_align &align, bool ungapped=false)
Compute the length of the alignment (= length of all segments, gaps + aligned)
int GetGapCount(const CSeq_align &align)
Compute the number of gaps in the alignment.
int GetMismatchCount(CScope &scope, const CSeq_align &align)
Compute the number of mismatches in the alignment.
Template class for iteration on objects of class C (non-medifiable version)
virtual void x_FireDataChanged()
container_type::const_iterator const_iterator
container_type::iterator iterator
const_iterator end() const
const_iterator find(const key_type &key) const
iterator_bool insert(const value_type &val)
static const char * str(char *buf, int n)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)
static CSeq_id_Handle GetHandle(const CSeq_id &id)
Normal way of getting a handle, works for any seq-id.
void Reset(void)
Reset reference object.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
TTo GetTo(void) const
Get the To member data.
TFrom GetFrom(void) const
Get the From member data.
bool IsStr(void) const
Check if variant Str is selected.
const TStr & GetStr(void) const
Get the variant data.
TId GetId(void) const
Get the variant data.
vector< CRef< CScore > > TScore
bool IsDisc(void) const
Check if variant Disc is selected.
list< CRef< CSeq_align > > Tdata
const TDisc & GetDisc(void) const
Get the variant data.
const TId & GetId(void) const
Get the Id member data.
const Tdata & Get(void) const
Get the member data.
const TSegs & GetSegs(void) const
Get the Segs member data.
bool IsAlign(void) const
Check if variant Align is selected.
list< CRef< CSeq_align > > TAlign
const TAlign & GetAlign(void) const
Get the variant data.
const TData & GetData(void) const
Get the Data member data.
#define row(bind, expected)
the alignment we store with its parsed data
CRef< objects::CScope > scope
CConstRef< objects::CSeq_align > align
wxString ToWxString(const string &s)
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