65 list<string> non_refseq;
69 refseq.push_back(*it);
71 non_refseq.push_back(*it);
80 if (non_refseq.size()) {
81 if ( !accs.empty() ) {
87 if ( !accs.empty() ) {
95 if ( !lines.empty() ) {
96 ITERATE (list<string>, iter, lines) {
97 if (iter != lines.begin()) {
98 ostream <<
" " << *iter <<
NewLine();
113 list< CConstRef<CUser_object> > objs;
120 objs.push_back(sub_o);
146 ostream <<
"Model Generation Method: ";
149 method =
f->GetData().GetStr();
152 ostream <<
"<unknown>";
159 if (method ==
"Chainer" || method ==
"Gnomon") {
169 if ( !core.empty() ) {
175 if ( !core.empty() ) {
176 s =
"Model Based On: ";
210 ostream <<
"Total Range: ";
227 ostream <<
"Total Length: "
231 ostream <<
"Processed Length: "
241 ostream <<
"Product Length: "
262 for (; feat_it ; ++feat_it) {
268 string::size_type pos = s.find_first_not_of(
" \n\r\t");
269 if( pos != string::npos ){
273 string::size_type lpos = string::npos;
276 lpos = s.find_first_of(
"\n\r", pos );
278 if( lpos == string::npos ){
279 text = s.substr( pos );
281 text = s.substr( pos, lpos - pos );
285 }
while( lpos != string::npos );
309 const objects::CSeq_feat* seq_feat =
313 <<
CTextStyle(255,0,0,255,255,255,wxTRANSPARENT,
false,
false)
314 <<
"Invalid object: should be Seq-feat";
CFlatFileConfig & SetNeverTranslateCDS(bool val=true)
static string GetSeqFeatText(const CMappedFeat &feat, CScope &scope, const CFlatFileConfig &cfg, CRef< feature::CFeatTree > ftree=null)
CRef< objects::CScope > m_Scope
CConstRef< CObject > m_Object
ESubtype GetSubtype(void) const
namespace ncbi::objects::
void WriteMultiLineText(const string &text)
virtual void x_RenderText(CStyledTextOStream &ostream, CTextPanelContext *context) const
static ITextItem * CreateObject(SConstScopedObject &object, EMode mode)
CTextItemSeq_feat(SConstScopedObject &object, EMode mode)
virtual void x_Indent(CStyledTextOStream &ostream) const
CConstRef< CUser_field > GetFieldRef(const string &str, const string &delim=".", NStr::ECase use_case=NStr::eCase) const
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
static objects::SAnnotSelector GetAnnotSelector(TAnnotFlags flags=0)
request an annotation selector for a given type
static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)
static EAccessionInfo IdentifyAccession(const CTempString &accession, TParseFlags flags=fParse_AnyRaw)
Deduces information from a bare accession a la WHICH_db_accession; may report false negatives on prop...
EAccessionInfo
For IdentifyAccession (below)
TRange GetTotalRange(void) const
TSeqPos GetLength(const CSeq_id &id, CScope *scope)
Get sequence length if scope not null, else return max possible TSeqPos.
ENa_strand GetStrand(const CSeq_loc &loc, CScope *scope=0)
Returns eNa_strand_unknown if multiple Bioseqs in loc Returns eNa_strand_other if multiple strands in...
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
TSeqPos GetBioseqLength(void) const
SAnnotSelector & IncludeFeatSubtype(TFeatSubtype subtype)
Include feature subtype in the search.
const CSeq_feat & GetOriginalFeature(void) const
Get original feature with unmapped location/product.
TObjectType * GetPointer(void) const THROWS_NONE
Get pointer,.
#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.
static string Join(const TContainer &arr, const CTempString &delim)
Join strings using the specified delimiter.
static void Wrap(const string &str, SIZE_TYPE width, IWrapDest &dest, TWrapFlags flags, const string *prefix, const string *prefix1)
@ fWithCommas
Use commas as thousands separator.
const TStr & GetStr(void) const
Get the variant data.
bool IsStr(void) const
Check if variant Str is selected.
bool IsSetType(void) const
type of object within class Check if a value has been assigned to Type data member.
const TData & GetData(void) const
Get the Data member data.
vector< CRef< CUser_field > > TFields
const TStr & GetStr(void) const
Get the variant data.
const TData & GetData(void) const
Get the Data member data.
const TObject & GetObject(void) const
Get the variant data.
const TLabel & GetLabel(void) const
Get the Label member data.
const TType & GetType(void) const
Get the Type member data.
vector< CStringUTF8 > TStrs
vector< CRef< CUser_field > > TData
const TExts & GetExts(void) const
Get the Exts member data.
bool IsSetExt(void) const
user defined structure extension Check if a value has been assigned to Ext data member.
const TLocation & GetLocation(void) const
Get the Location member data.
const TData & GetData(void) const
Get the Data member data.
const TProduct & GetProduct(void) const
Get the Product member data.
bool IsSetExts(void) const
set of extensions; will replace 'ext' field Check if a value has been assigned to Exts data member.
bool IsSetProduct(void) const
product of process Check if a value has been assigned to Product data member.
const TExt & GetExt(void) const
Get the Ext member data.
@ e_Other
for historical reasons, 'other' = 'refseq'
static void text(MDB_val *v)
range(_Ty, _Ty) -> range< _Ty >
void copy(Njn::Matrix< S > *matrix_, const Njn::Matrix< T > &matrix0_)
double f(double x_, const double &y_)
static void s_Render_SeqFeat(CStyledTextOStream &ostream, const CSeq_feat &feat, CScope &scope)
static void s_RenderAccList(CStyledTextOStream &ostream, const CUser_field::TData::TStrs &item_data, const string &title)
static void s_Render_Feat_Evidence(CStyledTextOStream &ostream, const CSeq_feat &feat, CScope &)