wxWindowID
id,
constwxPoint& pos,
constwxSize&
size,
longstyle )
86m_WizardType (wizard_type),
102CBulkCmdPanel::Create( parent,
id, pos,
size, style );
107GetSizer()->SetSizeHints(
this);
139 "16S ribosomal RNA",
140 "16S-23S ribosomal RNA intergenic spacer",
148 "small subunit ribosomal RNA",
149 "large subunit ribosomal RNA" 156 "18S ribosomal RNA",
157 "small subunit ribosomal RNA",
158 "internal transcribed spacer 1",
159 "5.8S ribosomal RNA",
160 "internal transcribed spacer 2",
161 "28S ribosomal RNA",
162 "26S ribosomal RNA",
163 "large subunit ribosomal RNA" 178wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
179itemCBulkCmdPanel1->SetSizer(itemBoxSizer2);
181wxStaticBox* itemStaticBoxSizer3Static =
newwxStaticBox(itemCBulkCmdPanel1,
wxID_ANY,
_(
"RNA Name"));
182 m_RNANameSizer=
newwxStaticBoxSizer(itemStaticBoxSizer3Static, wxVERTICAL);
183itemBoxSizer2->Add(
m_RNANameSizer, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
240box =
newwxCheckBox ( itemCBulkCmdPanel1,
wxID_ANY,
_(
"Something else"));
243btn =
newwxRadioButton ( itemCBulkCmdPanel1,
wxID_ANY,
_(
"Something else"));
249 m_OtherLabel=
newwxTextCtrl( itemCBulkCmdPanel1,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(200, -1), 0 );
299&&
NStr::Equal(rna_name.substr(5),
" subunit ribosomal RNA")) {
302string::iterator cp = rna_name.begin();
307 while(cp != rna_name.end() &&
isdigit(*cp)) {
311 if(
NStr::Equal(rna_name.substr(pos),
"S ribosomal RNA")) {
327string::iterator cp = rna_name.begin();
332 while(cp != rna_name.end() &&
isdigit(*cp)) {
336 if(
NStr::Equal(rna_name.substr(pos, 2),
"S-")) {
343 while(cp != rna_name.end() &&
isdigit(*cp)) {
347 if(
NStr::Equal(rna_name.substr(pos),
"S ribosomal RNA intergenic spacer")) {
360 stringrna_name =
"";
363vector<string> labels;
365 while(pos < itemList.size()) {
366wxCheckBox* c_btn =
dynamic_cast<wxCheckBox*
>(itemList[pos]->GetWindow());
368 if(c_btn->GetValue()) {
373labels.push_back(
label);
378 if(labels.size() == 1) {
379rna_name = labels[0];
380}
else if(labels.size() == 2) {
381rna_name =
"contains "+ labels[0] +
" and "+ labels[1];
382}
else if(labels.size() > 2) {
383rna_name =
"contains ";
384 for(
size_t i= 0;
i< labels.size() - 1;
i++) {
385rna_name += labels[
i] +
", ";
387rna_name +=
"and "+ labels[labels.size() - 1];
395 stringrna_name =
"";
398 while(pos < itemList.size()) {
399wxRadioButton* r_btn =
dynamic_cast<wxRadioButton*
>(itemList[pos]->GetWindow());
401 if(r_btn->GetValue()) {
418 stringrna_name =
"";
435objects::CBioseq_CI b_iter(
m_TopSeqEntry, objects::CSeq_inst::eMol_na);
436 for( ; b_iter ; ++b_iter ) {
439new_feat->SetData().SetRna().SetType(objects::CRNA_ref::eType_rRNA);
440new_feat->SetData().SetRna().SetExt().SetName(rna_name);
442new_feat->SetData().SetRna().SetType(objects::CRNA_ref::eType_other);
444new_feat->SetData().SetRna().SetExt().SetGen().SetProduct(rna_name);
446new_feat->SetComment(rna_name);
451new_feat_id->Assign(*(b_iter->GetCompleteBioseq()->GetId().front()));
452new_feat->SetLocation().SetInt().SetId(*new_feat_id);
453new_feat->SetLocation().SetInt().SetFrom(0);
454new_feat->SetLocation().SetInt().SetTo(b_iter->GetBioseqLength() - 1);
457objects::CSeq_entry_Handle seh = b_iter->GetSeq_entry_Handle();
467 return "You must specify the name for the RNA feature to be created.";
473 boolenable =
false;
477 while(pos < itemList.size() && !enable) {
478wxRadioButton* r_btn =
dynamic_cast<wxRadioButton*
>(itemList[pos]->GetWindow());
484wxCheckBox* c_btn =
dynamic_cast<wxCheckBox*
>(itemList[pos]->GetWindow());
@ eExtreme_Biological
5' and 3'
User-defined methods of the data storage class.
EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX, CAdjustFeaturesForGaps::OnKnownUnknownSelected) EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX1
objects::CSeq_entry_Handle m_TopSeqEntry
string x_GetSingleElementName()
string x_GetMultiElementName()
~CRNANamePanel()
Destructor.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
virtual CRef< CCmdComposite > GetCommand()
virtual string GetErrorMessage()
static bool ShowToolTips()
Should we show tooltips?
void CreateControls()
Creates the controls and sizers.
CSourceRequirements::EWizardSrcType m_SrcType
bool Create(wxWindow *parent, wxWindowID id=10034, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void OnRNATypeSelected(wxCommandEvent &event)
wxStaticBoxSizer * m_RNANameSizer
void Init()
Initialises member variables.
CRNANamePanel()
Constructors.
wxTextCtrl * m_OtherLabel
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
@ eWizardSrcType_cultured_fungus
@ eWizardSrcType_bacteria_or_archaea
@ eWizardSrcType_uncultured_fungus
@ eWizardSrcType_vouchered_fungus
#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 StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
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 const char label[]
constexpr bool empty(list< Ts... >) noexcept
const struct ncbi::grid::netcache::search::fields::SIZE size
const int s_NumRNAOrganelle
static bool s_IsrRNA(string rna_name)
static bool s_IsRNASpacer(string rna_name)
const int s_NumRNABacteriaArchaea
static string s_RNABacteriaArchaea[]
static string s_RNAOrganelle[]
static string s_RNAFungal[]
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