<<
"No Bad Residues";
54 out<<
"Bad Residues = ";
55 if( m_BadResiduePositions.m_SeqId ) {
56 out<< m_BadResiduePositions.m_SeqId->GetSeqIdString(
true);
58 out<<
"Seq-id ::= NULL";
60 out<<
", positions: ";
61m_BadResiduePositions.ConvertBadIndexesToString(
out);
67 const intlineNum = new_line_iter->first;
68 constvector<TSeqPos> & src_seqpos_vec = new_line_iter->second;
70 if( src_seqpos_vec.empty() ) {
74vector<TSeqPos> & dest_seqpos_vec =
75m_BadIndexMap[lineNum];
76 copy( src_seqpos_vec.begin(), src_seqpos_vec.end(),
77back_inserter(dest_seqpos_vec) );
83 unsigned intmaxRanges )
const 85 const char*line_prefix =
"";
86 unsigned intiRangesFound = 0;
88 const intlineNum = index_map_iter->first;
89 constvector<TSeqPos> & badIndexesOnLine = index_map_iter->second;
92 _ASSERT(adjacent_find(badIndexesOnLine.begin(), badIndexesOnLine.end(),
93std::greater<int>()) == badIndexesOnLine.end() );
95 typedefpair<TSeqPos, TSeqPos>
TRange;
100 ITERATE( vector<TSeqPos>, idx_iter, badIndexesOnLine ) {
104 if( rangesFound.empty() ) {
105rangesFound.push_back(
TRange(idx, idx));
110 const TSeqPoslast_idx = rangesFound.back().second;
111 if( idx == (last_idx+1) ) {
113++rangesFound.back().second;
117 if( iRangesFound >= maxRanges ) {
122rangesFound.push_back(
TRange(idx, idx));
127 out<< line_prefix <<
"On line "<< lineNum <<
": ";
130 const char*pos_prefix =
"";
131 for(
unsigned intrng_idx = 0;
132( rng_idx < rangesFound.size() );
136 const TRange&range = rangesFound[rng_idx];
137 out<< (range.first + 1);
138 if( range.first != range.second ) {
139 out<<
"-"<< (range.second + 1);
144 if(iRangesFound > maxRanges) {
145 out<<
", and more";
CLocalRange< TOffset > TRange
define for the fundamental building block of sequence ranges
The NCBI C++ standard methods for dealing with std::string.
std::ofstream out("events_result.xml")
main entry point for tests
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#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::ostream CNcbiOstream
Portable alias for ostream.
constexpr bool empty(list< Ts... >) noexcept
NCBI C++ stream class wrappers for triggering between "new" and "old" C++ stream libraries.
void copy(Njn::Matrix< S > *matrix_, const Njn::Matrix< T > &matrix0_)
vector< CRef< CSeq_interval > > TRangeVec
void AddBadIndexMap(const TBadIndexMap &additionalBadIndexMap)
void ConvertBadIndexesToString(CNcbiOstream &out, unsigned int maxRanges=1000) const
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