;
47map<objects::CBioseq_Handle, set<objects::CSeq_feat_Handle> > product_to_cds;
49 stringend_str =
"ScoreData", ext_str;
50 for(
CFeat_CIfci(tse); fci; ++fci) {
51 const CSeq_feat& sf = fci->GetOriginalFeature();
54 if(ext_str.size() > end_str.size()
55&& ext_str.substr(0, 3) ==
"cdd" 56&& ext_str.substr(ext_str.size() - end_str.size()) == end_str) {
67 if( (*it)->GetDb() !=
"CDD") new_sf->
SetDbxref().push_back(*it);
69add_to_cmd<CSeq_feat>((CObject*)(&sf),(CObject*)(new_sf.
GetPointer()), composite);
void AddCommand(IEditCommand &command)
virtual void apply_to(const CSeq_entry_Handle &tse, CRef< CCmdComposite > composite)
namespace ncbi::objects::
CConstRef< CDbtag > GetNamedDbxref(const CTempString &db) const
Return a specified DB xref.
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
CScope & GetScope(void) const
Get scope this handle belongs to.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
bool NotEmpty(void) const THROWS_NONE
Check if CConstRef is not empty â pointing to an object and has a non-null value.
bool IsStr(void) const
Check if variant Str is selected.
const TStr & GetStr(void) const
Get the variant data.
const TType & GetType(void) const
Get the Type member data.
bool CanGetDbxref(void) const
Check if it is safe to call GetDbxref method.
TDbxref & SetDbxref(void)
Assign a value to Dbxref data member.
const TDbxref & GetDbxref(void) const
Get the Dbxref member data.
bool CanGetExt(void) const
Check if it is safe to call GetExt method.
void ResetDbxref(void)
Reset Dbxref data member.
const TExt & GetExt(void) const
Get the Ext member data.
Magic spell ;-) needed for some weird compilers... very empiric.
void GetProductToCDSMap(objects::CScope &scope, map< objects::CBioseq_Handle, set< objects::CSeq_feat_Handle > > &product_to_cds)
CRef< CCmdComposite > GetDeleteFeatureCommand(const objects::CSeq_feat_Handle &fh, bool remove_proteins=true)
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