44 bool stop_at_stop,
bool cleanup_partials,
bool merge_abutting,
bool extend_over_gaps,
bool create_general_only,
53 edit::CFeaturePropagator propagator(src, target, align, stop_at_stop, cleanup_partials, merge_abutting, extend_over_gaps, listener, feat_id);
54 vector<CRef<CSeq_feat>> prop_feats = propagator.PropagateFeatureList(feat_list);
59 auto it = prop_feats.begin();
60 while (it != prop_feats.end()) {
64 if (feat.IsSetData() && feat.GetData().IsCdregion()) {
68 if (prot_it != prop_feats.end() &&
69 (*prot_it)->IsSetData() && (*prot_it)->GetData().IsProt()) {
71 prot_feat->
Assign(**prot_it);
74 vector<CRef<CSeq_id>> new_prot_id;
CRef< objects::CSeq_id > GetNewProtId(objects::CBioseq_Handle bsh, int &offset, string &id_label, bool general_only)
void AddCommand(IEditCommand &command)
static string s_GetProductSequence(const objects::CSeq_feat &cds, objects::CScope &scope)
Default implementation of IMessageListener: collects all messages posted.
namespace ncbi::objects::
void PropagateToTarget(CRef< CCmdComposite > composite, const vector< CConstRef< CSeq_feat >> &feat_list, CBioseq_Handle src, CBioseq_Handle target, const CSeq_align &align, bool stop_at_stop, bool cleanup_partials, bool merge_abutting, bool extend_over_gaps, bool create_general_only, CMessageListener_Basic *listener, CObject_id::TId *feat_id)
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
TClass GetClass(void) const
CBioseq_set_Handle GetParentBioseq_set(void) const
Return a handle for the parent Bioseq-set, or null handle.
bool CanGetClass(void) const
CSeq_entry_Handle GetSeq_entry_Handle(void) const
Get parent Seq-entry handle.
CSeq_entry_Handle GetParentEntry(void) const
Return a handle for the parent seq-entry of the bioseq.
CScope & GetScope(void) const
Get scope this handle belongs to.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
@ eClass_nuc_prot
nuc acid and coded proteins