70 if (
m_Bsh.IsSetInst()) {
83 lines.push_back(
kSpaces +
"Bioseq: " + descr);
84 lines.push_back(
kSpaces + name);
87 lines.push_back(
kSpaces + name);
97 return CBioseq::GetTypeInfo()->GetName();
108 return m_Bsh.GetSeq_entry_Handle();
138 name.assign(
"empty bioseqset");
142 lines.push_back(
kSpaces +
"BioseqSet: " + classString);
143 lines.push_back(
kSpaces + name);
149 return CBioseq_set::GetTypeInfo()->GetName();
160 return m_Bssh.GetParentEntry();
167 switch (
m_Bssh.GetClass()) {
194 label +=
"Annotations ";
197 label +=
"Deletions ";
204 lines.push_back(
label);
207 if (
m_Submit->GetSub().IsSetContact()) {
208 if (
m_Submit->GetSub().GetContact().IsSetContact()) {
213 lines.push_back(
kSpaces + name);
223 return CSeq_submit::GetTypeInfo()->GetName();
258 return CContact_info::GetTypeInfo()->GetName();
293 return CCit_sub::GetTypeInfo()->GetName();
406 return TLines{
"unrecognized descriptor" };
425 for (
auto& it : modif) {
434 return CSeqdesc::GetTypeInfo()->GetName();
445 : m_Annoth(annoth), m_Colour(*wxBLUE)
447 bool contains_farpointers =
false;
448 for (
CAlign_CI align_it(
m_Annoth); align_it && !contains_farpointers; ++align_it) {
453 if (contains_farpointers) {
462 return TLines{
"No annotation data" };
467 return TLines{
" Feature Table" };
469 return TLines{
" Alignments" };
471 return TLines{
" Graphs" };
476 return TLines{
" Other annotation" };
481 return CSeq_annot::GetTypeInfo()->GetName();
499 if (
prot.IsSetName() && !
prot.GetName().empty()) {
500 return prot.GetName().front();
519 for (
auto& it : fh.
GetXref()) {
520 if (it->IsSetData() && it->GetData().IsProt()) {
532 m_Feath.GetLocation().GetLabel(&loc_label);
535 if (
m_Feath.GetData().IsCdregion()) {
537 if (!prot_name.empty()) {
540 m_Feath.GetProduct().GetLabel(&prod_label);
542 lines.push_back(
kSpaces +
"CDS: " + prot_name);
551 lines.push_back(
kSpaces + feat_label);
558 return CSeq_feat::GetTypeInfo()->GetName();
577 : m_Alignh(ah), m_Colour(*wxBLUE)
588 bool contains_farpointer =
false;
598 contains_farpointer =
true;
602 return contains_farpointer;
623 return CSeq_align::GetTypeInfo()->GetName();
651 return CSeq_graph::GetTypeInfo()->GetName();
User-defined methods of the data storage class.
User-defined methods of the data storage class.
@ eBoth
Both preliminary and traceback stages.
virtual const string & GetType() const
CDesktopAlignItem(const objects::CSeq_align_Handle &ah)
objects::CSeq_align_Handle m_Alignh
virtual TLines GetDescription(bool root=false) const
static bool s_ContainsFarPointers(const objects::CSeq_align_Handle &ah)
virtual objects::CSeq_entry_Handle GetSeqentryHandle() const
virtual const CObject * GetObject(void) const
virtual const CObject * GetObject(void) const
objects::CSeq_annot_Handle m_Annoth
virtual TLines GetDescription(bool root=false) const
virtual objects::CSeq_entry_Handle GetSeqentryHandle() const
virtual const string & GetType() const
CDesktopAnnotItem(const objects::CSeq_annot_Handle &annoth)
CDesktopBioseqItem(const objects::CBioseq_Handle &bsh)
virtual objects::CSeq_entry_Handle GetSeqentryHandle() const
objects::CBioseq_Handle m_Bsh
virtual TLines GetDescription(bool root=false) const
virtual const string & GetType() const
virtual const CObject * GetObject(void) const
virtual const CObject * GetObject(void) const
CDesktopBioseqsetItem(const objects::CBioseq_set_Handle &bssh)
virtual TLines GetDescription(bool root=false) const
virtual const string & GetType() const
objects::CBioseq_set_Handle m_Bssh
virtual objects::CSeq_entry_Handle GetSeqentryHandle() const
virtual const string & GetType() const
CConstRef< objects::CCit_sub > m_CitSub
CRef< objects::CScope > m_Scope
CConstRef< objects::CSeq_submit > m_Submit
const objects::CSubmit_block & GetSubmitBlock() const
virtual TLines GetDescription(bool root=false) const
virtual const CObject * GetObject(void) const
virtual objects::CSeq_entry_Handle GetSeqentryHandle() const
virtual const string & GetType() const
virtual const CObject * GetObject(void) const
virtual TLines GetDescription(bool root=false) const
objects::CSeq_feat_Handle m_Feath
static const string & s_GetProteinName(const objects::CSeq_feat_Handle &fh)
virtual objects::CSeq_entry_Handle GetSeqentryHandle() const
virtual const CObject * GetObject(void) const
virtual objects::CSeq_entry_Handle GetSeqentryHandle() const
virtual TLines GetDescription(bool root=false) const
virtual const string & GetType() const
objects::CSeq_graph_Handle m_Graphh
virtual const string & GetType() const
virtual TLines GetDescription(bool root=false) const
CRef< objects::CScope > m_Scope
CConstRef< objects::CSeq_submit > m_Submit
virtual const CObject * GetObject(void) const
virtual objects::CSeq_entry_Handle GetSeqentryHandle() const
virtual const CObject * GetObject(void) const
CConstRef< objects::CSeqdesc > m_Seqdesc
virtual TLines GetDescription(bool root=false) const
virtual const string & GetType() const
static TLines s_GetDescription(const objects::CUser_object &user_obj)
void GetLabel(string *label, ETypeLabel type=eGenbank) const
CRef< CSeq_loc > CreateRowSeq_loc(TDim row) const
const CSeq_id & GetSeq_id(TDim row) const
Get seq-id (the first one if segments have different ids).
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
static const string & s_GetProtRefName(const CProt_ref &prot)
static const CTempString kSpaces(" ")
#define ENUM_METHOD_NAME(EnumName)
string GetSeqIdString(bool with_version=false) const
Return seqid string with optional version for text seqid type.
void GetLabel(string *label, ELabelType type=eDefault, TLabelFlags flags=fLabel_Default) const
Append a label for this Seq-id to the supplied string.
CConstRef< CSeq_id > GetSeqId(void) const
string GetLabel(const CSeq_id &id)
@ eBoth
Type and content, delimited by a vertical bar.
void GetLabel(string *label) const
Appends a label suitable for display (e.g., error messages) label must point to an existing string ob...
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,...
@ eGetId_Best
return the "best" gi (uses FindBestScore(), with CSeq_id::CalculateScore() as the score function
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
const CSeq_feat::TXref & GetXref(void) const
const CSeqFeatData & GetData(void) const
bool IsSetXref(void) const
CSeq_entry_Handle GetSeq_entry_Handle(void) const
Get parent Seq-entry handle.
virtual const CSeq_loc & GetProduct(void) const
bool IsSetProduct(void) const
CConstRef< CSeq_align > GetSeq_align(void) const
Get const reference to current seq-align.
CSeq_entry_Handle GetParentEntry(void) const
Get parent Seq-entry handle.
CScope & GetScope(void) const
Get scope this handle belongs to.
const CSeq_annot_Handle & GetAnnot(void) const
Get handle to the seq-annot.
CSeq_entry_Handle GetTopLevelEntry(void) const
Get top level Seq-entry handle.
TObjectType * GetPointerOrNull(void) const THROWS_NONE
Get pointer value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
static const char label[]
const TName & GetName(void) const
Get the Name member data.
bool IsSetName(void) const
Author, Primary or Secondary Check if a value has been assigned to Name data member.
bool IsStr(void) const
Check if variant Str is selected.
bool CanGetClass(void) const
Check if it is safe to call GetClass method.
const TClass & GetClass(void) const
Get the Class member data.
const TStr & GetStr(void) const
Get the variant data.
const TType & GetType(void) const
Get the Type member data.
bool CanGetCommon(void) const
Check if it is safe to call GetCommon method.
const TTaxname & GetTaxname(void) const
Get the Taxname member data.
const TCommon & GetCommon(void) const
Get the Common member data.
bool CanGetTaxname(void) const
Check if it is safe to call GetTaxname method.
TDim GetDim(void) const
Get the Dim member data.
bool IsSetDim(void) const
dimensionality Check if a value has been assigned to Dim data member.
const TProt & GetProt(void) const
Get the variant data.
const TLoc & GetLoc(void) const
Get the Loc member data.
@ eClass_nuc_prot
nuc acid and coded proteins
@ eClass_genbank
converted genbank
TRepr GetRepr(void) const
Get the Repr member data.
EGIBB_method
sequencing methods
bool IsSetData(void) const
Check if a value has been assigned to Data data member.
TLength GetLength(void) const
Get the Length member data.
TMol GetMol(void) const
Get the Mol member data.
EGIBB_mod
GenInfo Backbone modifiers.
const TData & GetData(void) const
Get the Data member data.
EGIBB_mol
type of molecule represented
E_Choice Which(void) const
Which variant is currently selected.
@ e_Embl
EMBL specific information.
@ e_Het
cofactor, etc associated but not bound
@ e_Org
if all from one organism
@ e_Num
a numbering system
@ e_User
user defined object
@ e_Update_date
date of last update
@ e_Pub
a reference to the publication
@ e_Pir
PIR specific info.
@ e_Genbank
GenBank specific info.
@ e_Prf
PRF specific information.
@ e_Mol_type
type of molecule
@ e_Sp
SWISSPROT specific info.
@ e_Dbxref
xref to other databases
@ e_Comment
a more extensive comment
@ e_Method
sequencing method
@ e_Modelev
model evidence for XM records
@ e_Region
overall region (globin locus)
@ e_Molinfo
info on the molecule and techniques
@ e_Maploc
map location of this sequence
@ e_Create_date
date entry first created/released
@ e_Title
a title for this sequence
@ e_Pdb
PDB specific information.
@ e_Name
a name for this sequence
@ e_Source
source of materials, includes Org-ref
list< CRef< CSeq_entry > > TEntrys
unsigned int
A callback function used to compare two keys in a database.
Generic utility macros and templates for exploring NCBI objects.
#define GET_FIELD_OR_DEFAULT(Var, Fld, Dflt)
GET_FIELD_OR_DEFAULT base macro.
#define row(bind, expected)
static wxAcceleratorEntry entries[3]