CBulkCmdPanel::Create( parent,
id, pos,
size, style );
112GetSizer()->SetSizeHints(
this);
163wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxHORIZONTAL);
164itemCBulkCmdPanel1->SetSizer(itemBoxSizer2);
166itemBoxSizer2->Add(0, 500, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);
168wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxVERTICAL);
169itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
171wxStaticBox* itemStaticBoxSizer5Static =
newwxStaticBox(itemCBulkCmdPanel1,
wxID_ANY,
_(
"RNA Type"));
172wxStaticBoxSizer* itemStaticBoxSizer5 =
newwxStaticBoxSizer(itemStaticBoxSizer5Static, wxVERTICAL);
173itemBoxSizer4->Add(itemStaticBoxSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
175wxArrayString m_RNATypeStrings;
176m_RNATypeStrings.Add(
_(
"preRNA"));
177m_RNATypeStrings.Add(
_(
"mRNA"));
178m_RNATypeStrings.Add(
_(
"tRNA"));
179m_RNATypeStrings.Add(
_(
"rRNA"));
180m_RNATypeStrings.Add(
_(
"ncRNA"));
181m_RNATypeStrings.Add(
_(
"tmRNA"));
182m_RNATypeStrings.Add(
_(
"miscRNA"));
183 m_RNAType=
newwxChoice( itemStaticBoxSizer5->GetStaticBox(),
ID_CHOICE1, wxDefaultPosition, wxDefaultSize, m_RNATypeStrings, 0 );
184 m_RNAType->SetStringSelection(
_(
"rRNA"));
185itemStaticBoxSizer5->Add(
m_RNAType, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
187wxBoxSizer* itemBoxSizer7 =
newwxBoxSizer(wxHORIZONTAL);
188itemStaticBoxSizer5->Add(itemBoxSizer7, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
190wxStaticText* itemStaticText8 =
newwxStaticText( itemStaticBoxSizer5->GetStaticBox(), wxID_STATIC,
_(
"ncRNA class"), wxDefaultPosition, wxDefaultSize, 0 );
191itemBoxSizer7->Add(itemStaticText8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
193wxArrayString m_ncRNAClassStrings;
194 m_ncRNAClass=
newwxComboBox( itemStaticBoxSizer5->GetStaticBox(),
ID_COMBOBOX, wxEmptyString, wxDefaultPosition, wxDefaultSize, m_ncRNAClassStrings, wxCB_DROPDOWN );
196itemBoxSizer7->Add(
m_ncRNAClass, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
199itemBoxSizer4->Add(
m_FieldSizer, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
201wxStaticText* itemStaticText11 =
newwxStaticText( itemCBulkCmdPanel1, wxID_STATIC,
_(
"RNA Name"), wxDefaultPosition, wxDefaultSize, 0 );
202 m_FieldSizer->Add(itemStaticText11, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
207wxStaticText* itemStaticText13 =
newwxStaticText( itemCBulkCmdPanel1, wxID_STATIC,
_(
"Comment"), wxDefaultPosition, wxDefaultSize, 0 );
208 m_FieldSizer->Add(itemStaticText13, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
210 m_Comment=
newwxTextCtrl( itemCBulkCmdPanel1,
ID_TEXTCTRL10, wxEmptyString, wxDefaultPosition, wxSize(300, 70), wxTE_MULTILINE );
214itemBoxSizer4->Add(
m_ButtonsSizer, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
216wxButton* itemButton16 =
newwxButton( itemCBulkCmdPanel1,
ID_BUTTON11,
_(
"Add '18S-ITS-5.8S-ITS-28S' to comment"), wxDefaultPosition, wxDefaultSize, 0 );
217 m_ButtonsSizer->Add(itemButton16, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
219wxButton* itemButton17 =
newwxButton( itemCBulkCmdPanel1,
ID_BUTTON12,
_(
"Add '16S-IGS-23S' to comment"), wxDefaultPosition, wxDefaultSize, 0 );
220 m_ButtonsSizer->Add(itemButton17, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
225itemBoxSizer4->Add(
m_Location, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
230 ITERATE(vector<string>, it, class_vals) {
293wxStaticText* itemStaticText11 =
newwxStaticText(
this, wxID_STATIC,
_(
"Gene Symbol"), wxDefaultPosition, wxDefaultSize, 0 );
294 m_FieldSizer->Add(itemStaticText11, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
296 m_Locus=
newwxTextCtrl(
this,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(300, -1), 0 );
297 m_FieldSizer->Add(
m_Locus, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
299wxStaticText* itemStaticText13 =
newwxStaticText(
this, wxID_STATIC,
_(
"Gene Description"), wxDefaultPosition, wxDefaultSize, 0 );
300 m_FieldSizer->Add(itemStaticText13, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
302 m_GeneDesc=
newwxTextCtrl(
this,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(300, -1), 0 );
314 boolneed_layout =
false;
316 while(num_items > 4) {
317 autopos = num_items - 1;
331 boolneed_layout =
false;
334wxArrayString m_NameStrings;
335m_NameStrings.Add(
_(
"16S ribosomal RNA"));
336m_NameStrings.Add(
_(
"18S ribosomal RNA"));
337m_NameStrings.Add(
_(
"23S ribosomal RNA"));
338m_NameStrings.Add(
_(
"26S ribosomal RNA"));
339m_NameStrings.Add(
_(
"28S ribosomal RNA"));
340m_NameStrings.Add(
_(
"5.8S ribosomal RNA"));
341m_NameStrings.Add(
_(
"large subunit ribosomal RNA"));
342m_NameStrings.Add(
_(
"small subunit ribosomal RNA"));
343 m_rRNAname=
newwxComboBox(
this,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, m_NameStrings, wxCB_DROPDOWN );
358 boolneed_layout =
false;
366 if(!buttons_shown) {
380wxArrayString m_tRNAStrings;
381m_tRNAStrings.Add(
_(
"A Alanine"));
382m_tRNAStrings.Add(
_(
"B Asp or Asn"));
383m_tRNAStrings.Add(
_(
"C Cysteine"));
384m_tRNAStrings.Add(
_(
"D Aspartic Acid"));
385m_tRNAStrings.Add(
_(
"E Glutamic Acid"));
386m_tRNAStrings.Add(
_(
"F Phenylalanine"));
387m_tRNAStrings.Add(
_(
"G Glycine"));
388m_tRNAStrings.Add(
_(
"H Histidine"));
389m_tRNAStrings.Add(
_(
"I Isoleucine"));
390m_tRNAStrings.Add(
_(
"J Leu or Ile"));
391m_tRNAStrings.Add(
_(
"K Lysine"));
392m_tRNAStrings.Add(
_(
"L Leucine"));
393m_tRNAStrings.Add(
_(
"M Methionine"));
394m_tRNAStrings.Add(
_(
"N Asparagine"));
395m_tRNAStrings.Add(
_(
"O Pyrrolysine"));
396m_tRNAStrings.Add(
_(
"P Proline"));
397m_tRNAStrings.Add(
_(
"Q Glutamine"));
398m_tRNAStrings.Add(
_(
"R Arginine"));
399m_tRNAStrings.Add(
_(
"S Serine"));
400m_tRNAStrings.Add(
_(
"T Threonine"));
401m_tRNAStrings.Add(
_(
"U Selenocysteine"));
402m_tRNAStrings.Add(
_(
"V Valine"));
403m_tRNAStrings.Add(
_(
"W Tryptophan"));
404m_tRNAStrings.Add(
_(
"X Undetermined or atypical"));
405m_tRNAStrings.Add(
_(
"Y Tyrosine"));
406m_tRNAStrings.Add(
_(
"Z Glu or Gln"));
407 m_tRNAname=
newwxChoice(
this,
wxID_ANY, wxDefaultPosition, wxDefaultSize, m_tRNAStrings, 0 );
425 m_RNAname=
newwxTextCtrl(
this,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(300, -1), 0 );
447comment +=
"contains small subunit ribosomal RNA, internal transcribed spacer 1, 5.8S ribosomal RNA, internal transcribed spacer 2, and large subunit ribosomal RNA";
462comment +=
"contains 16S ribosomal RNA, 16S-23S ribosomal RNA intergenic spacer, and 23S ribosomal RNA";
469 rna->SetExt().SetTRNA();
474 char a= aa.c_str()[0];
475 rna->SetExt().SetTRNA().SetAa().SetNcbieaa(
a);
514 stringrna_name =
"";
536objects::CBioseq_CI b_iter(
m_TopSeqEntry, objects::CSeq_inst::eMol_na);
537 for( ; b_iter ; ++b_iter ) {
551 stringgene_symbol =
"";
555 stringgene_desc =
"";
566rna_ref->
SetExt().SetGen();
568rna_ref->
SetExt().SetGen().SetProduct(rna_name);
571rna_ref->
SetExt().SetGen().SetClass(ncrna_class);
581rna_ref->
SetExt().SetName(rna_name);
588 rna->SetData().SetRna().Assign(*rna_ref);
594 rna->SetComment(comment);
597 rna->SetLocation().Assign(*loc);
600 rna->SetPartial(
true);
607new_gene->SetData().SetGene().SetLocus(gene_symbol);
608new_gene->SetData().SetGene().SetDesc(gene_desc);
609new_gene->SetLocation().Assign(*loc);
612new_gene->SetPartial(
true);
623 return "Must specify rRNA product name!";
625 return "Unknown error";
@ eExtreme_Biological
5' and 3'
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
USING_SCOPE(ncbi::objects)
static void s_SettRNAProduct(string aa, CRef< CRNA_ref > rna)
CBulkLocationPanel * m_Location
bool m_add_location_panel
virtual bool ShouldAddToExisting()
virtual CRef< objects::CSeq_loc > GetLocForBioseq(const objects::CBioseq &bioseq)
wxBoxSizer * m_ButtonsSizer
virtual string GetErrorMessage()
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnAdd16StoComment(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON12
wxBoxSizer * m_RNANameSizer
wxFlexGridSizer * m_FieldSizer
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
objects::CRNA_ref::TType x_GetRnaType()
void CreateControls()
Creates the controls and sizers.
objects::CSeq_entry_Handle m_TopSeqEntry
bool Create(wxWindow *parent, wxWindowID id=10062, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
~CBulkRNAAddPanel()
Destructor.
bool x_RemoveGeneFields()
void Init()
Initialises member variables.
wxComboBox * m_ncRNAClass
void AddOneCommand(const objects::CBioseq_Handle &bsh, CRef< CCmdComposite > cmd) override
CBulkRNAAddPanel()
Constructors.
void OnSelectRNAType(wxCommandEvent &event)
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE1
void OnAdd18SToComment(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON11
virtual CRef< CCmdComposite > GetCommand()
static bool ShowToolTips()
Should we show tooltips?
static vector< string > GetncRNAClassList()
@RNA_ref.hpp User-defined methods of the data storage class.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
CConstRef< CBioseq > GetCompleteBioseq(void) const
Get the complete bioseq.
CSeq_entry_Handle GetSeq_entry_Handle(void) const
Get parent Seq-entry handle.
#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 bool Equal(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2, ECase use_case=eCase)
Test for equality of a substring with another string.
static string & ToUpper(string &str)
Convert string to upper case â string& version.
EType
type of RNA feature
void SetExt(TExt &value)
Assign a value to Ext data member.
void SetType(TType value)
Assign a value to Type data member.
@ eType_ncRNA
non-coding RNA; subsumes snRNA, scRNA, snoRNA
constexpr bool empty(list< Ts... >) noexcept
const struct ncbi::grid::netcache::search::fields::SIZE size
bool AlreadyHasFeature(objects::CBioseq_Handle bh, string key, string comment)
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