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/rna__panel_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/edit/rna_panel.cpp Source File

32 #include "wx/imaglist.h" 62 #include <wx/bitmap.h> 64 #include <wx/radiobox.h> 65 #include <wx/stattext.h> 66 #include <wx/combobox.h> 67 #include <wx/textctrl.h> 81

IMPLEMENT_DYNAMIC_CLASS(

CRNAPanel

, wxPanel )

104

wxWindowID

id

,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

121 

wxPanel::Create( parent,

id

, pos,

size

, style );

126

GetSizer()->SetSizeHints(

this

);

167

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

168

itemPanel1->SetSizer(itemBoxSizer2);

174

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxHORIZONTAL);

175

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

177

wxStaticText* itemStaticText5 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Transcript Sequence ID"

), wxDefaultPosition, wxDefaultSize, 0 );

178

itemBoxSizer4->Add(itemStaticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

180

wxArrayString m_TranscriptIDStrings;

181  m_TranscriptID

=

new

wxComboBox( itemPanel1,

ID_COMBOBOX1

, wxEmptyString, wxDefaultPosition, wxDefaultSize, m_TranscriptIDStrings, wxCB_DROPDOWN );

183  m_TranscriptID

->SetToolTip(

_

(

"Please use accession and version to specify transcript sequence."

));

184

itemBoxSizer4->Add(

m_TranscriptID

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

193  if

(

rna

.IsSetExt()) {

197

}

else if

(ext.

IsTRNA

()) {

199

}

else if

(ext.

IsGen

()) {

235  size_t

page_index = 0;

250  default

: page_index = 0;

break

;

280  int match

= -1, pos = 0;

281

wxArrayString TranscriptIDs;

292  if

(id_it->GetSeqId()->Compare(*transcript_id) ==

CSeq_id::e_YES

) {

309

}

else if

(transcript_id) {

322  id

.GetLabel(&id_label);

329  while

(pos < num_digits_expected && pos <

str

.length() &&

isdigit

(

str

.c_str()[pos])) {

332  if

(pos < num_digits_expected) {

334

}

else if

(pos ==

str

.length()) {

336

}

else if

(

str

.c_str()[pos] !=

'.'

) {

340  if

(pos ==

str

.length()) {

343  while

(pos <

str

.length()) {

361  if

(id_str.length() > 8

364

&& id_str.c_str()[2] ==

'_' 366

tid =

new CSeq_id

(

"ref|"

+ id_str);

367

}

else if

(id_str.length() >= 8

373

tid =

new CSeq_id

(

"gb|"

+ id_str);

376

tid =

new CSeq_id

(

"lcl|"

+ id_str);

389  rna

.SetExt().SetName(name);

396  bool result

= wxPanel::TransferDataFromWindow();

404  rna

.SetExt().Reset();

408  switch

(page_index) {

460  if

(

NStr::Find

(transcript_id,

"|"

) == string::npos) {

464

tid = (

new CSeq_id

(transcript_id));

470

seq_feat.

SetProduct

().SetWhole().Assign(*tid);

479  bool result

= wxPanel::TransferDataToWindow();

static CRef< CScope > m_Scope

User-defined methods of the data storage class.

User-defined methods of the data storage class.

CRNAPanel()

Constructors.

virtual bool TransferDataToWindow()

CRef< objects::CRNA_gen > m_ncRNAGen

static bool ShowToolTips()

Should we show tooltips?

bool Create(wxWindow *parent, wxWindowID id=ID_CRNAPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)

Creation.

void Init()

Initialises member variables.

void x_PopulateTranscriptID()

void SetGBQualPanel(CGBQualPanel *gbqual_panel)

objects::CScope * m_Scope

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

virtual bool TransferDataFromWindow()

wxComboBox * m_TranscriptID

void CreateControls()

Creates the controls and sizers.

CRef< objects::CTrna_ext > m_trna

static void x_GetLabelForSeqID(const objects::CSeq_id &id, string &id_label)

CRef< objects::CRNA_gen > m_tmRNAGen

wxChoicebook * m_Choicebook

@RNA_ref.hpp User-defined methods of the data storage class.

namespace ncbi::objects::

Base class for all serializable objects.

void SetRnaName(wxString value)

wxString GetRnaName() const

void SetRnaName(wxString value)

wxString GetRnaName() const

void SetGBQualPanel(CGBQualPanel *gbqual_panel)

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

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

virtual const CTypeInfo * GetThisTypeInfo(void) const =0

@ e_YES

SeqIds compared, but are different.

const CSeq_id * GetId(void) const

Get the id of the location return NULL if has multiple ids or no id at all.

CBioseq_Handle GetBioseqHandle(const CSeq_id &id)

Get bioseq handle by seq-id.

vector< CSeq_entry_Handle > TTSE_Handles

vector< CSeq_id_Handle > TId

CConstRef< C > ConstRef(const C *object)

Template function for conversion of const object pointer to CConstRef.

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)

Check if a string is blank (has no text).

static SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)

Find the pattern in the string.

static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)

Check if a string starts with a specified prefix value.

const string & GetName(void) const

Get name of this type.

TStr & SetStr(void)

Select the variant.

bool IsSetProduct(void) const

Check if a value has been assigned to Product data member.

bool IsTRNA(void) const

Check if variant TRNA is selected.

EType

type of RNA feature

bool IsGen(void) const

Check if variant Gen is selected.

const TGen & GetGen(void) const

Get the variant data.

const TName & GetName(void) const

Get the variant data.

const TProduct & GetProduct(void) const

Get the Product member data.

const TTRNA & GetTRNA(void) const

Get the variant data.

bool IsName(void) const

Check if variant Name is selected.

@ eType_scRNA

will become ncRNA, with RNA-gen.class = scRNA

@ eType_snoRNA

will become ncRNA, with RNA-gen.class = snoRNA

@ eType_ncRNA

non-coding RNA; subsumes snRNA, scRNA, snoRNA

@ eType_snRNA

will become ncRNA, with RNA-gen.class = snRNA

void SetProduct(TProduct &value)

Assign a value to Product data member.

void SetData(TData &value)

Assign a value to Data data member.

const TProduct & GetProduct(void) const

Get the Product member data.

void ResetProduct(void)

Reset Product data member.

bool IsSetProduct(void) const

product of process Check if a value has been assigned to Product data member.

TLocal & SetLocal(void)

Select the variant.

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

static int match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, uint16_t top_bracket, PCRE2_SIZE frame_size, pcre2_match_data *match_data, match_block *mb)

static bool s_EndsWithDigitsAndVersion(string str, int num_digits_expected)

void x_SetNameFromName(const wxString &input_name, CRNA_ref &rna)

static CRef< CSeq_id > s_GuessId(const string &id_str, CScope *scope)

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