xDeprecatedQualsMoreData:
public CObject 60more_obj.
Reset(
newxDeprecatedQualsMoreData);
61more_obj->m_qual = qual;
63 autodisc_obj =
context.BiosourceObjRef(*biosrc,
true, more_obj);
64 auto key=
"[n] bioseq[s] [has] '"+ qual +
"' qualifier";
65 auto& rec = report_node[
"Deprecated Qualifiers"][
key];
69 template<
typename_Container>
72 for(
auto& it : vec) {
74 if(rec.IsDeprecated()) {
75 autoqual = rec.GetSubtypeName(rec.GetSubtype(),
std::remove_cvref_t<decltype(rec)>::eVocabulary_raw);
76xRegisterBioSrc(
context, biosrc, report_node, qual);
82 template<
typename_Container,
typename_Removed>
83 unsignedxRemoveDeprecated(_Removed& removed_quals, _Container& vec,
constxDeprecatedQualsMoreData* qual_to_remove)
86 for(
autoit = vec.begin(); it != vec.end(); ) {
88 if(rec.IsDeprecated()) {
89 autoqual = rec.GetSubtypeName(rec.GetSubtype(),
std::remove_cvref_t<decltype(rec)>::eVocabulary_raw);
90 if(qual_to_remove ==
nullptr|| (qual == qual_to_remove->m_qual)) {
91removed_quals.insert(qual);
107 if(biosrc->CanGetSubtype()) {
108 auto& subtype = biosrc->GetSubtype();
109xRegisterBioSrc(subtype,
context, biosrc, m_Objs);
111 if(biosrc->IsSetOrgMod()) {
112 auto& mods = biosrc->GetOrg().GetOrgname().GetMod();
113xRegisterBioSrc(mods,
context, biosrc, m_Objs);
120 unsignedremoved = 0;
122std::set<string> removed_quals;
126 automore_data =
static_cast<constxDeprecatedQualsMoreData*
>(obj->GetMoreInfo().GetPointerOrNull());
132removed += xRemoveDeprecated(removed_quals, subtype, more_data);
135 auto& mods = biosrc->
SetOrg().SetOrgname().SetMod();
136removed += xRemoveDeprecated(removed_quals, mods, more_data);
140 if(removed && !removed_quals.empty() ) {
143 return Ref(
new CAutofixReport(
"DEPRECATED: [n] removed qualifier[s] ("+ s +
")", removed));
153 for(
auto& rec: m_ReportItems) {
bool IsSetOrgMod(void) const
static void Add(TReportObjectList &list, TReportObjectSet &hash, CReportObj &obj, bool unique=true)
#define DISCREPANCY_AUTOFIX(name)
#define DISCREPANCY_CASE(name, type, group, descr)
#define DISCREPANCY_SUMMARIZE(name)
CRef< C > Ref(C *object)
Helper functions to get CRef<> and CConstRef<> objects.
void Reset(void)
Reset reference object.
#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 string Join(const TContainer &arr, const CTempString &delim)
Join strings using the specified delimiter.
bool CanGetSubtype(void) const
Check if it is safe to call GetSubtype method.
void SetOrg(TOrg &value)
Assign a value to Org data member.
TSubtype & SetSubtype(void)
Assign a value to Subtype data member.
CBioSource * GetBioSourceFromContext(CDiscrepancyObject *obj, CDiscrepancyContext &context)
const struct ncbi::grid::netcache::search::fields::KEY key
typename remove_cvref< T >::type remove_cvref_t
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