61 auto bsref =
context.BioseqObjRef();
62 string item =
" [n] sequence[s] [has] [(]" + to_string(total) +
"[)] rRNA feature" + (total == 1 ?
kEmptyStr :
"s");
63 m_Objs[item].Add(*bsref).Incr();
64 string short_name = bsref->GetBioseqLabel();
65 string subitem =
"[n] rRNA feature[s] found on [(]" + short_name;
66 for (
auto& it :
tmp.GetMap()) {
67 m_Objs[item][subitem].Ext().Add(it.second->GetObjects());
69 for (
auto& it :
tmp.GetMap()) {
70 if (it.second->GetObjects().size() > 1) {
71 m_Objs[
"[(]" + to_string(it.second->GetObjects().size()) +
"[)] rRNA features on [(]" + short_name +
"[)] have the same name [(](" + it.first +
")"].Add(
tmp[it.first].GetObjects());
132 if (DesiredCount->empty()) {
138 auto bsref =
context.BioseqObjRef();
139 string item =
" [n] sequence[s] [has] [(]" + to_string(total) +
"[)] tRNA feature" + (total == 1 ?
kEmptyStr :
"s");
140 m_Objs[item].NoRec().Add(*bsref);
141 string short_name = bsref->GetBioseqLabel();
142 string subitem =
"[n] tRNA feature[s] found on [(]" + short_name;
143 for (
auto& it :
tmp.GetMap()) {
144 m_Objs[item][subitem].Ext().Add(it.second->GetObjects());
151 m_Objs[subitem].Add(*bsref);
156 for (
auto& it :
tmp.GetMap()) {
157 if (DesiredCount->find(it.first) == DesiredCount->end()) {
158 subitem =
"Sequence [(]" + short_name +
"[)] has [(]" + to_string(it.second->GetObjects().size()) +
"[)] trna-[(]" + it.first +
"[)] feature" + (it.second->GetObjects().size() == 1 ?
kEmptyStr :
"s");
159 m_Objs[subitem].Add(*bsref);
160 m_Objs[subitem].Add(
tmp[it.first].GetObjects(),
false);
168 m_Objs[subitem].Add(*bsref);
namespace ncbi::objects::
#define DISCREPANCY_CASE1(name, type, group, descr,...)
vector< CConstRef< CObject > > GetObjects(CSeq_entry_Handle seh, const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class, CConstRef< objects::CSeq_submit > submit, CRef< CEditingActionConstraint > constraint, vector< CSeq_entry_Handle > *descr_context=nullptr)
static string rRnaLabel(const CSeqFeatData &data)
static const DesiredAAData desired_aaList[]
constexpr size_t ArraySize(const Element(&)[Size])
#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.
TGenome GetGenome(void) const
Get the Genome member data.
bool IsSetGenome(void) const
Check if a value has been assigned to Genome data member.
@ e_Name
for naming "other" type
const TSource & GetSource(void) const
Get the variant data.
static CS_CONTEXT * context