A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/unit__test__loc__edit_8cpp_source.html below:

NCBI C++ ToolKit: src/objtools/edit/unit_test/unit_test_loc_edit.cpp Source File

136

arg_desc->AddFlag(

"debug_mode"

,

137  "Debugging mode writes errors seen for each test"

);

145  if

(args[

"debug_mode"

]) {

164

BOOST_CHECK_EQUAL(cds.

IsSetPartial

(), (partial5 || partial3));

195

new_feat.

Reset

(prot_entry->

SetSeq

().

SetAnnot

().front()->SetData().SetFtable().back());

200

pnt->

SetId

().SetLocal().SetStr(

"prot"

);

201

new_seq_loc->

SetPnt

(*pnt);

208  CSeq_loc

& seq_loc = (*it)->SetLocation();

209  if

(seq_loc.

IsInt

()) {

224

edit::CLocationEditPolicy policy(edit::CLocationEditPolicy::ePartialPolicy_eNoChange,

225

edit::CLocationEditPolicy::ePartialPolicy_eNoChange,

227

edit::CLocationEditPolicy::eMergePolicy_NoChange);

234

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

235

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

241

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eSet);

246

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eClear);

247

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eSet);

252

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetAtEnd);

253

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eClearNotAtEnd);

258

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd);

259

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eSet);

260

policy.SetExtend3(

true

);

265

scope.RemoveTopLevelSeqEntry(seh);

268

seh = scope.AddTopLevelSeqEntry(*entry);

269

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

270

policy.SetExtend5(

true

);

271

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd);

272

policy.SetExtend3(

true

);

277

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd);

284

scope.RemoveTopLevelSeqEntry(seh);

288

seh = scope.AddTopLevelSeqEntry(*entry);

289  string

orig_prot_seq, new_prot_seq;

291

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

292

policy.SetExtend5(

true

);

293

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

294

policy.SetExtend3(

true

);

300

BOOST_CHECK_EQUAL(

string

(

"M"

) + orig_prot_seq, new_prot_seq);

301

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd);

306

scope.RemoveTopLevelSeqEntry(seh);

310

seh = scope.AddTopLevelSeqEntry(*entry);

311

orig_prot_seq = new_prot_seq =

kEmptyStr

;

313

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

314

policy.SetExtend5(

true

);

315

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

316

policy.SetExtend3(

true

);

322

BOOST_CHECK_EQUAL(

string

(

"M"

) + orig_prot_seq, new_prot_seq);

323

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd);

328

scope.RemoveTopLevelSeqEntry(seh);

332

seh = scope.AddTopLevelSeqEntry(*entry);

333

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

334

policy.SetExtend5(

true

);

335

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

336

policy.SetExtend3(

true

);

341

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd);

346

scope.RemoveTopLevelSeqEntry(seh);

350

seh = scope.AddTopLevelSeqEntry(*entry);

351

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

352

policy.SetExtend5(

true

);

353

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

354

policy.SetExtend3(

true

);

360

scope.RemoveTopLevelSeqEntry(seh);

364

seh = scope.AddTopLevelSeqEntry(*entry);

365

orig_prot_seq = new_prot_seq =

kEmptyStr

;

367

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eSet);

368

policy.SetExtend5(

true

);

369

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eNoChange);

370

policy.SetExtend3(

false

);

375

BOOST_CHECK_EQUAL(orig_prot_seq, new_prot_seq);

378

scope.RemoveTopLevelSeqEntry(seh);

383

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eClear);

384

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eClear);

385

policy.SetExtend5(

false

);

386

policy.SetExtend3(

false

);

391

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eSet);

392

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eSet);

393

policy.SetExtend5(

true

);

394

policy.SetExtend3(

true

);

401

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eClear);

402

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eClear);

407

policy.SetPartial5Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

408

policy.SetPartial3Policy(edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd);

436  id

->Assign(*(imp->GetLocation().GetId()));

439

imp->SetLocation().SetInt().SetFrom(0);

440

imp->SetLocation().SetInt().SetTo(15);

453

imp->SetLocation().SetPnt().SetId().Assign(*

id

);

454

imp->SetLocation().SetPnt().SetPoint(15);

513  id

->Assign(*(cds->GetLocation().GetId()));

514

cb->

SetLoc

().SetInt().SetId(*

id

);

515

cb->

SetLoc

().SetInt().SetFrom(3);

516

cb->

SetLoc

().SetInt().SetTo(5);

517

cds->SetData().SetCdregion().SetCode_break().push_back(cb);

537

BOOST_CHECK_EQUAL(interval.

GetFrom

(), from);

538

BOOST_CHECK_EQUAL(interval.

GetTo

(), to);

544

vector<TSeqPos>::iterator from_it = from.begin();

545

vector<TSeqPos>::iterator to_it = to.begin();

549  while

