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

NCBI C++ ToolKit: src/gui/packages/pkg_sequence_edit/bulkcdsaddpanel.cpp Source File

99 

CBulkCmdPanel::Create( parent,

id

, pos,

size

, style );

104

GetSizer()->SetSizeHints(

this

);

150

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

151

itemCBulkCmdPanel1->SetSizer(itemBoxSizer2);

153

wxFlexGridSizer* itemFlexGridSizer3 =

new

wxFlexGridSizer(0, 2, 0, 0);

154

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

156

wxStaticText* itemStaticText4 =

new

wxStaticText( itemCBulkCmdPanel1, wxID_STATIC,

_

(

"Protein Name"

), wxDefaultPosition, wxDefaultSize, 0 );

157

itemFlexGridSizer3->Add(itemStaticText4, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

160

itemFlexGridSizer3->Add(

m_ProteinName

, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

162

wxStaticText* itemStaticText6 =

new

wxStaticText( itemCBulkCmdPanel1, wxID_STATIC,

_

(

"Protein Description"

), wxDefaultPosition, wxDefaultSize, 0 );

163

itemFlexGridSizer3->Add(itemStaticText6, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

168

wxStaticText* itemStaticText8 =

new

wxStaticText( itemCBulkCmdPanel1, wxID_STATIC,

_

(

"Gene Symbol"

), wxDefaultPosition, wxDefaultSize, 0 );

169

itemFlexGridSizer3->Add(itemStaticText8, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

172

itemFlexGridSizer3->Add(

m_GeneSymbol

, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

174

wxStaticText* itemStaticText10 =

new

wxStaticText( itemCBulkCmdPanel1, wxID_STATIC,

_

(

"Comment"

), wxDefaultPosition, wxDefaultSize, 0 );

175

itemFlexGridSizer3->Add(itemStaticText10, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

178

itemFlexGridSizer3->Add(

m_Comment

, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

183

itemBoxSizer2->Add(

m_Location

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

186

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxHORIZONTAL);

187

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

189

wxStaticText* itemStaticText11 =

new

wxStaticText( itemCBulkCmdPanel1, wxID_STATIC,

_

(

"Codon Start"

), wxDefaultPosition, wxDefaultSize, 0 );

190

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

192

wxArrayString codonStrings;

193

codonStrings.Add(

_

(

"1"

));

194

codonStrings.Add(

_

(

"2"

));

195

codonStrings.Add(

_

(

"3"

));

196

codonStrings.Add(

_

(

"Best"

));

197  m_CodonStart

=

new

wxChoice( itemCBulkCmdPanel1,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, codonStrings, 0 );

199

itemBoxSizer4->Add(

m_CodonStart

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

201  m_AddmRNA

=

new

wxCheckBox( itemCBulkCmdPanel1,

wxID_ANY

,

_

(

"Also add mRNA"

), wxDefaultPosition, wxDefaultSize, 0 );

203

itemBoxSizer2->Add(

m_AddmRNA

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

255

vector<string> ambig_bioseqs;

256

objects::CBioseq_CI b_iter(

m_TopSeqEntry

, objects::CSeq_inst::eMol_na);

257  for

( ; b_iter ; ++b_iter )

259  bool

ambiguous(

false

);

266

ambig_bioseqs.push_back(accession);

269  if

(!ambig_bioseqs.empty())

271  string

report(

"Possible ambiguous frames detected in "

);

275

report_dlg->SetTitle(

wxT

(

"Ambiguous Frames"

));

276

report_dlg->

SetText

(wxString(report));

277

report_dlg->Show(

true

);

288  bool

find_best_frame =

false

;

297

find_best_frame =

true

;

304

cds->SetData().SetCdregion();

306

cds->SetComment(cds_comment);

312

cds->SetData().SetCdregion().SetCode(*

code

);

316

cds->SetLocation().Assign(*loc);

325

new_gene->SetData().SetGene().SetLocus(gene_symbol);

326

new_gene->SetLocation().Assign(*loc);

329

new_gene->SetPartial(

true

);

341

new_mrna->

SetData

().SetRna().SetExt().SetName(prot_name);

352

cds->SetData().SetCdregion().SetFrame(objects::CSeqTranslator::FindBestFrame(*cds, bsh.

GetScope

(), ambiguous));

354

cds->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