product_to_cds.clear();
51 for(
autotse : tses) {
53 if(feat_it->IsSetProduct()) {
56product_to_cds[product].insert(fh);
67 for(
CFeat_CIfeat1(seh); feat1; ++feat1) {
68 for(
CFeat_CIfeat2(seh.
GetScope(), feat1->GetLocation()); feat2; ++feat2) {
69 if(feat1->GetSeq_feat_Handle() < feat2->GetSeq_feat_Handle() &&
70deleted_feats.
find(feat1->GetSeq_feat_Handle()) == deleted_feats.
end() &&
71deleted_feats.
find(feat2->GetSeq_feat_Handle()) == deleted_feats.
end()) {
74deleted_feats.
insert(feat2->GetSeq_feat_Handle());
84 boolis_genbank =
false;
85 boolis_embl =
false;
86 boolis_ddbj =
false;
87 boolis_refseq = force_refseq;
90 boolis_gibbmt =
false;
91 boolis_gibbsq =
false;
92 boolis_patent =
false;
95 for(
const auto& id_it : seq.
GetId()) {
97 switch(sid.
Which()) {
134 if((is_genbank || is_embl || is_ddbj || is_refseq)
135&& ! is_gibbmt && ! is_gibbsq && ! is_patent && ! is_wp && ! is_yp) {
146 if(fi->IsSetProduct()) {
148 if(prot_bsh && prot_bsh.
IsProtein()) {
149proteins.
insert(prot_bsh);
155 for(; b_iter; ++b_iter) {
158proteins.
find(bsh) == proteins.
end()) {
159orphan_proteins.
insert(bsh);
162 returnorphan_proteins;
iterator_bool insert(const value_type &val)
const_iterator find(const key_type &key) const
const_iterator end() const
Include a standard set of the NCBI C++ Toolkit most basic headers.
void GetProductToCDSMap(CScope &scope, map< CBioseq_Handle, set< CSeq_feat_Handle >> &product_to_cds)
set< CSeq_feat_Handle > GetDuplicateFeaturesForRemoval(CSeq_entry_Handle seh)
set< CBioseq_Handle > ListOrphanProteins(CSeq_entry_Handle seh, bool force_refseq)
bool AllowOrphanedProtein(const CBioseq &seq, bool force_refseq)
CConstRef< CSeq_id > GetSeqId(void) const
const CTextseq_id * GetTextseq_Id(void) const
Return embedded CTextseq_id, if any.
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
vector< CSeq_entry_Handle > TTSE_Handles
TBioseqCore GetBioseqCore(void) const
Get bioseq core structure.
bool IsProtein(void) const
CScope & GetScope(void) const
Get scope this handle belongs to.
CScope & GetScope(void) const
Get scope this handle belongs to.
virtual CSeq_id_Handle GetProductId(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
bool IsSetAccession(void) const
Check if a value has been assigned to Accession data member.
E_Choice Which(void) const
Which variant is currently selected.
const TAccession & GetAccession(void) const
Get the Accession member data.
@ e_Gibbmt
Geninfo backbone moltype.
@ e_Other
for historical reasons, 'other' = 'refseq'
@ e_Gibbsq
Geninfo backbone seqid.
const TId & GetId(void) const
Get the Id member data.
bool IsSetId(void) const
equivalent identifiers Check if a value has been assigned to Id data member.
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