BOOST_CHECK_EQUAL(idh2, mapped_idh);
76mapped_idh = mapper.
Map(idh3);
77BOOST_CHECK_EQUAL(idh3, mapped_idh);
98loc1.
SetInt().SetFrom( 0);
99loc1.
SetInt().SetTo (100);
105BOOST_CHECK_EQUAL(idh2, mapped_idh);
124loc1.
SetInt().SetFrom( 10);
125loc1.
SetInt().SetTo (100);
129loc2.
SetInt().SetFrom( 0);
130loc2.
SetInt().SetTo (90);
137loc3.
SetPnt().SetPoint(55);
143BOOST_CHECK_EQUAL(idh2, mapped_idh);
163loc1.
SetInt().SetFrom( 10);
164loc1.
SetInt().SetTo (100);
172sub->
SetInt().SetFrom(0);
173sub->
SetInt().SetTo(45);
175loc2.
SetMix().Set().push_back(sub);
178sub->
SetInt().SetFrom(0);
179sub->
SetInt().SetTo(44);
181loc2.
SetMix().Set().push_back(sub);
189loc3.
SetPnt().SetPoint(40);
195BOOST_CHECK_EQUAL(idh2, mapped_idh);
201loc3.
SetPnt().SetPoint(60);
207BOOST_CHECK_EQUAL(idh3, mapped_idh);
213loc3.
SetInt().SetFrom(45);
214loc3.
SetInt().SetTo(60);
219BOOST_CHECK_EQUAL(loc4->
GetId(), (
const CSeq_id*)
nullptr);
233BOOST_CHECK( !loc_iter );
255loc1.
SetInt().SetFrom( 10);
256loc1.
SetInt().SetTo (100);
260BOOST_CHECK_EQUAL(
GI_CONST(224589800), mapped_idh.
GetGi());
264BOOST_CHECK_EQUAL(
GI_CONST(224589800), mapped_idh.
GetGi());
271loc2.
SetInt().SetFrom( 10);
272loc2.
SetInt().SetTo (100);
276BOOST_CHECK_EQUAL(
GI_CONST(224589811), mapped_idh.
GetGi());
280BOOST_CHECK_EQUAL(
GI_CONST(224589811), mapped_idh.
GetGi());
IdMapper implementation using hardcoded values.
IdMapper base class implementation.
virtual CSeq_id_Handle Map(const CSeq_id_Handle &)
Map a single given CSeq_id_Handle to another.
virtual void AddMapping(const CSeq_id_Handle &from, const CSeq_id_Handle &to)
Add a mapping to the internal mapping table.
Seq-loc iterator class â iterates all intervals from a seq-loc in the correct order.
unsigned int TSeqPos
Type for sequence locations and lengths.
static CSeq_id_Handle GetHandle(const CSeq_id &id)
Normal way of getting a handle, works for any seq-id.
void SetId(CSeq_id &id)
set the 'id' field in all parts of this location
CSeq_id_Handle GetSeq_id_Handle(void) const
const CSeq_id * GetId(void) const
Get the id of the location return NULL if has multiple ids or no id at all.
TRange GetRange(void) const
Get the range.
void Reset(void)
Reset reference object.
const TPnt & GetPnt(void) const
Get the variant data.
TPoint GetPoint(void) const
Get the Point member data.
TFrom GetFrom(void) const
Get the From member data.
E_Choice Which(void) const
Which variant is currently selected.
TTo GetTo(void) const
Get the To member data.
const TInt & GetInt(void) const
Get the variant data.
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Utility stuff for more convenient using of Boost.Test library.
BOOST_AUTO_TEST_CASE(Test_SimpleIdMapper)
Test simple seq-id -> seq-id mapping, given a mapping table of seq-id -> seq-id.
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