(from_it != from.end()) {

551

interval->

SetId

().Assign(

id

);

553

interval->

SetTo

(*to_it);

563

BOOST_CHECK_EQUAL(

pack

.Get().size(), from.size());

564

BOOST_CHECK_EQUAL(

pack

.Get().size(), to.size());

565

CPacked_seqint::Tdata::const_iterator lit =

pack

.Get().begin();

566

vector<TSeqPos>::iterator from_it = from.begin();

567

vector<TSeqPos>::iterator to_it = to.begin();

568  while

(lit !=

pack

.Get().end()) {

580

vector<TSeqPos>::iterator from_it = from.begin();

581

vector<TSeqPos>::iterator to_it = to.begin();

583

loc.

SetMix

().Set().clear();

585  while

(from_it != from.end()) {

587  if

(*from_it == *to_it) {

588

sub->

SetPnt

().SetId().Assign(

id

);

589

sub->

SetPnt

().SetPoint(*from_it);

591

sub->

SetInt

().SetId().Assign(

id

);

592

sub->

SetInt

().SetFrom(*from_it);

593

sub->

SetInt

().SetTo(*to_it);

595

loc.

SetMix

().Set().push_back(sub);

605

vector<TSeqPos>::iterator from_it = from.begin();

606

vector<TSeqPos>::iterator to_it = to.begin();

622  id

->SetLocal().SetStr(

"nuc1"

);

625

loc->

SetInt

().SetId().Assign(*

id

);

626

loc->

SetInt

().SetFrom(10);

627

loc->

SetInt

().SetTo(50);

631  bool

adjusted =

false

;

635

BOOST_CHECK_EQUAL(cut,

false

);

636

BOOST_CHECK_EQUAL(adjusted,

false

);

637

BOOST_CHECK_EQUAL(trim5, 0);

645

BOOST_CHECK_EQUAL(cut,

false

);

646

BOOST_CHECK_EQUAL(adjusted,

true

);

647

BOOST_CHECK_EQUAL(trim5, 0);

655

BOOST_CHECK_EQUAL(cut,

false

);

656

BOOST_CHECK_EQUAL(adjusted,

true

);

657

BOOST_CHECK_EQUAL(trim5, 0);

665

BOOST_CHECK_EQUAL(cut,

false

);

666

BOOST_CHECK_EQUAL(adjusted,

true

);

667

BOOST_CHECK_EQUAL(trim5, 5);

675

BOOST_CHECK_EQUAL(cut,

false

);

676

BOOST_CHECK_EQUAL(adjusted,

true

);

677

BOOST_CHECK_EQUAL(trim5, 0);

685

BOOST_CHECK_EQUAL(cut,

true

);

688

loc->

SetPnt

().SetId().Assign(*

id

);

689

loc->

SetPnt

().SetPoint(10);

696

BOOST_CHECK_EQUAL(cut,

false

);

697

BOOST_CHECK_EQUAL(adjusted,

false

);

698

BOOST_CHECK_EQUAL(trim5, 0);

706

BOOST_CHECK_EQUAL(cut,

false

);

707

BOOST_CHECK_EQUAL(adjusted,

true

);

708

BOOST_CHECK_EQUAL(trim5, 0);

716

BOOST_CHECK_EQUAL(cut,

true

);

717

BOOST_CHECK_EQUAL(trim5, 1);

720

vector<TSeqPos> from;

736

BOOST_CHECK_EQUAL(cut,

false

);

737

BOOST_CHECK_EQUAL(adjusted,

false

);

738

BOOST_CHECK_EQUAL(trim5, 0);

747

BOOST_CHECK_EQUAL(cut,

false

);

748

BOOST_CHECK_EQUAL(adjusted,

true

);

749

BOOST_CHECK_EQUAL(trim5, 0);

759

BOOST_CHECK_EQUAL(cut,

false

);

760

BOOST_CHECK_EQUAL(adjusted,

true

);

761

BOOST_CHECK_EQUAL(trim5, 0);

771

BOOST_CHECK_EQUAL(cut,

false

);

772

BOOST_CHECK_EQUAL(adjusted,

true

);

773

BOOST_CHECK_EQUAL(trim5, 0);

785

BOOST_CHECK_EQUAL(cut,

false

);

786

BOOST_CHECK_EQUAL(adjusted,

true

);

787

BOOST_CHECK_EQUAL(trim5, 0);

801

BOOST_CHECK_EQUAL(cut,

false

);

802

BOOST_CHECK_EQUAL(adjusted,

true

);

803

BOOST_CHECK_EQUAL(trim5, 5);

811

BOOST_CHECK_EQUAL(cut,

true

);

830

BOOST_CHECK_EQUAL(cut,

false

);

831

BOOST_CHECK_EQUAL(adjusted,

false

);

832

BOOST_CHECK_EQUAL(trim5, 0);

841

BOOST_CHECK_EQUAL(cut,

false

);

842

BOOST_CHECK_EQUAL(adjusted,

true

);

843

BOOST_CHECK_EQUAL(trim5, 0);

853

BOOST_CHECK_EQUAL(cut,

false

);

854

BOOST_CHECK_EQUAL(adjusted,

true

);

855

BOOST_CHECK_EQUAL(trim5, 0);

865

BOOST_CHECK_EQUAL(cut,

false

);

866

BOOST_CHECK_EQUAL(adjusted,

true

);

867

BOOST_CHECK_EQUAL(trim5, 0);

879

BOOST_CHECK_EQUAL(cut,

false

);

880

BOOST_CHECK_EQUAL(adjusted,

true

);

881

BOOST_CHECK_EQUAL(trim5, 0);

895

BOOST_CHECK_EQUAL(cut,

false

);

896

BOOST_CHECK_EQUAL(adjusted,

true

);

897

BOOST_CHECK_EQUAL(trim5, 5);

905

BOOST_CHECK_EQUAL(cut,

true

);

913  id

->SetLocal().SetStr(

"nuc1"

);

916

loc->

SetInt

().SetId().Assign(*

id

);

917

loc->

SetInt

().SetFrom(10);

918

loc->

SetInt

().SetTo(50);

933

loc->

SetPnt

().SetId().Assign(*

id

);

934

loc->

SetPnt

().SetPoint(10);

946

vector<TSeqPos> from;

962  for

(vector<TSeqPos>::iterator it = from.begin(); it != from.end(); ++it) {

965  for

(vector<TSeqPos>::iterator it = to.begin(); it != to.end(); ++it) {

978

vector<TSeqPos>::iterator fit = from.begin();

980  while

(fit != from.end()) {

984  for

(vector<TSeqPos>::iterator it = to.begin(); it != to.end(); ++it) {

1006  for

(vector<TSeqPos>::iterator it = from.begin(); it != from.end(); ++it) {

1009  for

(vector<TSeqPos>::iterator it = to.begin(); it != to.end(); ++it) {

1024  while

(fit != from.end()) {

1028  for

(vector<TSeqPos>::iterator it = to.begin(); it != to.end(); ++it) {

1041  id

->SetLocal().SetStr(

"nuc1"

);

1049

loc1->

SetInt

().SetId().Assign(*

id

);

1050

loc1->

SetInt

().SetFrom(10);

1051

loc1->

SetInt

().SetTo(50);

1064

loc1->

SetInt

().SetId().Assign(*

id

);

1065

loc1->

SetInt

().SetFrom(10);

1066

loc1->

SetInt

().SetTo(50);

1073

loc1->

SetPnt

().SetId().Assign(*

id

);

1074

loc1->

SetPnt

().SetPoint(10);

1088

vector<TSeqPos> from;

1116

after_from = from.back();

1117

after_to = to.back();

1137  TSeqPos

before_from = from[0];

1170

after_from = from.back();

1171

after_to = to.back();

1191

before_from = from[0];

1203  id

->SetLocal().SetStr(

"nuc1"

);

1210

vector<TSeqPos> from, to;

1211

from.push_back(0); to.push_back(24);

1212

from.push_back(29); to.push_back(34);

1213

from.push_back(39); to.push_back(49);

1214

from.push_back(51); to.push_back(59);

1224

vector<TSeqPos> after_from, after_to;

1225

after_from.push_back(20); after_to.push_back(24);

1226

after_from.push_back(29); after_to.push_back(34);

1227

after_from.push_back(39); after_to.push_back(49);

1228

after_from.push_back(51); after_to.push_back(59);

1247  id

->SetLocal().SetStr(

"nuc1"

);

1256

vector<TSeqPos> from, to;

1257

from.push_back(69); to.push_back(79);

1258

from.push_back(49); to.push_back(59);

1259

from.push_back(24); to.push_back(39);

1260

from.push_back(0); to.push_back(19);

1270

vector<TSeqPos> after_from, after_to;

1271

after_from.push_back(69); after_to.push_back(79);

1272

after_from.push_back(49); after_to.push_back(59);

1273

after_from.push_back(24); after_to.push_back(39);

1274

after_from.push_back(14); after_to.push_back(19);

1295  id

->SetLocal().SetStr(

"nuc1"

);

1304

vector<TSeqPos> from, to;

1305

from.push_back(48); to.push_back(64);

1306

from.push_back(39); to.push_back(44);

1307

from.push_back(19); to.push_back(34);

1308

from.push_back(0); to.push_back(14);

1315

vector<TSeqPos> after_from, after_to;

1316

after_from.push_back(48); after_to.push_back(50);

1317

after_from.push_back(39); after_to.push_back(44);

1318

after_from.push_back(19); after_to.push_back(34);

1319

after_from.push_back(0); after_to.push_back(14);

1347

BOOST_ASSERT(found_gene.GetPointer() ==

NULL

);

1349

scope.RemoveTopLevelSeqEntry(seh);

1351

gene->

SetData

().SetGene().SetLocus(

"A"

);

1353

seh = scope.AddTopLevelSeqEntry(*entry);

1355

BOOST_ASSERT(found_gene.GetPointer() == gene.

GetPointer

());

1358

scope.RemoveTopLevelSeqEntry(seh);

1360

gene2->

SetData

().SetGene().SetLocus(

"B"

);

1362

imp->

SetId

().SetLocal().SetId(1);

1363

gene->

SetId

().SetLocal().SetId(2);

1364

gene2->

SetId

().SetLocal().SetId(3);

1366

seh = scope.AddTopLevelSeqEntry(*entry);

1368

BOOST_ASSERT(found_gene.GetPointer() == gene2.

GetPointer

());

1371

scope.RemoveTopLevelSeqEntry(seh);

1376

gene->

SetData

().SetGene().SetLocus(

"A"

);

1379

imp->

SetId

().SetLocal().SetId(1);

1380

imp2->

SetId

().SetLocal().SetId(2);

1381

gene->

SetId

().SetLocal().SetId(3);

1383

seh = scope.AddTopLevelSeqEntry(*entry);

1386

BOOST_ASSERT(found_gene.GetPointer() == gene.

GetPointer

());

1399  a

->SetInt().SetFrom(50);

1400  a

->SetInt().SetTo(60);

1401  a

->SetInt().SetId().Assign(*id_a);

1406  b

->SetInt().SetFrom(40);

1407  b

->SetInt().SetTo(43);

1408  b

->SetInt().SetId().Assign(*id_a);

1411

c->

SetMix

().Set().push_back(

a

);

1412

c->

SetMix

().Set().push_back(

b

);

1415

BOOST_CHECK_EQUAL(

a

->Equals(*(c->

GetMix

().

Get

().back())),

true

);

1416

BOOST_CHECK_EQUAL(

b

->Equals(*(c->

GetMix

().

Get

().front())),

true

);

1427

BOOST_CHECK_EQUAL(

a

->Equals(*(c->

GetMix

().

Get

().front())),

true

);

1428

BOOST_CHECK_EQUAL(

b

->Equals(*(c->

GetMix

().

Get

().back())),

true

);

1431

d->

SetPnt

().SetId().Assign(*id_b);

1432

d->

SetPnt

().SetPoint(70);

1434

c->

SetMix

().Set().push_back(d);

1437

d->

SetPnt

().SetId().Assign(*id_a);

1440

BOOST_CHECK_EQUAL(d->

Equals

(*(c->

GetMix

().

Get

().front())),

true

);

1441

BOOST_CHECK_EQUAL(

b

->Equals(*(c->

GetMix

().

Get

().back())),

true

);

1447

BOOST_CHECK_EQUAL(

b

->Equals(*(c->

GetMix

().

Get

().front())),

true

);

1448

BOOST_CHECK_EQUAL(d->

Equals

(*(c->

GetMix

().

Get

().back())),

true

);

1456

BOOST_CHECK_EQUAL(e->

SetPacked_pnt

().SetPoints().front(), 34);

1457

BOOST_CHECK_EQUAL(e->

SetPacked_pnt

().SetPoints().back(), 36);

1460

c->

SetMix

().Set().push_back(e);

1465

BOOST_CHECK_EQUAL(e->

Equals

(*(c->

GetMix

().

Get

().front())),

true

);

1466

BOOST_CHECK_EQUAL(d->

Equals

(*(c->

GetMix

().

Get

().back())),

true

);

1470

BOOST_CHECK_EQUAL(e->

SetPacked_pnt

().SetPoints().front(), 36);

1471

BOOST_CHECK_EQUAL(e->

SetPacked_pnt

().SetPoints().back(), 34);

1477

BOOST_CHECK_EQUAL(e->

Equals

(*(c->

GetMix

().

Get

().back())),

true

);

1478

BOOST_CHECK_EQUAL(d->

Equals

(*(c->

GetMix

().

Get

().front())),

true

);

1484  f

->SetPacked_int().Set().push_back(f1);

1485  f

->SetPacked_int().Set().push_back(f2);

1486  f

->SetPacked_int().Set().push_back(f3);

1488

BOOST_CHECK_EQUAL(

f

->SetPacked_int().Set().front()->GetFrom(), 77);

1489

BOOST_CHECK_EQUAL(

f

->SetPacked_int().Set().back()->GetTo(), 90);

1495

BOOST_CHECK_EQUAL(

f

->SetPacked_int().Set().back()->GetFrom(), 77);

1496

BOOST_CHECK_EQUAL(

f

->SetPacked_int().Set().front()->GetTo(), 90);

1499

c->

SetMix

().Set().push_back(

f

);

1501

BOOST_CHECK_EQUAL(e->

Equals

(*(c->

GetMix

().

Get

().back())),

true

);

1502

BOOST_CHECK_EQUAL(

f

->Equals(*(c->

GetMix

().

Get

().front())),

true

);

1510

edit::CLocationEditPolicy::EPartialPolicy policy_choice,

1511  bool

expect_set5,

bool

expect_clear5,

1512  bool

extend =

false

)

1516  bool

do_set_5_partial =

false

;

1517  bool

do_clear_5_partial =

false

;

1519

policy->SetPartial5Policy(policy_choice);

1521

policy->SetExtend5(

true

);

1523

BOOST_CHECK_EQUAL((expect_set5 || expect_clear5),

1524

policy->Interpret5Policy(imp, scope, do_set_5_partial, do_clear_5_partial));

1525

BOOST_CHECK_EQUAL(do_set_5_partial, expect_set5);

1526

BOOST_CHECK_EQUAL(do_clear_5_partial, expect_clear5);

1531

edit::CLocationEditPolicy::EPartialPolicy policy_choice,

1532  bool

expect_set3,

bool

expect_clear3,

bool

extend =

false

)

1536  bool

do_set_3_partial =

false

;

1537  bool

do_clear_3_partial =

false

;

1539

policy->SetPartial3Policy(policy_choice);

1541

policy->SetExtend5(

true

);

1543

BOOST_CHECK_EQUAL((expect_set3 || expect_clear3),

1544

policy->Interpret3Policy(imp, scope, do_set_3_partial, do_clear_3_partial));

1545

BOOST_CHECK_EQUAL(do_set_3_partial, expect_set3);

1546

BOOST_CHECK_EQUAL(do_clear_3_partial, expect_clear3);

1555

s = s.substr(0, s.length() - 3) +

"CAT"

;

1557

s =

"ATG"

+ s.substr(3);

1561

s = s.substr(0, s.length() - 3) +

"AAA"

;

1563

s =

"AAA"

+ s.substr(3);

1566

seq.

SetInst

().SetSeq_data().SetIupacna().Set(s);

1575

s =

"TTA"

+ s.substr(3);

1577

s = s.substr(0, s.length() - 3) +

"TAA"

;

1581

s =

"AAA"

+ s.substr(3);

1583

s = s.substr(0, s.length() - 3) +

"AAA"

;

1586

seq.

SetInst

().SetSeq_data().SetIupacna().Set(s);

1597

l1->

SetInt

().SetFrom(0);

1599

l1->

SetInt

().SetId().Assign(*(first_seq.

GetId

().front()));

1602

l2->

SetInt

().SetFrom(0);

1604

l2->

SetInt

().SetId().Assign(*(last_seq.

GetId

().front()));

1606

cds->

SetData

().SetCdregion();

1612

cds->

SetLocation

().SetMix().Set().push_back(l2);

1613

cds->

SetLocation

().SetMix().Set().push_back(l1);

1616

cds->

SetLocation

().SetMix().Set().push_back(l1);

1617

cds->

SetLocation

().SetMix().Set().push_back(l2);

1620  if

(already_partial) {

1642

l2->

SetInt

().SetFrom(1);

1646

l1->

SetInt

().SetFrom(1);

1665

edit::CLocationEditPolicy::ePartialPolicy_eNoChange,

1669

edit::CLocationEditPolicy::ePartialPolicy_eSetAtEnd,

1670

!already_partial,

false

);

1673

edit::CLocationEditPolicy::ePartialPolicy_eSetForFrame,

1677

edit::CLocationEditPolicy::ePartialPolicy_eSetForFrame,

1678

!already_partial,

false

);

1679

cds->

SetData

().SetCdregion().ResetFrame();

1682

edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd,

1683

!good_end && !already_partial,

false

);

1686

edit::CLocationEditPolicy::ePartialPolicy_eClear,

1687  false

, already_partial);

1690

edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd,

1691  false

, good_end & already_partial);

1695

edit::CLocationEditPolicy::ePartialPolicy_eClearNotAtEnd,

1699  if

(already_partial) {

1700  Check5Policy

(*cds, scope, edit::CLocationEditPolicy::ePartialPolicy_eSet,

1701  false

,

false

,

true

);

1707

edit::CLocationEditPolicy::ePartialPolicy_eClearNotAtEnd,

1708  false

, already_partial);

1711  if

(already_partial) {

1712  Check5Policy

(*cds, scope, edit::CLocationEditPolicy::ePartialPolicy_eSet,

1713  true

,

false

,

true

);

1727

BOOST_CHECK_EQUAL(

false

, policy->Extend5(*cds, scope));

1730

BOOST_CHECK_EQUAL(

true

, policy->Extend5(*cds, scope));

1754

BOOST_CHECK_EQUAL(

false

, policy->Extend3(*cds, scope));

1768

BOOST_CHECK_EQUAL(

true

, policy->Extend3(*cds, scope));

1784

l1->

SetInt

().SetFrom(0);

1786

l1->

SetInt

().SetId().Assign(*(first_seq.

GetId

().front()));

1789

l2->

SetInt

().SetFrom(0);

1791

l2->

SetInt

().SetId().Assign(*(last_seq.

GetId

().front()));

1793

cds->

SetData

().SetCdregion();

1799

cds->

SetLocation

().SetMix().Set().push_back(l2);

1800

cds->

SetLocation

().SetMix().Set().push_back(l1);

1803

cds->

SetLocation

().SetMix().Set().push_back(l1);

1804

cds->

SetLocation

().SetMix().Set().push_back(l2);

1807  if

(already_partial) {

1814

edit::CLocationEditPolicy::ePartialPolicy_eNoChange,

1818

edit::CLocationEditPolicy::ePartialPolicy_eSetAtEnd,

1819

!already_partial,

false

);

1822

edit::CLocationEditPolicy::ePartialPolicy_eSetForFrame,

1826

edit::CLocationEditPolicy::ePartialPolicy_eSetForFrame,

1828

cds->

SetData

().SetCdregion().ResetFrame();

1831

edit::CLocationEditPolicy::ePartialPolicy_eSetForBadEnd,

1832

!good_end && !already_partial,

false

);

1835

edit::CLocationEditPolicy::ePartialPolicy_eClear,

1836  false

, already_partial);

1839

edit::CLocationEditPolicy::ePartialPolicy_eClearForGoodEnd,

1840  false

, good_end & already_partial);

1844

edit::CLocationEditPolicy::ePartialPolicy_eClearNotAtEnd,

1848  if

(already_partial) {

1849  Check3Policy

(*cds, scope, edit::CLocationEditPolicy::ePartialPolicy_eSet,

1850  false

,

false

,

true

);

1855

l1->

SetInt

().SetFrom(1);

1861

edit::CLocationEditPolicy::ePartialPolicy_eClearNotAtEnd,

1862  false

, already_partial);

1865  if

(already_partial) {

1866  Check3Policy

(*cds, scope, edit::CLocationEditPolicy::ePartialPolicy_eSet,

1867  true

,

false

,

true

);

1919

cds->

SetData

().SetCdregion();

1942

BOOST_CHECK_EQUAL(after_frame, frame);

1951

cds->

SetData

().SetCdregion();

1984  bool

is_minus=

false

) {

1989

cds->SetData().SetCdregion();

1991

cds->SetLocation().SetInt().SetFrom(range.

GetFrom

());

1992

cds->SetLocation().SetInt().SetTo(range.

GetTo

());

2000  const bool

change_expected =

2015

BOOST_CHECK_EQUAL(after_frame, frame);

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

@ eExtreme_Biological

5' and 3'

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

static CNcbiApplication * Instance(void)

Singleton method.

const TAnnot & GetAnnot(void) const

namespace ncbi::objects::

bool AddSeqFeatXref(const CSeqFeatXref::TId &id)

Seq-loc iterator class – iterates all intervals from a seq-loc in the correct order.

static const char * pack(const char *fmt,...)

unsigned int TSeqPos

Type for sequence locations and lengths.

virtual const CArgs & GetArgs(void) const

Get parsed command line arguments.

#define NON_CONST_ITERATE(Type, Var, Cont)

Non constant version of ITERATE macro.

const TPrim & Get(void) const

virtual bool Equals(const CSerialObject &object, ESerialRecursionMode how=eRecursive) const

Check if both objects contain the same values.

void SetPacked_int(TPacked_int &v)

void SetPacked_pnt(TPacked_pnt &v)

bool IsPartialStart(ESeqLocExtremes ext) const

check start or stop of location for e_Lim fuzz

ENa_strand GetStrand(void) const

Get the location's strand.

TSeqPos GetStart(ESeqLocExtremes ext) const

Return start and stop positions of the seq-loc.

bool IsSetStrand(EIsSetStrand flag=eIsSetStrand_Any) const

Check if strand is set for any/all part(s) of the seq-loc depending on the flag.

TRange GetRange(void) const

Get the range.

void SetStrand(ENa_strand strand)

Set the strand for all of the location's ranges.

bool IsPartialStop(ESeqLocExtremes ext) const

TSeqPos GetStop(ESeqLocExtremes ext) const

CConstRef< CSeq_feat > GetGeneForFeature(const CSeq_feat &feat, CScope &scope)

Finds gene for feature, but obeys SeqFeatXref directives.

static void Translate(const string &seq, string &prot, const CGenetic_code *code, bool include_stop=true, bool remove_trailing_X=false, bool *alt_start=NULL, bool is_5prime_complete=true, bool is_3prime_complete=true)

Translate a string using a specified genetic code.

static CRef< CObjectManager > GetInstance(void)

Return the existing object manager or create one.

CSeq_entry_Handle AddTopLevelSeqEntry(CSeq_entry &top_entry, TPriority pri=kPriority_Default, EExist action=eExist_Default)

Add seq_entry, default priority is higher than for defaults or loaders Add object to the score with p...

const CSeqFeatData & GetData(void) const

CConstRef< CSeq_annot > GetCompleteSeq_annot(void) const

Complete and return const reference to the current seq-annot.

const CSeq_loc & GetLocation(void) const

TObjectType * GetPointer(void) THROWS_NONE

Get pointer,.

void Reset(void)

Reset reference object.

#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.

TTo GetTo(void) const

Get the To member data.

TFrom GetFrom(void) const

Get the From member data.

void SetTag(TTag &value)

Assign a value to Tag data member.

TStr & SetStr(void)

Select the variant.

void SetDb(const TDb &value)

Assign a value to Db data member.

void SetLocation(TLocation &value)

Assign a value to Location data member.

const TLoc & GetLoc(void) const

Get the Loc member data.

bool IsSetPartial(void) const

incomplete in some way? Check if a value has been assigned to Partial data member.

const TId & GetId(void) const

Get the Id member data.

const TLocation & GetLocation(void) const

Get the Location member data.

TFrame GetFrame(void) const

Get the Frame member data.

const TData & GetData(void) const

Get the Data member data.

void SetId(TId &value)

Assign a value to Id data member.

void SetData(TData &value)

Assign a value to Data data member.

const TCdregion & GetCdregion(void) const

Get the variant data.

void SetLoc(TLoc &value)

Assign a value to Loc data member.

bool IsSetFrame(void) const

Check if a value has been assigned to Frame data member.

@ eFrame_not_set

not set, code uses one

@ eFrame_three

reading frame

void SetTo(TTo value)

Assign a value to To data member.

TGeneral & SetGeneral(void)

Select the variant.

void SetPoint(TPoint value)

Assign a value to Point data member.

void SetId(TId &value)

Assign a value to Id data member.

ENa_strand

strand of nucleic acid

TStrand GetStrand(void) const

Get the Strand member data.

const TPnt & GetPnt(void) const

Get the variant data.

TPoint GetPoint(void) const

Get the Point member data.

void SetAccession(const TAccession &value)

Assign a value to Accession data member.

void SetId(TId &value)

Assign a value to Id data member.

void SetStrand(TStrand value)

Assign a value to Strand data member.

TFrom GetFrom(void) const

Get the From member data.

E_Choice Which(void) const

Which variant is currently selected.

void SetFrom(TFrom value)

Assign a value to From data member.

const Tdata & Get(void) const

Get the member data.

const TPacked_pnt & GetPacked_pnt(void) const

Get the variant data.

virtual void Reset(void)

Reset the whole object.

TLocal & SetLocal(void)

Select the variant.

const TPoints & GetPoints(void) const

Get the Points member data.

TTo GetTo(void) const

Get the To member data.

TGenbank & SetGenbank(void)

Select the variant.

bool IsInt(void) const

Check if variant Int is selected.

const TInt & GetInt(void) const

Get the variant data.

void SetStrand(TStrand value)

Assign a value to Strand data member.

const TMix & GetMix(void) const

Get the variant data.

const TPacked_int & GetPacked_int(void) const

Get the variant data.

@ e_not_set

No variant selected.

const TSeq & GetSeq(void) const

Get the variant data.

TSet & SetSet(void)

Select the variant.

TAnnot & SetAnnot(void)

Assign a value to Annot data member.

const TSet & GetSet(void) const

Get the variant data.

const TSeq_set & GetSeq_set(void) const

Get the Seq_set member data.

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.

const TInst & GetInst(void) const

Get the Inst member data.

const TIupacna & GetIupacna(void) const

Get the variant data.

TAnnot & SetAnnot(void)

Assign a value to Annot data member.

const TId & GetId(void) const

Get the Id member data.

TLength GetLength(void) const

Get the Length member data.

void SetInst(TInst &value)

Assign a value to Inst data member.

const TFtable & GetFtable(void) const

Get the variant data.

const TData & GetData(void) const

Get the Data member data.

const TSeq_data & GetSeq_data(void) const

Get the Seq_data member data.

bool CorrectIntervalOrder(CSeq_loc &loc)

Correct the order of consecutive intervals with the same Seq-id on the same strand.

@ eSplitLocOption_split_in_intron

@ eSplitLocOption_make_partial

@ eSplitLocOption_split_in_exon

bool ExtendPartialFeatureEnds(CBioseq_Handle bsh)

void ReverseComplementFeature(CSeq_feat &feat, CScope &scope)

bool ApplyPolicyToFeature(const CLocationEditPolicy &policy, const CSeq_feat &orig_feat, CScope &scope, bool adjust_gene, bool retranslate_cds)

bool IsExtendable(const CSeq_feat &cds, CScope &scope)

void SeqLocAdjustForInsert(CSeq_loc &loc, TSeqPos from, TSeqPos to, const CSeq_id *seqid)

string SeqLocPrintUseBestID(const CSeq_loc &seq_loc, CScope &scope, bool range_only=false)

void SplitLocationForGap(CSeq_loc &loc1, CSeq_loc &loc2, size_t start, size_t stop, const CSeq_id *seqid, unsigned int options=eSplitLocOption_make_partial|eSplitLocOption_split_in_exon)

void SeqLocAdjustForTrim(CSeq_loc &loc, TSeqPos from, TSeqPos to, const CSeq_id *seqid, bool &bCompleteCut, TSeqPos &trim5, bool &bAdjusted)

void ReverseComplementLocation(CSeq_loc &loc, CScope &scope)

Defines the CNcbiApplication and CAppException classes for creating NCBI applications.

Utility stuff for more convenient using of Boost.Test library.

#define NCBITEST_CHECK_MESSAGE(P, M)

void Check5Policy(CSeq_feat &imp, CScope &scope, edit::CLocationEditPolicy::EPartialPolicy policy_choice, bool expect_set5, bool expect_clear5, bool extend=false)

void s_CheckLocationAndStrandResults(const CSeq_loc &loc, bool partial5, bool partial3, TSeqPos start, TSeqPos stop, ENa_strand strand)

NCBITEST_INIT_CMDLINE(arg_desc)

void TruncateTransSplicedCDSForExtension(CRef< CSeq_entry > entry, bool on_5, bool on_3)

void s_MakeMixLoc(CSeq_loc &loc, const CSeq_id &id, vector< TSeqPos > from, vector< TSeqPos > to)

void Check5Extend(bool good_end, bool is_minus, bool already_partial)

BOOST_AUTO_TEST_CASE(Test_SeqLocPrintUseBestID)

void s_CheckPackedInt(const CPacked_seqint &pack, vector< TSeqPos > from, vector< TSeqPos > to)

void s_MakePackedInt(CSeq_loc &loc, const CSeq_id &id, vector< TSeqPos > from, vector< TSeqPos > to)

void s_CheckLocationResults(const CSeq_loc &loc, bool partial5, bool partial3, TSeqPos start, TSeqPos stop)

void CheckAdjustStop(TSeqPos stop, TSeqPos expect_stop, bool partial_stop, bool is_minus=false)

void s_CheckInterval(const CSeq_interval &interval, TSeqPos from, TSeqPos to)

void s_CheckLocationPolicyResults(const CSeq_feat &cds, bool partial5, bool partial3, TSeqPos start, TSeqPos stop)

void CheckAdjustStart(TSeqPos start, TSeqPos expect_start, bool partial_start, CCdregion::EFrame frame, bool is_minus=false)

static void CheckAdjustStartAndStop(const CRange< TSeqPos > &range, const CRange< TSeqPos > &expected_range, bool partial_start, CCdregion::EFrame frame, bool partial_stop, bool is_minus=false)

void s_CheckMixLoc(const CSeq_loc &mix, vector< TSeqPos > from, vector< TSeqPos > to)

void Check3Policy(CSeq_feat &imp, CScope &scope, edit::CLocationEditPolicy::EPartialPolicy policy_choice, bool expect_set3, bool expect_clear3, bool extend=false)

CRef< CSeq_entry > MakeMultiSeqCDS(bool good_end, bool is_minus, bool already_partial)

void Check3Extend(bool good_end, bool is_minus, bool already_partial)

void SetSequenceStart(CBioseq &seq, bool good, bool is_minus)

void SetSequenceEnd(CBioseq &seq, bool good, bool is_minus)

CRef< objects::CSeq_feat > MakeGeneForFeature(CRef< objects::CSeq_feat > feat)

CRef< objects::CSeq_feat > AddProtFeat(CRef< objects::CSeq_entry > entry)

CRef< objects::CSeq_feat > AddGoodImpFeat(CRef< objects::CSeq_entry > entry, string key)

CRef< objects::CSeq_feat > GetCDSFromGoodNucProtSet(CRef< objects::CSeq_entry > entry)

CRef< objects::CSeq_annot > AddFeat(CRef< objects::CSeq_feat > feat, CRef< objects::CSeq_entry > entry)

CRef< objects::CSeq_entry > BuildGoodSeq(void)

CRef< objects::CSeq_feat > AddMiscFeature(CRef< objects::CSeq_entry > entry)

CRef< objects::CSeq_entry > BuildGoodEcoSet()

CRef< objects::CSeq_entry > GetProteinSequenceFromGoodNucProtSet(CRef< objects::CSeq_entry > entry)

CRef< objects::CSeq_entry > BuildGoodNucProtSet(void)

CRef< objects::CSeq_loc > MakeMixLoc(CRef< objects::CSeq_id > id)

CRef< objects::CSeq_feat > BuildGoodtRNA(CRef< objects::CSeq_id > id)

CRef< objects::CSeq_entry > BuildGoodDeltaSeq(void)


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