A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/suppress__genes_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/packages/pkg_sequence_edit/suppress_genes.cpp Source File

68

wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

72  Create

(parent,

id

, caption, pos,

size

, style);

76 bool CSuppressGenes::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

78

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

84

GetSizer()->SetSizeHints(

this

);

109  ITERATE

(vector<const CFeatListItem *>, ft_it, feat_list) {

112  int

feat_type = item.

GetType

();

114  m_Types

[pair<int,int>(feat_type,feat_subtype)] = desc;

115  if

(existing.

find

(desc) == existing.

end

())

136

wxBoxSizer* itemBoxSizer1 =

new

wxBoxSizer(wxVERTICAL);

137

this->SetSizer(itemBoxSizer1);

139

wxPanel *itemDialog1 =

new

wxPanel(

this

);

140

itemBoxSizer1->Add(itemDialog1, 1, wxGROW, 0);

142

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

143

itemDialog1->SetSizer(itemBoxSizer2);

146

itemBoxSizer2->Add(

m_ListCtrl

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

148  m_ListCtrl

->InsertColumn(0,

" Feature"

,wxLIST_FORMAT_LEFT,237);

154

wxStaticBox* itemStaticBoxSizer17Static =

new

wxStaticBox(itemDialog1,

wxID_ANY

, wxEmptyString);

155

wxStaticBoxSizer* itemStaticBoxSizer17 =

new

wxStaticBoxSizer(itemStaticBoxSizer17Static, wxHORIZONTAL);

156

itemBoxSizer2->Add(itemStaticBoxSizer17, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

158

wxStaticText* itemStaticText4 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Where feature text"

), wxDefaultPosition, wxDefaultSize, 0 );

159

itemStaticBoxSizer17->Add(itemStaticText4, 0, wxALIGN_TOP|wxALL, 5);

167

itemBoxSizer2->Add(OkCancel, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

204  bool

modified =

false

;

211  if

((*xit)->IsSetData() && (*xit)->GetData().IsGene())

214  if

(!(*xit)->GetData().GetGene().IsSuppressed())

216

(*xit)->SetData().SetGene().Reset();

226

gene_ref->SetData().SetGene();

227  f

.SetXref().push_back(gene_ref);

243

list<string> non_refseq;

247

refseq.push_back(*it);

249

non_refseq.push_back(*it);

258  if

(non_refseq.size()) {

259  if

( !accs.empty() ) {

265  if

( !accs.empty() ) {

273  if

( !lines.empty() ) {

274  ITERATE

(list<string>, iter, lines) {

275  if

(iter != lines.begin()) {

276

ostream <<

" "

<< *iter << endl;

278

ostream << *iter << endl;

291

list< CConstRef<CUser_object> > objs;

298

objs.push_back(sub_o);

324

ostream <<

"Model Generation Method: "

;

327

method =

f

->GetData().GetStr();

330

ostream <<

"<unknown>"

;

337  if

(method ==

"Chainer"

|| method ==

"Gnomon"

) {

347  if

( !core.empty() ) {

353  if

( !core.empty() ) {

354

s =

"Model Based On: "

;

356

ostream << s << endl;

378

stringstream& ostream,

const

objects::CSeq_feat& feat, objects::CScope& scope)

384

ostream <<

text

<< endl;

387  TSeqRange

range = feat.GetLocation().GetTotalRange();

388

ostream <<

"Total Range: "

;

405

ostream <<

"Total Length: " 409

ostream <<

"Processed Length: " 414  if

(feat.IsSetProduct()) {

419

ostream <<

"Product Length: " 439  CFeat_CI

feat_it(scope, feat.GetLocation(), sel);

440  for

(; feat_it ; ++feat_it) {

446

string::size_type pos = s.find_first_not_of(

" \n\r\t"

);

447  if

( pos != string::npos ){

451

string::size_type lpos = string::npos;

454

lpos = s.find_first_of(

"\n\r"

, pos );

456  if

( lpos == string::npos ){

457  text

= s.substr( pos );

459  text

= s.substr( pos, lpos - pos );

461

ostream <<

text

<< endl;

463

}

while

( lpos != string::npos );

483

item =

m_ListCtrl

->GetNextItem(item, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);

484  if

( item == -1 )

break

;

489  bool

filter =

false

;

494  else if

(subtypeAnyFlag)

496  int type

= feat->GetOriginalFeature().GetData().Which();

498  string

desc =

m_Types

[pair<int,int>(

type

,subtype)];

502  else if

(feat->GetOriginalFeature().CanGetData())

504  int type

= feat->GetOriginalFeature().GetData().Which();

505  int

subtype = feat->GetOriginalFeature().GetData().GetSubtype();

506  string

desc =

m_Types

[pair<int,int>(

type

,subtype)];

519

go = constraint->DoesTextMatch(

str

.str());

objects::CSeq_entry_Handle m_TopSeqEntry

bool Create(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)

bool GetTopLevelSeqEntryAndProcessor()

CFeatListItem - basic configuration data for one "feature" type.

string GetDescription() const

CFlatFileConfig & SetNeverTranslateCDS(bool val=true)

static string GetSeqFeatText(const CMappedFeat &feat, CScope &scope, const CFlatFileConfig &cfg, CRef< feature::CFeatTree > ftree=null)

namespace ncbi::objects::

void SetStringSelection(const wxString &str)

CRef< edit::CStringConstraint > GetStringConstraint()

CSuppressGenes()

Constructors.

virtual CRef< CCmdComposite > GetCommand()

vector< string > m_Descriptions

vector< bool > m_SubtypeAnyFlag

bool CreateSuppressingGeneXrefs(CSeq_feat &f)

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

static bool ShowToolTips()

Should we show tooltips?

~CSuppressGenes()

Destructor.

void CreateControls()

Creates the controls and sizers.

bool Create(wxWindow *parent, wxWindowID id=14000, const wxString &caption=_("Suppress Genes"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

map< pair< int, int >, string > m_Types

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

CStringConstraintPanel * m_StringConstraintPanel

void Init()

Initialises member variables.

CConstRef< CUser_field > GetFieldRef(const string &str, const string &delim=".", NStr::ECase use_case=NStr::eCase) const

IWorkbench is the central interface in the application framework.

iterator_bool insert(const value_type &val)

const_iterator find(const key_type &key) const

const_iterator end() const

static const char * str(char *buf, int n)

#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

vector< const objects::CFeatListItem * > GetSortedFeatList(objects::CSeq_entry_Handle seh, size_t max=numeric_limits< size_t >::max())

static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)

virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)

Set object to copy of another one.

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)

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...

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.

position_type GetLength(void) const

#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 bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)

Case-insensitive equality of a substring with another string.

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.

TTo GetTo(void) const

Get the To member data.

TFrom GetFrom(void) const

Get the From member data.

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.

bool IsSetExts(void) const

set of extensions; will replace 'ext' field Check if a value has been assigned to Exts data member.

const TExt & GetExt(void) const

Get the Ext member data.

@ e_Other

for historical reasons, 'other' = 'refseq'

where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is orig

static void text(MDB_val *v)

const struct ncbi::grid::netcache::search::fields::SIZE size

void copy(Njn::Matrix< S > *matrix_, const Njn::Matrix< T > &matrix0_)

Utility macros and typedefs for exploring NCBI objects from seqfeat.asn.

#define EDIT_EACH_SEQFEATXREF_ON_SEQFEAT(Itr, Var)

static void s_Render_SeqFeat(stringstream &ostream, const objects::CSeq_feat &feat, objects::CScope &scope)

USING_SCOPE(ncbi::objects)

static void s_RenderAccList(stringstream &ostream, const CUser_field::TData::TStrs &item_data, const string &title)

static void s_Render_Feat_Evidence(stringstream &ostream, const CSeq_feat &feat, CScope &)

#define ID_SUPPRESS_GENES_LISTCTRL

#define ID_SUPPRESS_GENES_OKCANCEL

wxString ToWxString(const string &s)

string ToStdString(const wxString &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