57 list<CRef<CSeq_id> > seqid_list = seqinfo_src->GetId(oid);
67 *length = seqinfo_src->GetLength(oid);
79 list<CRef<CSeq_id> > seqid_list = seqinfo_src->GetId(oid);
86 *length = seqinfo_src->GetLength(oid);
101 list< CRef<CSeq_id> > seqid_list = seqinfo_src.
GetId(oid);
102 gis.reserve(seqid_list.size());
106 gis.push_back((**id).GetGi());
110 sort(gis.begin(), gis.end());
115 vector<string> & seqids,
124 list< CRef<CSeq_id> > seqid_list = seqinfo_src.
GetId(oid);
131 string sid_string =
"gi:" + (*id)->GetSeqIdString(
true);
132 seqids.push_back(sid_string);
140 string sid_string =
"seqid:" + (*id)->GetSeqIdString(
true);
141 seqids.push_back(sid_string);
143 else if ((*id)->IsPdb())
145 string sid_string =
"seqid:" + (*id)->GetSeqIdString(
true);
146 seqids.push_back(sid_string);
Declarations of auxiliary functions using IBlastSeqInfoSrc to retrieve ids and related sequence infor...
Abstract base class to encapsulate retrieval of sequence identifiers.
virtual list< CRef< objects::CSeq_id > > GetId(Uint4 index) const =0
Method to retrieve a sequence identifier given its ordinal number.
void GetSequenceLengthAndId(const blast::IBlastSeqInfoSrc *seqinfo_src, int oid, CRef< CSeq_id > &seqid, TSeqPos *length)
void GetFilteredRedundantSeqids(const IBlastSeqInfoSrc &sisrc, int oid, vector< string > &seqids, bool use_gis=true)
Get Seqids for a sequence in a redundant database.
void GetFilteredRedundantGis(const IBlastSeqInfoSrc &sisrc, int oid, vector< TGi > &gis)
Get GIs for a sequence in a redundant database.
virtual bool HasGiList() const =0
Returns true if the subject is restricted by a GI list.
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
C & SerialAssign(C &dest, const C &src, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
static int BestRank(const CRef< CSeq_id > &id)
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define USING_SCOPE(ns)
Use the specified namespace.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
C::value_type FindBestChoice(const C &container, F score_func)
Find the best choice (lowest score) for values in a container.
bool IsSetAccession(void) const
Check if a value has been assigned to Accession data member.
bool IsGi(void) const
Check if variant Gi is selected.
constexpr auto sort(_Init &&init)
Useful/utility classes and methods.