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

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

62 #include <wx/button.h> 75

IMPLEMENT_DYNAMIC_CLASS(

CEditSeqId

, wxDialog )

105  Create

(parent,

id

, caption, pos,

size

, style);

113 bool CEditSeqId::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

116 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

117

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

122

GetSizer()->SetSizeHints(

this

);

162

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

163

itemDialog1->SetSizer(itemBoxSizer2);

165

wxStaticBox* itemStaticBoxSizer3Static =

new

wxStaticBox(itemDialog1,

wxID_ANY

,

_

(

"What part of Seq-id do you want to edit?"

));

166

wxStaticBoxSizer* itemStaticBoxSizer3 =

new

wxStaticBoxSizer(itemStaticBoxSizer3Static, wxVERTICAL);

167

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

169  m_Local

=

new

wxRadioButton( itemStaticBoxSizer3->GetStaticBox(),

wxID_ANY

,

_

(

"Local ID"

), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );

171

itemStaticBoxSizer3->Add(

m_Local

, 0, wxALIGN_LEFT|wxALL, 5);

173  m_GeneralDb

=

new

wxRadioButton( itemStaticBoxSizer3->GetStaticBox(),

wxID_ANY

,

_

(

"General ID db"

), wxDefaultPosition, wxDefaultSize, 0 );

175

itemStaticBoxSizer3->Add(

m_GeneralDb

, 0, wxALIGN_LEFT|wxALL, 5);

177  m_GeneralTag

=

new

wxRadioButton( itemStaticBoxSizer3->GetStaticBox(),

wxID_ANY

,

_

(

"General ID tag"

), wxDefaultPosition, wxDefaultSize, 0 );

179

itemStaticBoxSizer3->Add(

m_GeneralTag

, 0, wxALIGN_LEFT|wxALL, 5);

181

wxBoxSizer* itemBoxSizer7 =

new

wxBoxSizer(wxHORIZONTAL);

182

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

184  m_Any

=

new

wxRadioButton( itemDialog1,

wxID_ANY

,

_

(

"Any sequence"

), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );

185  m_Any

->SetValue(

true

);

186

itemBoxSizer7->Add(

m_Any

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

188  m_Nuc

=

new

wxRadioButton( itemDialog1,

wxID_ANY

,

_

(

"Nucleotides"

), wxDefaultPosition, wxDefaultSize, 0 );

189  m_Nuc

->SetValue(

false

);

190

itemBoxSizer7->Add(

m_Nuc

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

192  m_DNA

=

new

wxRadioButton( itemDialog1,

wxID_ANY

,

_

(

"DNA"

), wxDefaultPosition, wxDefaultSize, 0 );

193  m_DNA

->SetValue(

false

);

194

itemBoxSizer7->Add(

m_DNA

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

196  m_RNA

=

new

wxRadioButton( itemDialog1,

wxID_ANY

,

_

(

"RNA"

), wxDefaultPosition, wxDefaultSize, 0 );

197  m_RNA

->SetValue(

false

);

198

itemBoxSizer7->Add(

m_RNA

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

200  m_Proteins

=

new

wxRadioButton( itemDialog1,

wxID_ANY

,

_

(

"Proteins"

), wxDefaultPosition, wxDefaultSize, 0 );

202

itemBoxSizer7->Add(

m_Proteins

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

204

wxBoxSizer* itemBoxSizer12 =

new

wxBoxSizer(wxHORIZONTAL);

205

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

207

wxStaticText* itemStaticText11 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Where Sequence ID"

), wxDefaultPosition, wxDefaultSize, 0 );

208

itemBoxSizer12->Add(itemStaticText11, 0, wxALIGN_TOP|wxALL, 5);

214

wxStaticText* itemStaticText12 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Keep"

), wxDefaultPosition, wxDefaultSize, 0 );

215

itemBoxSizer2->Add(itemStaticText12, 0, wxALIGN_LEFT|wxALL, 5);

218

itemBoxSizer2->Add(

m_ParseOptions

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

220

wxBoxSizer* itemBoxSizer13 =

new

wxBoxSizer(wxHORIZONTAL);

221

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

223

wxStaticText* itemStaticText14 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Add Prefix"

), wxDefaultPosition, wxDefaultSize, 0 );

224

