50 for (
unsigned int i = 0;
i < bioseqVec.size();
i++)
57 for (
unsigned int i = 0;
i < bioseqVec.size();
i++)
59 list< CRef< CSeq_id > >& seqIds = bioseqVec[
i]->SetId();
60 for (list<
CRef< CSeq_id > >::iterator it= seqIds.begin(); it != seqIds.end(); it++)
62 for (
unsigned int j = 0; j < bioseqVec.size(); j++)
71 list< CRef< CSeq_id > >& seqIds = bioseq->
SetId();
72 for (list<
CRef< CSeq_id > >::iterator it= seqIds.begin(); it != seqIds.end(); it++)
83 list< CRef< CSeq_entry > >::iterator it = seqSet.begin();
84 for (; it != seqSet.end(); it++)
104 bioseqVec.push_back(it->second);
105 return bioseqVec.size();
110 vector< CRef< CBioseq > > bioseqVec;
113 for (
unsigned int i = 0;
i < bioseqVec.size();
i++)
116 CBioseq::TId::const_iterator it = ids.begin(), itend = ids.end();
117 for (; it != itend; ++it)
119 if ((*it)->Match(*seqId))
121 bioseq = bioseqVec[
i];
135 seqEntry->
SetSeq(*bioseq);
147 err =
"Cannot open file for writing";
153 LOG_POST(
"Failed to write to "<<filename<<
" because of "<<err);
155 LOG_POST(
"Failed to write to "<<filename<<
"because of "<<err);
void addSequence(CRef< CBioseq > bioseq)
bool findSequence(CRef< CSeq_id > seqId, CRef< CBioseq > &bioseq) const
void dump(string filename)
unsigned findSequencesInTheGroup(CRef< CSeq_id > seqId, vector< CRef< CBioseq > > &bioseqVec) const
void addSequences(vector< CRef< CBioseq > > &bioseqVec, bool grouped=false)
const_iterator_pair equal_range(const key_type &key) const
container_type::const_iterator const_iterator
const_iterator end() const
iterator insert(const value_type &val)
const_iterator begin() const
container_type::iterator iterator
container_type::value_type value_type
static bool WriteASNToStream(ncbi::CNcbiOstream &os, const ASNClass &ASNobject, bool isBinary, std::string *err, ncbi::EFixNonPrint fixNonPrint=ncbi::eFNP_Default)
std::ofstream out("events_result.xml")
main entry point for tests
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
#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.
IO_PREFIX::ofstream CNcbiOfstream
Portable alias for ofstream.
TSet & SetSet(void)
Select the variant.
bool IsSet(void) const
Check if variant Set is selected.
TSeq & SetSeq(void)
Select the variant.
TSeq_set & SetSeq_set(void)
Assign a value to Seq_set data member.
TId & SetId(void)
Assign a value to Id data member.
list< CRef< CSeq_id > > TId
range(_Ty, _Ty) -> range< _Ty >