CBulkCmdPanel::Create( parent,
id, pos,
size, style );
104GetSizer()->SetSizeHints(
this);
150wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
151itemCBulkCmdPanel1->SetSizer(itemBoxSizer2);
153wxFlexGridSizer* itemFlexGridSizer3 =
newwxFlexGridSizer(0, 2, 0, 0);
154itemBoxSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
156wxStaticText* itemStaticText4 =
newwxStaticText( itemCBulkCmdPanel1, wxID_STATIC,
_(
"Protein Name"), wxDefaultPosition, wxDefaultSize, 0 );
157itemFlexGridSizer3->Add(itemStaticText4, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
160itemFlexGridSizer3->Add(
m_ProteinName, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
162wxStaticText* itemStaticText6 =
newwxStaticText( itemCBulkCmdPanel1, wxID_STATIC,
_(
"Protein Description"), wxDefaultPosition, wxDefaultSize, 0 );
163itemFlexGridSizer3->Add(itemStaticText6, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
168wxStaticText* itemStaticText8 =
newwxStaticText( itemCBulkCmdPanel1, wxID_STATIC,
_(
"Gene Symbol"), wxDefaultPosition, wxDefaultSize, 0 );
169itemFlexGridSizer3->Add(itemStaticText8, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
172itemFlexGridSizer3->Add(
m_GeneSymbol, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
174wxStaticText* itemStaticText10 =
newwxStaticText( itemCBulkCmdPanel1, wxID_STATIC,
_(
"Comment"), wxDefaultPosition, wxDefaultSize, 0 );
175itemFlexGridSizer3->Add(itemStaticText10, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
178itemFlexGridSizer3->Add(
m_Comment, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
183itemBoxSizer2->Add(
m_Location, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
186wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
187itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
189wxStaticText* itemStaticText11 =
newwxStaticText( itemCBulkCmdPanel1, wxID_STATIC,
_(
"Codon Start"), wxDefaultPosition, wxDefaultSize, 0 );
190itemBoxSizer4->Add(itemStaticText11, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
192wxArrayString codonStrings;
193codonStrings.Add(
_(
"1"));
194codonStrings.Add(
_(
"2"));
195codonStrings.Add(
_(
"3"));
196codonStrings.Add(
_(
"Best"));
197 m_CodonStart=
newwxChoice( itemCBulkCmdPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, codonStrings, 0 );
199itemBoxSizer4->Add(
m_CodonStart, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
201 m_AddmRNA=
newwxCheckBox( itemCBulkCmdPanel1,
wxID_ANY,
_(
"Also add mRNA"), wxDefaultPosition, wxDefaultSize, 0 );
203itemBoxSizer2->Add(
m_AddmRNA, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
255vector<string> ambig_bioseqs;
256objects::CBioseq_CI b_iter(
m_TopSeqEntry, objects::CSeq_inst::eMol_na);
257 for( ; b_iter ; ++b_iter )
259 boolambiguous(
false);
266ambig_bioseqs.push_back(accession);
269 if(!ambig_bioseqs.empty())
271 stringreport(
"Possible ambiguous frames detected in ");
275report_dlg->SetTitle(
wxT(
"Ambiguous Frames"));
276report_dlg->
SetText(wxString(report));
277report_dlg->Show(
true);
288 boolfind_best_frame =
false;
297find_best_frame =
true;
304cds->SetData().SetCdregion();
306cds->SetComment(cds_comment);
312cds->SetData().SetCdregion().SetCode(*
code);
316cds->SetLocation().Assign(*loc);
325new_gene->SetData().SetGene().SetLocus(gene_symbol);
326new_gene->SetLocation().Assign(*loc);
329new_gene->SetPartial(
true);
341new_mrna->
SetData().SetRna().SetExt().SetName(prot_name);
352cds->SetData().SetCdregion().SetFrame(objects::CSeqTranslator::FindBestFrame(*cds, bsh.
GetScope(), ambiguous));
354cds->SetData().SetCdregion().SetFrame(codon_start);
362 prot->SetData().SetProt().SetName().push_back(prot_name);
365 prot->SetData().SetProt().SetDesc(prot_desc);
380 return "You must specify protein name.";
382 return "Unknown error";
User-defined methods of the data storage class.
@ eExtreme_Biological
5' and 3'
#define ID_BULKCDSADD_COMMENT
#define ID_BULKCDSADD_GENE
#define ID_BULKCDSADD_PROTEIN_DESC
#define ID_BULKCDSADD_PROTEIN_NAME
bool IsGeneralIdProtPresent(objects::CSeq_entry_Handle tse)
CRef< CGenetic_code > GetGeneticCodeForBioseq(CBioseq_Handle bh)
GetGeneticCodeForBioseq A function to construct the appropriate CGenetic_code object to use when cons...
static bool ShowToolTips()
Should we show tooltips?
wxTextCtrl * m_GeneSymbol
void CreateControls()
Creates the controls and sizers.
wxTextCtrl * m_ProteinDescription
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
objects::CSeq_entry_Handle m_TopSeqEntry
virtual CRef< CCmdComposite > GetCommand()
wxTextCtrl * m_ProteinName
bool Create(wxWindow *parent, wxWindowID id=10030, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void Init()
Initialises member variables.
CBulkCDSAddPanel()
Constructors.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
~CBulkCDSAddPanel()
Destructor.
bool m_create_general_only
virtual string GetErrorMessage()
void AddOneCmd(const objects::CBioseq_Handle &bsh, CRef< CCmdComposite > cmd, bool &ambiguous)
CBulkLocationPanel * m_Location
bool m_add_location_panel
virtual bool ShouldAddToExisting()
virtual CRef< objects::CSeq_loc > GetLocForBioseq(const objects::CBioseq &bioseq)
void SetText(const wxString &text)
namespace ncbi::objects::
CRef< objects::CSeq_entry > CreateTranslatedProteinSequence(CRef< objects::CSeq_feat > cds, objects::CBioseq_Handle nuc_h, bool create_general_only, int *offset=nullptr)
CRef< objects::CSeq_feat > AddProteinFeatureToProtein(CRef< objects::CSeq_entry > protein, bool partial5, bool partial3)
static void cleanup(void)
void GetLabel(string *label, ELabelType type=eDefault, TLabelFlags flags=fLabel_Default) const
Append a label for this Seq-id to the supplied string.
CConstRef< CSeq_id > GetSeqId(void) const
@ eContent
Untagged human-readable accession or the like.
bool IsPartialStart(ESeqLocExtremes ext) const
check start or stop of location for e_Lim fuzz
bool IsPartialStop(ESeqLocExtremes ext) const
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
@ eGetId_Best
return the "best" gi (uses FindBestScore(), with CSeq_id::CalculateScore() as the score function
CConstRef< CBioseq > GetCompleteBioseq(void) const
Get the complete bioseq.
CSeq_entry_Handle GetSeq_entry_Handle(void) const
Get parent Seq-entry handle.
CScope & GetScope(void) const
Get scope this handle belongs to.
#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 string Join(const TContainer &arr, const CTempString &delim)
Join strings using the specified delimiter.
static string ULongToString(unsigned long value, TNumToStringFlags flags=0, int base=10)
Convert unsigned long to string.
void SetLocation(TLocation &value)
Assign a value to Location data member.
void SetPartial(TPartial value)
Assign a value to Partial data member.
const TLocation & GetLocation(void) const
Get the Location member data.
void SetData(TData &value)
Assign a value to Data data member.
@ eFrame_not_set
not set, code uses one
@ eFrame_three
reading frame
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)
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