: m_CmdProcessor(cmdproc), m_Seh(seh)
100SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
101wxPanel::Create( parent,
id, pos,
size, style );
106GetSizer()->SetSizeHints(
this);
148wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
149itemPanel1->SetSizer(itemBoxSizer2);
151wxFlexGridSizer* itemFlexGridSizer2 =
newwxFlexGridSizer(0, 1, 0, 0);
152itemBoxSizer2->Add(itemFlexGridSizer2, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
154wxStaticText* itemStaticText6 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Genome coverage"), wxDefaultPosition, wxDefaultSize, 0 );
155itemFlexGridSizer2->Add(itemStaticText6, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
159 m_GenomeCoverage->SetToolTip(
_(
"The estimated base coverage across the genome, eg 12x. This can be calculated by dividing the number of bases sequenced by the expected genome size and multiplying that by the percentage of bases that were placed in the final assembly. More simply it is the number of bases sequenced divided by the expected genome size."));
160itemFlexGridSizer2->Add(
m_GenomeCoverage, 0, wxALIGN_LEFT |wxALIGN_CENTER_VERTICAL|wxALL, 5);
162itemFlexGridSizer2->Add(5, 5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
164wxStaticText* itemStaticText1 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Sequencing technology"), wxDefaultPosition, wxDefaultSize, 0 );
165itemFlexGridSizer2->Add(itemStaticText1, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
168itemFlexGridSizer2->Add(
m_ScrolledWindow, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
170 m_Sizer=
newwxFlexGridSizer(0, 2, 0, 0);
173 for(
size_tindex = 0; index <
m_Rows; ++index) {
176wxHyperlinkCtrl* itemHyperlinkCtrl2 =
newwxHyperlinkCtrl( itemPanel1,
ID_SEQTECHHYPERLINK,
_(
"Add another sequencing technology"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
177itemFlexGridSizer2->Add(itemHyperlinkCtrl2, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
184wxArrayString m_SeqTechnologyStrings;
185m_SeqTechnologyStrings.Add(
_(
"ABI3730"));
186m_SeqTechnologyStrings.Add(
_(
"Sanger"));
187m_SeqTechnologyStrings.Add(
_(
"454"));
188m_SeqTechnologyStrings.Add(
_(
"Illumina"));
189m_SeqTechnologyStrings.Add(
_(
"Illumina GAII"));
190m_SeqTechnologyStrings.Add(
_(
"Illumina GAIIx"));
191m_SeqTechnologyStrings.Add(
_(
"Illumina HiSeq"));
192m_SeqTechnologyStrings.Add(
_(
"Illumina iSeq"));
193m_SeqTechnologyStrings.Add(
_(
"Illumina MiniSeq"));
194m_SeqTechnologyStrings.Add(
_(
"Illumina MiSeq"));
195m_SeqTechnologyStrings.Add(
_(
"Illumina NextSeq"));
196m_SeqTechnologyStrings.Add(
_(
"Illumina NovaSeq"));
197m_SeqTechnologyStrings.Add(
_(
"IonTorrent"));
198m_SeqTechnologyStrings.Add(
_(
"Oxford Nanopore"));
199m_SeqTechnologyStrings.Add(
_(
"Oxford Nanopore GridION"));
200m_SeqTechnologyStrings.Add(
_(
"Oxford Nanopore MiniION"));
201m_SeqTechnologyStrings.Add(
_(
"Oxford Nanopore PromethION"));
202m_SeqTechnologyStrings.Add(
_(
"PacBio"));
203m_SeqTechnologyStrings.Add(
_(
"PacBio RS"));
204m_SeqTechnologyStrings.Add(
_(
"PacBio RSII"));
205m_SeqTechnologyStrings.Add(
_(
"PacBio Sequel"));
206m_SeqTechnologyStrings.Add(
_(
"Helicos"));
207m_SeqTechnologyStrings.Add(
_(
"SOLiD"));
208m_SeqTechnologyStrings.Add(
_(
"Complete Genomics"));
210 #ifdef __WXOSX_COCOA__ 211 row->SetSelection(-1);
214 row->SetToolTip(
_(
"The sequencing machine(s) used to generate the data, eg Illumina MiSeq or 454. Select the sequencing technology from the pulldown list, or type the name of the technology directly in the box."));
225 m_Sizer->Add(
row, 0, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL, 0);
227itemHyperLink->SetVisitedColour(itemHyperLink->GetNormalColour());
228 m_Sizer->Add(itemHyperLink, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT, 0);
235 introw_width, row_height;
236 row->GetClientSize(&row_width, &row_height);
238 intlink_width, link_height;
239itemHyperLink->GetClientSize(&link_width, &link_height);
240 if(link_height > row_height) {
241row_height = link_height;
243row_width += link_width;
313wxWindow *win =
dynamic_cast<wxWindow*
>(
event.GetEventObject());
318 for(wxWindowList::iterator child = children.begin(); child != children.end(); ++child)
322wxSizer *sizer = win->GetContainingSizer();
346wxComboBox*
row=
dynamic_cast<wxComboBox *
>(it);
348 row->SetValue(
wxT(
""));
360 for(
autoit :
m_User->GetData()) {
361 if(it->IsSetLabel() && it->GetLabel().IsStr() &&
362it->IsSetData() && it->GetData().IsStr()) {
363 const string&
label= it->GetLabel().GetStr();
368vector<string> techs;
372wxComboBox*
row=
dynamic_cast<wxComboBox *
>(rit);
377 while(techs.size() > num_rows) {
381 autos = techs.begin();
383wxComboBox*
row=
dynamic_cast<wxComboBox *
>(rit);
387 if(s == techs.end()) {
413wxComboBox*
row=
dynamic_cast<wxComboBox *
>(it);
415 stringnew_val =
row->GetValue().ToStdString();
416 if(!new_val.empty()) {
424tech = tech.substr(0, tech.length() - 1);
430seqtech.SetData().SetStr(tech);
436 constobjects::CComment_rule& rule = rules->FindCommentRule(
"Genome-Assembly-Data");
437rule.ReorderFields(*
m_User);
456 boolany_changes =
false;
458 for(objects::CBioseq_CI bi(
m_Seh, objects::CSeq_inst::eMol_na); bi; ++bi)
461 for(objects::CSeqdesc_CI di(*bi, objects::CSeqdesc::e_User); di; ++di)
463 if(di && di->IsUser() && di->GetUser().GetObjectType() == objects::CUser_object::eObjectType_StructuredComment &&
464 NStr::Equal(objects::CComment_rule::GetStructuredCommentPrefix(di->GetUser()),
"Genome-Assembly-Data"))
470 if(!di->Equals(*cpy))
473 cmd->AddCommand(*chg);
484new_desc->SetUser(*
m_User);
485objects::CBioseq_set_Handle parent = bi->GetParentBioseq_set();
486 autoentry = bi->GetParentEntry();
487 if(parent && parent.IsSetClass() && parent.GetClass() == objects::CBioseq_set::eClass_nuc_prot)
488entry = parent.GetParentEntry();
490 cmd->AddCommand(*cmdAddDesc);
void CreateControls()
Creates the controls and sizers.
void ApplyUser(objects::CUser_object &user)
~CGAssemblyOtherPanel()
Destructor.
void OnAddNewSeqtechnology(wxHyperlinkEvent &event)
wxEVT_COMMAND_HYPERLINK event handler for ID_SEQTECHHYPERLINK
CGAssemblyOtherPanel()
Constructors.
void x_AddRowToWindow(wxWindow *row)
bool Create(wxWindow *parent, wxWindowID id=ID_CGASSEMBLYOTHERPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnDeleteSeqtechnology(wxHyperlinkEvent &event)
virtual bool TransferDataFromWindow()
virtual bool TransferDataToWindow()
ICommandProccessor * m_CmdProcessor
objects::CSeq_entry_Handle m_Seh
wxTextCtrl * m_GenomeCoverage
wxScrolledWindow * m_ScrolledWindow
wxFlexGridSizer * m_Sizer
CRef< objects::CUser_object > m_User
virtual void ApplyCommand()
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void Init()
Initialises member variables.
static bool ShowToolTips()
Should we show tooltips?
Undo/Redo interface for editing operations.
virtual void Execute(IEditCommand *command, wxWindow *window=0)=0
static DLIST_TYPE *DLIST_NAME() prev(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
const string kGenomeCoverage
const string kSequencingTechnology
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
Split a string using specified delimiters.
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
#define row(bind, expected)
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