77 product-id gi 148225248, \
78 genomic-id gi 224514980, \
79 genomic-strand plus, \
80 product-type protein, \
83 product-start protpos { \
87 product-end protpos { \
91 genomic-start 30641728, \
92 genomic-end 30642468, \
107 product-length 278, \
109 stop-codon-found TRUE \
122 BOOST_CHECK_NO_THROW(align.
Validate(
true));
128 BOOST_CHECK_EQUAL( stops.
size(), 2U );
201 product-id gi 148225248, \
202 genomic-id gi 224514980, \
203 genomic-strand plus, \
204 product-type protein, \
207 product-start protpos { \
211 product-end protpos { \
215 genomic-start 30641728, \
216 genomic-end 30642468, \
231 product-length 278, \
233 stop-codon-found TRUE \
246 BOOST_CHECK_NO_THROW(align.
Validate(
true));
252 BOOST_CHECK_EQUAL( starts_stops.first.size(), 10U );
253 BOOST_CHECK_EQUAL( starts_stops.second.size(), 3U );
267 product-id gi 488735231, \
268 genomic-id gi 6382081, \
269 genomic-strand plus, \
270 product-type protein, \
273 product-start protpos { \
277 product-end protpos { \
289 product-length 431, \
291 stop-codon-found TRUE \
304 BOOST_CHECK_NO_THROW(align.
Validate(
true));
310 BOOST_CHECK_EQUAL( *starts_stops.first.rbegin(), 30740U );
324 product-id gi 487809918, \
325 genomic-id gi 341576043, \
326 genomic-strand minus, \
327 product-type protein, \
330 product-start protpos { \
334 product-end protpos { \
338 genomic-start 84235, \
354 product-length 166, \
356 start-codon-found TRUE, \
357 stop-codon-found TRUE \
370 BOOST_CHECK_NO_THROW(align.
Validate(
true));
379 BOOST_CHECK_EQUAL( *stops.
begin(), 84609U );
393 product-id gi 148225248, \
394 genomic-id gi 224514980, \
395 genomic-strand plus, \
396 product-type protein, \
399 product-start protpos { \
403 product-end protpos { \
407 genomic-start 30641728, \
408 genomic-end 30642468, \
423 product-length 278, \
425 stop-codon-found TRUE \
438 BOOST_CHECK_NO_THROW(align.
Validate(
true));
447 if (s->second ==
"ATG")
451 BOOST_CHECK_EQUAL( atg_starts, 3 );
465 product-id gi 490246827, \
466 genomic-id gi 364515570, \
467 genomic-strand minus, \
468 product-type protein, \
471 product-start protpos { \
475 product-end protpos { \
479 genomic-start 5332055, \
480 genomic-end 5333941, \
487 product-length 629, \
489 start-codon-found TRUE, \
490 stop-codon-found TRUE \
503 BOOST_CHECK_NO_THROW(align.
Validate(
true));
510 BOOST_CHECK( starts_stops_ranges.first.find(
TSeqRange(5333941,5333939)) != starts_stops_ranges.first.end() );
511 BOOST_CHECK_EQUAL( starts_stops_ranges.first[
TSeqRange(5333941,5333939)],
"ATG" );
526 product-id gi 487427171, \
527 genomic-id gi 357958168, \
528 genomic-strand plus, \
529 product-type protein, \
532 product-start protpos { \
536 product-end protpos { \
560 BOOST_CHECK_NO_THROW(align.
Validate(
true));
567 BOOST_CHECK_EQUAL( gaps.
size(), 3U );
568 auto it = gaps.
begin();
569 BOOST_CHECK_EQUAL( it->GetFrom(), -10 );
570 BOOST_CHECK_EQUAL( it->GetTo(), -1 );
572 BOOST_CHECK_EQUAL( it->GetFrom(), 26 );
573 BOOST_CHECK_EQUAL( it->GetTo(), 28 );
575 BOOST_CHECK_EQUAL( it->GetFrom(), 1405 );
576 BOOST_CHECK_EQUAL( it->GetTo(), 1414 );
static TRegisterLoaderInfo RegisterInObjectManager(CObjectManager &om, CReader *reader=0, CObjectManager::EIsDefault is_default=CObjectManager::eDefault, CObjectManager::TPriority priority=CObjectManager::kPriority_NotSet)
set< TSeqPos > FindStops(const CSeq_align &align)
pair< map< TSeqRange, string >, set< TSeqRange > > FindStartStopRanges(const CSeq_align &align, int padding=0, set< TSignedSeqRange > *gaps=nullptr)
pair< set< TSeqPos >, set< TSeqPos > > FindStartsStops(const CSeq_align &align, int padding=0)
void Validate(bool full_test=false) const
const_iterator begin() const
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
@ eSerial_AsnText
ASN.1 text.
static CObjectIStream * Open(ESerialDataFormat format, CNcbiIstream &inStream, bool deleteInStream)
Create serial object reader and attach it to an input stream.
static CRef< CObjectManager > GetInstance(void)
Return the existing object manager or create one.
void AddDefaults(TPriority pri=kPriority_Default)
Add default data loaders from object manager.
map< TSeqRange, string > TStarts
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Defines command line argument related classes.
Defines unified interface to application:
CRef< objects::CObjectManager > om
Utility stuff for more convenient using of Boost.Test library.
NCBITEST_INIT_CMDLINE(arg_desc)
BOOST_AUTO_TEST_CASE(TestProtein)