66 m_FluType = GetInfluenzaType(
key);
67 m_Required = GetNumRequired(m_FluType);
109 if (pOrgMod->IsSetSubtype() && pOrgMod->IsSetSubname()) {
111 strain = pOrgMod->GetSubname();
114 serotype = pOrgMod->GetSubname();
126 return org.
GetTaxname() +
":" + strain +
":" + serotype;
145 bool foundSeg =
false;
147 if (pSubSource && pSubSource->IsSetSubtype() && pSubSource->IsSetName() &&
150 if (segment < 1 || segment > numRequired ) {
153 segsFound.
insert(segment);
@ eExtreme_Biological
5' and 3'
CBioseq_set_EditHandle –.
static size_t GetNumRequired(EInfluenzaType fluType)
static EInfluenzaType GetInfluenzaType(const string &taxname)
static string GetKey(const COrg_ref &org)
void AddBioseq(CBioseq_Handle bsh)
vector< CBioseq_Handle > TMembers
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
iterator_bool insert(const value_type &val)
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
TClass GetClass(void) const
void Remove(void) const
Remove this Seq-entry from parent, or scope if it's top level Seq-entry.
CBioseq_set_Handle GetParentBioseq_set(void) const
Return a handle for the parent Bioseq-set, or null handle.
CSeq_entry_Handle GetParentEntry(void) const
Return a handle for the parent seq-entry of the bioseq.
CSeq_entry_EditHandle AttachEntry(CSeq_entry &entry, int index=-1) const
Attach an existing seq-entry.
bool IsSetClass(void) const
CSeq_entry_EditHandle AttachEntry(CSeq_entry &entry, int index=-1) const
Attach an existing seq-entry.
CSeq_entry_Handle GetParentEntry(void) const
Get parent Seq-entry handle.
SAnnotSelector & IncludeFeatType(TFeatType type)
Include feature type in the search.
#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 IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
static size_t StringToSizet(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to size_t.
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
@ fConvErr_NoThrow
Do not throw an exception on error.
@ eNocase
Case insensitive compare.
const TSubtype & GetSubtype(void) const
Get the Subtype member data.
bool IsSetSubtype(void) const
Check if a value has been assigned to Subtype data member.
const TMod & GetMod(void) const
Get the Mod member data.
const TTaxname & GetTaxname(void) const
Get the Taxname member data.
bool IsSetMod(void) const
Check if a value has been assigned to Mod data member.
bool IsSetOrgname(void) const
Check if a value has been assigned to Orgname data member.
bool IsSetTaxname(void) const
preferred formal name Check if a value has been assigned to Taxname data member.
const TOrgname & GetOrgname(void) const
Get the Orgname member data.
TSet & SetSet(void)
Select the variant.
void SetClass(TClass value)
Assign a value to Class data member.
@ eClass_nuc_prot
nuc acid and coded proteins
@ eClass_small_genome_set
viral segments or mitochondrial minicircles
const TSource & GetSource(void) const
Get the variant data.
@ e_Source
source of materials, includes Org-ref
bool g_FindSegs(const CBioSource &src, size_t numRequired, set< size_t > &segsFound)
const struct ncbi::grid::netcache::search::fields::KEY key
double f(double x_, const double &y_)