(!comment.empty()) {
50 if(feat.IsSetComment() && !feat.GetComment().empty()) {
51 if(feat.GetComment().find(comment) != string::npos) {
55feat.SetComment() +=
"; ";
57feat.SetComment() += comment;
59feat.SetComment(comment);
67 return prot.IsSetName() &&
prot.GetName().size() > 0 ?
prot.GetName().front() :
"";
83 for(
const auto& it : feat.
GetXref()) {
84 if(it->IsSetData() && it->GetData().IsProt()) {
99 if(desc ==
nullptr) {
102 return&feat->
SetData().SetBiosrc();
namespace ncbi::objects::
CBioseq_Handle GetBioseqFromSeqLoc(const CSeq_loc &loc, CScope &scope, CScope::EGetBioseqFlag flag=CScope::eGetBioseq_Loaded)
Retrieve the Bioseq Handle from a location.
const CSeq_feat & GetOriginalFeature(void) const
Get original feature with unmapped location/product.
#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 EndsWith(const CTempString str, const CTempString end, ECase use_case=eCase)
Check if a string ends with a specified suffix value.
bool IsSetData(void) const
the specific data Check if a value has been assigned to Data data member.
bool IsSetXref(void) const
cite other relevant features Check if a value has been assigned to Xref 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 IsBiosrc(void) const
Check if variant Biosrc is selected.
const TProt & GetProt(void) const
Get the variant data.
const TXref & GetXref(void) const
Get the Xref member data.
bool IsSetProduct(void) const
product of process Check if a value has been assigned to Product data member.
bool IsSource(void) const
Check if variant Source is selected.
TSource & SetSource(void)
Select the variant.
void AddComment(CSeq_feat &feat, const string &comment)
CBioSource * GetBioSourceFromContext(CDiscrepancyObject *obj, CDiscrepancyContext &context)
static string GetProductName(const CProt_ref &prot)
Utility macros and typedefs for exploring NCBI objects from seq.asn.
static CS_CONTEXT * context
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