<
typenameT>
48 static void ModifyBioSource(objects::CBioSource& biosource) {T::ModifyBioSource(biosource);}
54 template<
typenameT>
57 for(objects::CFeat_CI feat_ci(seh, objects::SAnnotSelector(
type)); feat_ci; ++feat_ci)
59 constobjects::CSeq_feat&
orig= feat_ci->GetOriginalFeature();
61new_feat->Assign(
orig);
63 if(new_feat->IsSetDbxref())
65ModifyFeature(new_feat);
71 template<
typenameT>
74 if(biosource.IsSetOrg() && biosource.GetOrg().IsSetDb())
76ModifyBioSource(biosource);
83 template<
typenameT>
87 if((*it)->IsSource()) {
88 constobjects::CSeqdesc& orig_desc = **it;
90new_desc->Assign(orig_desc);
91 if(ChangeBioSource(new_desc->SetSource())) {
100GetDesc(**it, scope, composite);
105 template<
typenameT>
108GetDesc(*(tse.GetCompleteSeq_entry()), tse.GetScope(), composite);
110 for(objects::CFeat_CI feat_it(tse, objects::SAnnotSelector(objects::CSeqFeatData::e_Biosrc)); feat_it; ++feat_it) {
112new_feat->Assign(feat_it->GetOriginalFeature());
113 if(ChangeBioSource(new_feat->SetData().SetBiosrc())) {
void AddCommand(IEditCommand &command)
static void rm_dbxref_from_biosource_and_feats(objects::CSeq_entry_Handle seh, ICommandProccessor *cmd_processor)
static void rm_dbxref_from_biosource(objects::CSeq_entry_Handle seh, ICommandProccessor *cmd_processor)
static void ModifyBioSource(objects::CBioSource &biosource)
static void ModifyFeature(CRef< objects::CSeq_feat > feat)
static void rm_dbxref_from_feat(objects::CSeq_entry_Handle seh, objects::CSeqFeatData::E_Choice type, ICommandProccessor *cmd_processor)
static void ModifyBioSource(objects::CBioSource &biosource)
static void rm_taxon_from_feats_and_biosource(objects::CSeq_entry_Handle seh, ICommandProccessor *cmd_processor)
static void rm_taxon_from_feats(objects::CSeq_entry_Handle seh, ICommandProccessor *cmd_processor)
static void ModifyFeature(CRef< objects::CSeq_feat > feat)
static void GetDesc(const objects::CSeq_entry &se, objects::CScope &scope, CRef< CCmdComposite > composite)
static void FindFeatures(objects::CSeq_entry_Handle seh, objects::CSeqFeatData::E_Choice type, CRef< CCmdComposite > cmd)
static void FindBioSource(objects::CSeq_entry_Handle tse, CRef< CCmdComposite > composite)
static bool ChangeBioSource(objects::CBioSource &biosource)
static void ModifyBioSource(objects::CBioSource &biosource)
static void ModifyFeature(CRef< objects::CSeq_feat > feat)
Undo/Redo interface for editing operations.
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is orig
#define FOR_EACH_SEQENTRY_ON_SEQSET(Itr, Var)
FOR_EACH_SEQENTRY_ON_SEQSET EDIT_EACH_SEQENTRY_ON_SEQSET.
#define FOR_EACH_SEQDESC_ON_SEQENTRY(Itr, Var)
FOR_EACH_SEQDESC_ON_SEQENTRY EDIT_EACH_SEQDESC_ON_SEQENTRY.
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