itemBoxSizer13->Add(itemStaticText14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

226  m_Prefix

=

new

wxTextCtrl( itemDialog1,

wxID_ANY

, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );

227

itemBoxSizer13->Add(

m_Prefix

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

229

wxBoxSizer* itemBoxSizer16 =

new

wxBoxSizer(wxHORIZONTAL);

230

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

232

wxStaticText* itemStaticText17 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Add Suffix"

), wxDefaultPosition, wxDefaultSize, 0 );

233

itemBoxSizer16->Add(itemStaticText17, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

235  m_Suffix

=

new

wxTextCtrl( itemDialog1,

wxID_ANY

, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );

236

itemBoxSizer16->Add(

m_Suffix

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

239

wxBoxSizer* itemBoxSizer6 =

new

wxBoxSizer(wxHORIZONTAL);

240

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

242  m_RemoveOrig

=

new

wxCheckBox( itemDialog1,

wxID_ANY

,

_

(

"Remove original id"

), wxDefaultPosition, wxDefaultSize, 0 );

243

itemBoxSizer6->Add(

m_RemoveOrig

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

246

wxButton* itemButton7 =

new

wxButton( itemDialog1, wxID_OK,

_

(

"Accept"

), wxDefaultPosition, wxDefaultSize, 0 );

247

itemBoxSizer6->Add(itemButton7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

249

wxButton* itemButton8 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

250

itemBoxSizer6->Add(itemButton8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

301  if

(

m_Any

->GetValue())

318  for

(CBioseq_Handle::TId::const_iterator id_it = b_iter->GetId().begin(); id_it != b_iter->GetId().end(); ++id_it)

335  if

(constraint && !constraint->DoesTextMatch(

local

))

347  if

(constraint && !constraint->DoesTextMatch(db))

350

db =

m_Prefix

->GetValue().ToStdString() + db +

m_Suffix

->GetValue().ToStdString();

364  if

(constraint && !constraint->DoesTextMatch(

tag

))

399  if

(desc_ci->GetUser().IsSetType() && desc_ci->GetUser().GetType().IsStr()

448  for

(CSeq_hist::TAssembly::iterator align_it = hist.

SetAssembly

().begin(); align_it != hist.

SetAssembly

().end(); ++align_it)

455  for

(CSeq_hist_rec::TIds::iterator id_it = hist.

SetReplaces

().SetIds().begin(); id_it != hist.

SetReplaces

().SetIds().end(); ++id_it)

462  for

(CSeq_hist_rec::TIds::iterator id_it = hist.

SetReplaced_by

().SetIds().begin(); id_it != hist.

SetReplaced_by

().SetIds().end(); ++id_it)

473  for

(CSeg_ext::Tdata::iterator loc_it = ext.

SetSeg

().

Set

().begin(); loc_it != ext.

SetSeg

().

Set

().end(); ++loc_it)

484  for

(CMap_ext::Tdata::iterator feat_it = ext.

SetMap

().

Set

().begin(); feat_it != ext.

SetMap

().

Set

().end(); ++feat_it)

491  for

(CDelta_ext::Tdata::iterator delta_it = ext.

SetDelta

().

Set

().begin(); delta_it != ext.

SetDelta

().

Set

().end(); ++delta_it)

493  if

((*delta_it)->IsLoc())

500

new_entry->

SetSeq

(*new_seq);

506  for

(

CAnnot_CI

annot_ci(seh, sel); annot_ci; ++annot_ci)

508  if

(annot_ci->IsFtable())

510  for

(

CFeat_CI

feat_it(*annot_ci); feat_it; ++feat_it)

513

new_feat->

Assign

(feat_it->GetOriginalFeature());

518  if

(annot_ci->IsAlign())

520  for

(

CAlign_CI

align_it(*annot_ci); align_it; ++align_it)

523

new_align->

Assign

(align_it.GetOriginalSeq_align());

528  if

(annot_ci->IsGraph())

530  for

(

CGraph_CI

graph_it(*annot_ci); graph_it; ++graph_it)

533

new_graph->

Assign

(graph_it->GetOriginalGraph());

552  for

(CBioseq::TId::iterator it = new_seq->

SetId

().begin(); it != new_seq->

SetId

().end(); ++it)

581  if

((*codebreak)->IsSetLoc())

591  if

(clone_set.

IsSet

())

593  for

(CClone_seq_set::Tdata::iterator clone_it = clone_set.

Set

().begin(); clone_it != clone_set.

Set

().end(); ++clone_it)

595  if

((*clone_it)->IsSetLocation())

599  if

((*clone_it)->IsSetSeq())

615  for

(CSeqFeatSupport::TInference::iterator inf_it = feat.

SetSupport

().SetInference().begin(); inf_it != feat.

SetSupport

().SetInference().end(); ++inf_it)

617  if

((*inf_it)->IsSetBasis() && (*inf_it)->GetBasis().IsSetAccessions())

619  for

(CEvidenceBasis::TAccessions::iterator id_it = (*inf_it)->SetBasis().SetAccessions().begin(); id_it != (*inf_it)->SetBasis().SetAccessions().end(); ++id_it)

628  for

(CSeqFeatSupport::TModel_evidence::iterator mod_it = feat.

SetSupport

().SetModel_evidence().begin(); mod_it != feat.

SetSupport

().SetModel_evidence().end(); ++mod_it)

630  if

((*mod_it)->IsSetIdentification())

634  if

((*mod_it)->IsSetMrna())

636  for

(CModelEvidenceSupport::TMrna::iterator item_it = (*mod_it)->SetMrna().begin(); item_it != (*mod_it)->SetMrna().end(); ++item_it)

638  if

((*item_it)->IsSetId())

644  if

((*mod_it)->IsSetEst())

646  for

(CModelEvidenceSupport::TEst::iterator item_it = (*mod_it)->SetEst().begin(); item_it != (*mod_it)->SetEst().end(); ++item_it)

648  if

((*item_it)->IsSetId())

654  if

((*mod_it)->IsSetProtein())

656  for

(CModelEvidenceSupport::TEst::iterator item_it = (*mod_it)->SetProtein().begin(); item_it != (*mod_it)->SetProtein().end(); ++item_it)

658  if

((*item_it)->IsSetId())

674  for

(CVariation_inst::TDelta::iterator delta_it = var.

SetData

().SetInstance().SetDelta().begin(); delta_it != var.

SetData

().SetInstance().SetDelta().end(); ++delta_it)

676  if

((*delta_it)->IsSetSeq() && (*delta_it)->GetSeq().IsLoc())

684  for

( CVariation_ref::C_Data::C_Set::TVariations::iterator var_it = var.

SetData

().SetSet().SetVariations().begin(); var_it != var.

SetData

().SetSet().SetVariations().end(); ++var_it)

693  if

((*con_it)->IsVariation())

715  for

(CSeq_annot::C_Data::TGraph::iterator graph_it = annot.

SetData

().SetGraph().begin(); graph_it != annot.

SetData

().SetGraph().end(); ++graph_it)

717  if

((*graph_it)->IsSetLoc())

719  CSeq_loc

&loc = (*graph_it)->SetLoc();

727  for

(CSeq_annot::C_Data::TIds::iterator id_it = annot.

SetData

().SetIds().begin(); id_it != annot.

SetData

().SetIds().end(); ++id_it)

736  for

(CSeq_annot::C_Data::TLocs::iterator loc_it = annot.

SetData

().SetLocs().begin(); loc_it != annot.

SetData

().SetLocs().end(); ++loc_it)

744  if

((*annotdesc_it)->IsSrc())

746  CSeq_id

&

id

= (*annotdesc_it)->SetSrc();

749  if

((*annotdesc_it)->IsRegion())

751  CSeq_loc

&loc = (*annotdesc_it)->SetRegion();

759  for

(CSeq_table::TColumns::iterator col_it = annot.

SetData

().SetSeq_table().SetColumns().begin(); col_it != annot.

SetData

().SetSeq_table().SetColumns().end(); ++col_it)

761  if

((*col_it)->IsSetData() && (*col_it)->GetData().IsLoc())

763  for

(CSeqTable_multi_data::TLoc::iterator loc_it = (*col_it)->SetData().SetLoc().begin(); loc_it != (*col_it)->SetData().SetLoc().end(); ++loc_it)

768  if

((*col_it)->IsSetData() && (*col_it)->GetData().IsId())

770  for

(CSeqTable_multi_data::TId::iterator id_it = (*col_it)->SetData().SetId().begin(); id_it != (*col_it)->SetData().SetId().end(); ++id_it)

775  if

((*col_it)->IsSetDefault() && (*col_it)->GetDefault().IsLoc())

779  if

((*col_it)->IsSetDefault() && (*col_it)->GetDefault().IsId())

783  if

((*col_it)->IsSetSparse_other() && (*col_it)->GetSparse_other().IsLoc())

785  x_UpdateLoc

((*col_it)->SetSparse_other().SetLoc());

787  if

((*col_it)->IsSetSparse_other() && (*col_it)->GetSparse_other().IsId())

789  x_ChangeId

((*col_it)->SetSparse_other().SetId());

818  if

((*std_it)->IsSetIds())

820  for

(CStd_seg::TIds::iterator id_it = (*std_it)->SetIds().begin(); id_it != (*std_it)->SetIds().end(); ++id_it)

825  if

((*std_it)->IsSetLoc())

827  for

(CStd_seg::TLoc::iterator loc_it = (*std_it)->SetLoc().begin(); loc_it != (*std_it)->SetLoc().end(); ++loc_it)

845  id

->Assign(*(new_loc->

GetId

()));

847

new_loc->

SetId

(*

id

);

878  for

(CBioseq_Handle::TId::const_iterator id_it = b_iter->GetId().begin(); id_it != b_iter->GetId().end(); ++id_it)

880  if

(id_it->Which() == id_type)

882

remove_id = id_it->GetSeqId();

887  for

(

const auto

&

id

: b_iter->GetId())

889  if

(

id

.Which() != id_type)

891  if

(!

id

.

GetSeqId

()->IsGeneral() || (

id

.

GetSeqId

()->IsGeneral() &&

id

.

GetSeqId

()->GetGeneral().IsSetDb() &&

892  id

.

GetSeqId

()->GetGeneral().GetDb() !=

"TMSMART"

&&

id

.

GetSeqId

()->GetGeneral().GetDb() !=

"BankIt"

&&

id

.

GetSeqId

()->GetGeneral().GetDb() !=

"NCBIFILE"

))

917  if

(prev_nuc != *b_iter_nuc)

921

prev_nuc = *b_iter_nuc;

929  if

(remove_id && replace_id)

942  if

(!

local

.empty())

953  bool

found_new(

false

);

954  for

(

const auto id

: new_seq->

GetId

())

968

CBioseq::TId::iterator it = new_seq->

SetId

().begin();

969  while

( it != new_seq->

SetId

().end() )

971  bool

found_old(

false

);

983

it = new_seq->

SetId

().erase(it);

1008

:

CModifySeqId

(seh,

"Local Seq-id to General Seq-id"

)

1010  bool

ask_user(

true

);

1011  bool

default_set(

false

);

1020

vector<string>

arr

;

1022  if

(

arr

.size() == 2)

1024  string

db =

arr

.front();

1025  string tag

=

arr

.back();

1036

wxTextEntryDialog dlg(

NULL

,

_

(

"Enter value for db"

),

_

(

"db is missing"

));

1037  if

(dlg.ShowModal() == wxID_OK)

1039

default_db = dlg.GetValue().ToStdString();

1040

default_set =

true

;

1059

:

CModifySeqId

(seh,

"General Seq-id to Local Seq-id"

)

1064  for

(CBioseq_Handle::TId::const_iterator id_it = b_iter->GetId().begin(); id_it != b_iter->GetId().end(); ++id_it)

1074  str

=

id

->GetGeneral().GetTag().GetStr();

1086

:

CModifySeqId

(seh,

"Remove Seq-ID Name From Prot Feats"

)

1092  for

(CBioseq_Handle::TId::const_iterator id_it = b_iter->GetId().begin(); id_it != b_iter->GetId().end(); ++id_it)

1100  for

(

CFeat_CI

feat_ci(*b_iter); feat_ci; ++feat_ci)

1116  switch

(id->

Which

())

1125

default : text_id.

Reset

();

1129  if

((!text_id->IsSetAccession() || text_id->GetAccession().empty()) &&

1130

text_id->IsSetName() && !text_id->GetName().empty() &&

NStr::IsUpper

(

string

(1,text_id->GetName().front())) &&

NStr::Find

(text_id->GetName(),

"_"

) !=

NPOS

)

1135  switch

(new_id->

Which

())

1181  Create

(parent,

id

, caption, pos,

size

, style);

1192 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

1193

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

1198

GetSizer()->SetSizeHints(

this

);

1237

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

1238

itemDialog1->SetSizer(itemBoxSizer2);

1240

wxBoxSizer* itemBoxSizer12 =

new

wxBoxSizer(wxHORIZONTAL);

1241

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

1243

wxStaticText* itemStaticText11 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Remove general sequence IDs where database"

), wxDefaultPosition, wxDefaultSize, 0 );

1244

itemBoxSizer12->Add(itemStaticText11, 0, wxALIGN_TOP|wxALL, 5);

1250

wxBoxSizer* itemBoxSizer6 =

new

wxBoxSizer(wxHORIZONTAL);

1251

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

1253

wxButton* itemButton7 =

new

wxButton( itemDialog1, wxID_OK,

_

(

"Accept"

), wxDefaultPosition, wxDefaultSize, 0 );

1254

itemBoxSizer6->Add(itemButton7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

1256

wxButton* itemButton8 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

1257

itemBoxSizer6->Add(itemButton8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

1282  return

wxNullBitmap;

1318  for

(CBioseq_Handle::TId::const_iterator id_it = b_iter->GetId().begin(); id_it != b_iter->GetId().end(); ++id_it)

1332  for

(CBioseq_Handle::TId::const_iterator id_it = b_iter->GetId().begin(); id_it != b_iter->GetId().end(); ++id_it)

1344

:

CModifySeqId

(seh,

"Convert Accessions to Local Ids"

)

1348  for

(CBioseq_Handle::TId::const_iterator id_it = b_iter->GetId().begin(); id_it != b_iter->GetId().end(); ++id_it)

1359  switch

(id->

Which

())

1364

default : text_id.

Reset

();

1369  if

(text_id->IsSetAccession() && !text_id->GetAccession().empty())

1370  str

= text_id->GetAccession();

1371  if

((

str

.empty() || force_name) && text_id->IsSetName())

1373  str

= text_id->GetName();

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.

User-defined methods of the data storage class.

CRef< objects::CSeq_id > GetNewProtId(objects::CBioseq_Handle bsh, int &offset, string &id_label, bool general_only)

CAccessionToLocalId(objects::CSeq_entry_Handle seh, CSeq_inst::EMol filter, bool force_name)

void x_GetReplacementIds(CConstRef< CSeq_id > id, bool force_name)

bool IsSkippable(void) const

CRef< CCmdComposite > GetRemoveOriginalIdCommand(void)

wxRadioButton * m_Proteins

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

void x_CollectChangedIds(void)

bool Create(wxWindow *parent, wxWindowID id=10420, const wxString &caption=_("Edit Sequence Id"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

wxRadioButton * m_GeneralTag

CStringConstraintPanel * m_StringConstraintPanel

CEditSeqId()

Constructors.

CParseTextOptionsDlg * m_ParseOptions

static bool ShowToolTips()

Should we show tooltips?

virtual CRef< CCmdComposite > GetCommand(void)

virtual ~CEditSeqId()

Destructor.

void Init()

Initialises member variables.

wxCheckBox * m_RemoveOrig

void CreateControls()

Creates the controls and sizers.

wxRadioButton * m_GeneralDb

CGeneralToLocalId(objects::CSeq_entry_Handle seh, CSeq_inst::EMol filter=CSeq_inst::eMol_not_set)

CLocalToGeneralId(objects::CSeq_entry_Handle seh, CSeq_inst::EMol filter=CSeq_inst::eMol_not_set)

vector< pair< CConstRef< CSeq_id >, CRef< CSeq_id > > > m_old_to_new_id

void x_ChangeId(objects::CSeq_id &id)

virtual CRef< CCmdComposite > GetCommand(void)

void x_UpdateSeqAlign(objects::CSeq_align &align)

virtual void x_UpdateBioseq(CRef< CBioseq > new_seq)

void x_UpdateSeqAnnot(objects::CSeq_annot &annot)

void x_GetRemoveOriginalIdCommand(CRef< CCmdComposite > cmd)

objects::CSeq_entry_Handle m_TopSeqEntry

set< string > m_remove_ids

void x_UpdateLoc(objects::CSeq_loc &loc)

void x_UpdateVariation(objects::CVariation_ref &var)

void x_UpdateFeat(objects::CSeq_feat &feat)

string GetSelectedText(const string &input)

CStringConstraintPanel * m_StringConstraintPanel

void Init()

Initialises member variables.

static bool ShowToolTips()

Should we show tooltips?

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

bool Create(wxWindow *parent, wxWindowID id=10420, const wxString &caption=_("Remove General Id"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

void x_CollectChangedIds(void)

CRemoveGeneralId()

Constructors.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

virtual ~CRemoveGeneralId()

Destructor.

void CreateControls()

Creates the controls and sizers.

virtual CRef< CCmdComposite > GetCommand(void)

CRemoveName(objects::CSeq_entry_Handle seh)

void x_GetReplacementIds(CConstRef< CSeq_id > id)

virtual void x_UpdateBioseq(CRef< CBioseq > new_seq)

CRef< CCmdComposite > GetRemoveOriginalIdCommand()

namespace ncbi::objects::

void SetStringSelection(const wxString &str)

CRef< edit::CStringConstraint > GetStringConstraint()

iterator_bool insert(const value_type &val)

const_iterator find(const key_type &key) const

const_iterator end() const

static vector< string > arr

USING_SCOPE(ncbi::objects)

static DLIST_TYPE *DLIST_NAME() first(DLIST_LIST_TYPE *list)

static const char * str(char *buf, int n)

Utility macros and typedefs for exploring NCBI objects from general.asn.

#define FOR_EACH_USERFIELD_ON_USEROBJECT(Itr, Var)

FOR_EACH_USERFIELD_ON_USEROBJECT EDIT_EACH_USERFIELD_ON_USEROBJECT.

virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)

Set object to copy of another one.

virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)

Optimized implementation of CSerialObject::Assign, which is not so efficient.

virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)

Override Assign() to incorporate cache invalidation.

void SetId(CSeq_id &id)

set the 'id' field in all parts of this location

const CSeq_id * GetId(void) const

Get the id of the location return NULL if has multiple ids or no id at all.

bool IsSetInst_Mol(void) const

TClass GetClass(void) const

TBioseqCore GetBioseqCore(void) const

Get bioseq core structure.

bool CanGetClass(void) const

TInst_Mol GetInst_Mol(void) const

CBioseq_set_Handle GetParentBioseq_set(void) const

Return a handle for the parent Bioseq-set, or null handle.

@ fIncludeGivenEntry

Include the top (given) entry.

@ fRecursive

Iterate recursively.

CConstRef< C > ConstRef(const C *object)

Template function for conversion of const object pointer to CConstRef.

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 string IntToString(int value, TNumToStringFlags flags=0, int base=10)

Convert int to string.

static SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)

Find the pattern in the string.

static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)

Case-insensitive equality of a substring with another string.

static bool IsUpper(const CTempString str)

Checks if all letters in the given string have a upper case.

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.

@ fSplit_Tokenize

All delimiters are merged and trimmed, to get non-empty tokens only.

const TStr & GetStr(void) const

Get the variant data.

bool IsStr(void) const

Check if variant Str is selected.

bool IsSetDb(void) const

name of database or system Check if a value has been assigned to Db data member.

const TTag & GetTag(void) const

Get the Tag member data.

void SetTag(TTag &value)

Assign a value to Tag data member.

bool IsId(void) const

Check if variant Id is selected.

const TData & GetData(void) const

Get the Data member data.

bool IsSetTag(void) const

appropriate tag Check if a value has been assigned to Tag data member.

const TDb & GetDb(void) const

Get the Db member data.

void ResetTag(void)

Reset Tag data member.

bool IsStr(void) const

Check if variant Str is selected.

const TStr & GetStr(void) const

Get the variant data.

TStr & SetStr(void)

Select the variant.

const TLabel & GetLabel(void) const

Get the Label member data.

bool IsSetData(void) const

Check if a value has been assigned to Data data member.

void SetDb(const TDb &value)

Assign a value to Db data member.

TId GetId(void) const

Get the variant data.

bool IsTRNA(void) const

Check if variant TRNA is selected.

bool IsSetAnticodon(void) const

location of anticodon Check if a value has been assigned to Anticodon data member.

bool IsSetExt(void) const

generic fields for ncRNA, tmRNA, miscRNA Check if a value has been assigned to Ext data member.

const TExt & GetExt(void) const

Get the Ext member data.

const TTRNA & GetTRNA(void) const

Get the variant data.

bool IsSetColumns(void) const

data in columns Check if a value has been assigned to Columns data member.

void SetSegs(TSegs &value)

Assign a value to Segs data member.

bool IsSetSegs(void) const

Check if a value has been assigned to Segs data member.

bool IsDendiag(void) const

Check if variant Dendiag is selected.

bool IsStd(void) const

Check if variant Std is selected.

const TSegs & GetSegs(void) const

Get the Segs member data.

bool IsDenseg(void) const

Check if variant Denseg is selected.

const TClone & GetClone(void) const

Get the variant data.

bool IsSetData(void) const

the specific data Check if a value has been assigned to Data data member.

void SetLocation(TLocation &value)

Assign a value to Location data member.

bool IsCdregion(void) const

Check if variant Cdregion is selected.

bool IsSetSupport(void) const

will replace /experiment, /inference, model-evidence Check if a value has been assigned to Support da...

bool IsSetModel_evidence(void) const

Check if a value has been assigned to Model_evidence data member.

Tdata & Set(void)

Assign a value to data member.

void SetProduct(TProduct &value)

Assign a value to Product data member.

void SetSupport(TSupport &value)

Assign a value to Support data member.

const TData & GetData(void) const

Get the Data member data.

void SetData(TData &value)

Assign a value to Data data member.

const TProduct & GetProduct(void) const

Get the Product member data.

bool IsClone(void) const

Check if variant Clone is selected.

bool IsVariation(void) const

Check if variant Variation is selected.

const TSupport & GetSupport(void) const

Get the Support member data.

bool IsSet(void) const

Check if a value has been assigned to data member.

const TRna & GetRna(void) const

Get the variant data.

bool IsSetProduct(void) const

product of process Check if a value has been assigned to Product data member.

bool IsRna(void) const

Check if variant Rna is selected.

bool IsSetInference(void) const

Check if a value has been assigned to Inference data member.

bool IsSetClone_seq(void) const

Check if a value has been assigned to Clone_seq data member.

bool IsSetLocation(void) const

feature made from Check if a value has been assigned to Location data member.

TGeneral & SetGeneral(void)

Select the variant.

const TEmbl & GetEmbl(void) const

Get the variant data.

TEmbl & SetEmbl(void)

Select the variant.

const TTpe & GetTpe(void) const

Get the variant data.

TOther & SetOther(void)

Select the variant.

const TGenbank & GetGenbank(void) const

Get the variant data.

const TTpd & GetTpd(void) const

Get the variant data.

bool IsGeneral(void) const

Check if variant General is selected.

TTpe & SetTpe(void)

Select the variant.

const TTpg & GetTpg(void) const

Get the variant data.

TTpg & SetTpg(void)

Select the variant.

E_Choice Which(void) const

Which variant is currently selected.

TTpd & SetTpd(void)

Select the variant.

E_Choice

Choice variants.

TDdbj & SetDdbj(void)

Select the variant.

const TOther & GetOther(void) const

Get the variant data.

TLocal & SetLocal(void)

Select the variant.

const TDdbj & GetDdbj(void) const

Get the variant data.

const TLocal & GetLocal(void) const

Get the variant data.

void ResetName(void)

Reset Name data member.

bool IsLocal(void) const

Check if variant Local is selected.

const TGeneral & GetGeneral(void) const

Get the variant data.

TGenbank & SetGenbank(void)

Select the variant.

@ e_Other

for historical reasons, 'other' = 'refseq'

@ e_Tpe

Third Party Annot/Seq EMBL.

@ e_Tpd

Third Party Annot/Seq DDBJ.

@ e_Tpg

Third Party Annot/Seq Genbank.

bool IsSetLoc(void) const

region this applies to Check if a value has been assigned to Loc data member.

void SetLoc(TLoc &value)

Assign a value to Loc data member.

TSeq & SetSeq(void)

Select the variant.

@ eClass_nuc_prot

nuc acid and coded proteins

bool IsMap(void) const

Check if variant Map is selected.

const TSeg & GetSeg(void) const

Get the variant data.

void SetData(TData &value)

Assign a value to Data data member.

bool IsRef(void) const

Check if variant Ref is selected.

TId & SetId(void)

Assign a value to Id data member.

bool IsSetReplaced_by(void) const

these seqs make this one obsolete Check if a value has been assigned to Replaced_by data member.

const TInst & GetInst(void) const

Get the Inst member data.

bool IsSetAssembly(void) const

how was this assembled? Check if a value has been assigned to Assembly data member.

bool IsSetIds(void) const

Check if a value has been assigned to Ids data member.

Tdata & Set(void)

Assign a value to data member.

const TMap & GetMap(void) const

Get the variant data.

const TId & GetId(void) const

Get the Id member data.

bool IsSetHist(void) const

sequence history Check if a value has been assigned to Hist data member.

bool IsSetData(void) const

Check if a value has been assigned to Data data member.

bool IsSetExt(void) const

extensions for special types Check if a value has been assigned to Ext data member.

bool IsSetReplaces(void) const

seq makes these seqs obsolete Check if a value has been assigned to Replaces data member.

bool IsSetInst(void) const

the sequence data Check if a value has been assigned to Inst data member.

TDelta & SetDelta(void)

Select the variant.

Tdata & Set(void)

Assign a value to data member.

bool IsSet(void) const

Check if a value has been assigned to data member.

void SetReplaces(TReplaces &value)

Assign a value to Replaces data member.

bool IsSeg(void) const

Check if variant Seg is selected.

Tdata & Set(void)

Assign a value to data member.

bool IsDelta(void) const

Check if variant Delta is selected.

void SetInst(TInst &value)

Assign a value to Inst data member.

bool IsGraph(void) const

Check if variant Graph is selected.

const TSeq_table & GetSeq_table(void) const

Get the variant data.

EMol

molecule class in living organism

const TDelta & GetDelta(void) const

Get the variant data.

TSeg & SetSeg(void)

Select the variant.

bool IsSet(void) const

Check if a value has been assigned to data member.

const TData & GetData(void) const

Get the Data member data.

void SetReplaced_by(TReplaced_by &value)

Assign a value to Replaced_by data member.

bool IsSetId(void) const

equivalent identifiers Check if a value has been assigned to Id data member.

const TReplaces & GetReplaces(void) const

Get the Replaces member data.

bool IsSeq_table(void) const

Check if variant Seq_table is selected.

const TReplaced_by & GetReplaced_by(void) const

Get the Replaced_by member data.

TAssembly & SetAssembly(void)

Assign a value to Assembly data member.

bool IsIds(void) const

Check if variant Ids is selected.

bool IsSet(void) const

Check if a value has been assigned to data member.

TRef & SetRef(void)

Select the variant.

TMap & SetMap(void)

Select the variant.

bool IsLocs(void) const

Check if variant Locs is selected.

@ e_User

user defined object

@ eMol_na

just a nucleic acid

const TInstance & GetInstance(void) const

Get the variant data.

const TSet & GetSet(void) const

Get the variant data.

bool IsSetDelta(void) const

Sequence that replaces the location, in biological order.

TConsequence & SetConsequence(void)

Assign a value to Consequence data member.

void SetData(TData &value)

Assign a value to Data data member.

bool IsSetConsequence(void) const

Check if a value has been assigned to Consequence data member.

const TData & GetData(void) const

Get the Data member data.

bool IsInstance(void) const

Check if variant Instance is selected.

bool IsSet(void) const

Check if variant Set is selected.

bool IsSetVariations(void) const

Check if a value has been assigned to Variations data member.

bool IsSetData(void) const

Check if a value has been assigned to Data data member.

const struct ncbi::grid::netcache::search::fields::SIZE size

const GenericPointer< typename T::ValueType > T2 value

static bool GetSeqId(const T &d, set< string > &labels, const string name="", bool detect=false, bool found=false)

Utility macros and typedefs for exploring NCBI objects from seq.asn.

#define EDIT_EACH_SEQALIGN_ON_SEQANNOT(Itr, Var)

#define EDIT_EACH_SEQFEAT_ON_SEQANNOT(Itr, Var)

#define EDIT_EACH_SEQANNOT_ON_BIOSEQ(Itr, Var)

#define EDIT_EACH_ANNOTDESC_ON_SEQANNOT(Itr, Var)

Utility macros and typedefs for exploring NCBI objects from seqalign.asn.

#define EDIT_EACH_DENDIAG_ON_SEQALIGN(Itr, Var)

EDIT_EACH_DENDIAG_ON_SEQALIGN.

#define EDIT_EACH_SEQID_ON_DENDIAG(Itr, Var)

EDIT_EACH_SEQID_ON_DENDIAG.

#define EDIT_EACH_RECURSIVE_SEQALIGN_ON_SEQALIGN(Itr, Var)

EDIT_EACH_RECURSIVE_SEQALIGN_ON_SEQALIGN.

#define EDIT_EACH_STDSEG_ON_SEQALIGN(Itr, Var)

EDIT_EACH_STDSEG_ON_SEQALIGN.

#define EDIT_EACH_SEQID_ON_DENSEG(Itr, Var)

EDIT_EACH_SEQID_ON_DENSEG.

Utility macros and typedefs for exploring NCBI objects from seqfeat.asn.

#define EDIT_EACH_CODEBREAK_ON_CDREGION(Itr, Var)

Utility macros and typedefs for exploring NCBI objects from seqset.asn.


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