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/variation__utils_8cpp_source.html below:

NCBI C++ ToolKit: src/objtools/variation/variation_utils.cpp Source File

63  return

deltas.front()->GetSeq().GetLiteral().GetSeq_data().GetIupacna().Get();

142  "Placements expected inside first child object. " 143  "Not correcting allele."

);

148

|| !

variation

.GetData().GetSet().IsSetVariations())

170  if

(isFullyShifted) {

190  string

ref_at_location;

205

asserted_ref = delta_item.

SetSeq

().SetLiteral().SetSeq_data().SetIupacna().Set();

207

delta_item.

SetSeq

().SetLiteral().SetSeq_data().SetIupacna().Set(ref_at_location);

211

vp.

SetSeq

().SetSeq_data().SetIupacna().Set(ref_at_location);

220  if

(isFullyShifted) {

234

annot.

SetData

().SetFtable()) {

265  if

(isFullyShifted) {

278  if

(isFullyShifted) {

317

asserted_ref = delta_item.

SetSeq

().SetLiteral().SetSeq_data().SetIupacna().Set();

318

delta_item.

SetSeq

().SetLiteral().SetSeq_data().SetIupacna().Set(ref_at_location);

324  if

(asserted_ref.empty()

329  if

(asserted_ref.empty()) {

338  LOG_POST

(

Trace

<<

"Fix allele : from "

<< asserted_ref <<

" to "

<< ref_at_location

341  if

(asserted_ref == ref_at_location)

344  bool

add_asserted_ref =

true

;

369  string

allele = delta_item.

SetSeq

().SetLiteral().SetSeq_data().SetIupacna().Set();

370  if

(asserted_ref == allele) {

371

add_asserted_ref =

false

;

374  if

(ref_at_location == allele) {

375

delta_item.

SetSeq

().SetLiteral().SetSeq_data().SetIupacna().Set(asserted_ref);

379

add_asserted_ref =

false

;

388  LOG_POST

(

Trace

<<

"Add asserted ref: "

<< add_asserted_ref);

389  if

(add_asserted_ref) {

391

inst->SetType(asserted_allele_type);

399  data

->SetIupacna().Set(asserted_ref);

403

item->SetSeq().SetLiteral().Assign(*

literal

);

404

inst->SetDelta().push_back(item);

407  leaf

->SetData().SetInstance().Assign(*inst);

408

vr.

SetData

().SetSet().SetVariations().push_back(

leaf

);

416  string

ref_at_location;

425  if

(ref_at_location.empty())

427  for

(

unsigned int i

=0;

i

<ref_at_location.size();

i

++)

428  if

(ref_at_location[

i

] !=

'A'

&& ref_at_location[

i

] !=

'C'

&& ref_at_location[

i

] !=

'G'

&& ref_at_location[

i

] !=

'T'

)

431  return

ref_at_location;

444

loc.GetLabel(&loc_label);

449  return

ref_at_location;

457  if

(asserted_ref == ref_at_location)

461  bool

add_asserted_ref =

true

;

486  string

allele = delta_item.

SetSeq

().SetLiteral().SetSeq_data().SetIupacna().Set();

487  if

(asserted_ref == allele) {

488

add_asserted_ref =

false

;

491  if

(ref_at_location == allele) {

492

delta_item.

SetSeq

().SetLiteral().SetSeq_data().SetIupacna().Set(asserted_ref);

496

add_asserted_ref =

false

;

504  if

(add_asserted_ref)

507

inst->SetType(asserted_allele_type);

516  data

->SetIupacna().Set(asserted_ref);

520

item->SetSeq().SetLiteral().Assign(*

literal

);

521

inst->SetDelta().push_back(item);

524  leaf

->SetData().SetInstance().Assign(*inst);

525  variation

.SetData().SetSet().SetVariations().push_back(

leaf

);

534

asserted_ref.clear();

535

ref_at_location.clear();

563

feat = feat_to_shift;

568  if

(ref_at_location.empty())

573  bool

found_allele_from_identity =

false

;

581

found_allele_from_identity =

true

;

594  if

(found_allele_from_identity) {

596  return

(asserted_ref.empty() ||

597

asserted_ref == ref_at_location);

599  else if

(asserted_ref.empty()) {

603  return

(asserted_ref == ref_at_location);

617  bool

identity_present =

false

;

628

identity_present =

true

;

641  if

(

types

.empty()) {

642  if

(identity_present)

647  if

(

types

.size() == 1)

648  return

*

types

.begin();

660  bool

identity_present =

false

;

661

set<CVariation_inst::TType>

types

;

677

identity_present =

true

;

684  if

(

types

.empty()) {

685  if

(identity_present)

689  if

(

types

.size() == 1)

690  return

*

types

.begin();

767  ITERATE

(vector<string>, alt_it, alts) {

770  if

(crus.

size

() != 1)

772  return

*crus.

begin

();

782  ITERATE

(vector<string>, alt_it, alts) {

785  if

(crus.

size

() != 1)

787  return

*crus.

begin

();

792  const string

& candidate,

const string

& target)

794  if

(target.length() % candidate.length() != 0)

798  size_t

factor = target.length() / candidate.length();

799  string

test_candidate;

800  for

(

int

jj=0; jj<factor ; jj++) {

801

test_candidate += candidate;

804  if

(test_candidate == target)

812  for

(vector<string>::size_type ii=1; ii <=

str

.length() / 2 ; ++ii) {

814  if

(

str

.length() % ii != 0 )

continue

;

815  string

candidate =

str

.substr(0,ii);

829

uo->

SetType

().SetStr(

"Reference Allele Change"

);

830

var.

SetExt

().push_back(uo);

832

uo->

AddField

(

"Reference Changed"

,

true

);

838

uo->

SetType

().SetStr(

"Reference Allele Change"

);

839

feat.

SetExts

().push_back(uo);

841

uo->

AddField

(

"Reference Changed"

,

true

);

859  LOG_POST

(

Trace

<<

"Try to get from cache for accession: "

<< accession );

862  if

( !seqvec_ref || seqvec_ref->

empty

() )

864  LOG_POST

(

Trace

<<

"Acc was empty or null: "

<< accession );

866  LOG_POST

(

Trace

<<

"Got BioseqHandle, now get SeqVecRef: "

<< accession );

872  LOG_POST

(

Trace

<<

"Return the seqvec ref for : "

<< accession );

887  return

seqvec.

size

();

901  std::rotate

(v.rbegin(), v.rbegin() + 1, v.rend());

908  ERR_POST

(

Error

<<

"Provided variation object has placement. " 909  "Placements expected inside first child object. Not shifting."

);

914

|| !

variation

.GetData().GetSet().IsSetVariations())

948

CSeq_loc& loc = vp.

SetLoc

();

961

ResetFullyShifted(

variation

, loc, sep,

type

, deletion_size);

968

x_ConvertIntervalToPoint(loc,

976  if

(loc.IsSetStrand())

977

strand = loc.GetStrand();

983  string

common_repeat_unit_allele =

986  ERR_POST

(

Trace

<<

"Common Repeat Unit: "

<< common_repeat_unit_allele);

990  if

( common_repeat_unit_allele ==

kEmptyStr

)

995  int

rotation_counter=0;

997  if

(!ProcessShift(common_repeat_unit_allele, sep,

1003  ERR_POST

(

Trace

<<

"This particular allele shifted to the left: "

<<

1004

rotation_counter <<

" and the common repeat unit is now: "

<<

1005

common_repeat_unit_allele);

1008  const int

allele_size = 0;

1018  case

CVariation::TData::C_Data::e_Instance:

1025  for

(

int

ii=0; ii<rotation_counter; ++ii) {

1029

inst.

SetDelta

().front()->SetSeq().SetLiteral().SetSeq_data().SetIupacna().Set(allele);

1032  ERR_POST

(

Trace

<<

"instance does not contain a iupacna in its first delta's literal"

);

1038  case

CVariation::TData::C_Data::e_Set:

1049  for

(

int

ii=0; ii<rotation_counter; ++ii) {

1053

inst.

SetDelta

().front()->SetSeq().SetLiteral().SetSeq_data().SetIupacna().Set(allele);

1056  ERR_POST

(

Trace

<<

"instance does not contain a iupacna in its first delta's literal"

);

1073  ERR_POST

(

Error

<<

"Malformed deletion Variation Ref with more than 2 'alleles'"

);

1093

ref_literal =

Ref

(&delta_item.

SetSeq

().SetLiteral());

1100  int

rotation_counter = 0;

1101  const bool

found = ProcessShift(ref_allele,

1103

*seqvec, rotation_counter,

type

);

1109

ref_literal->

SetSeq_data

().SetIupacna().Set(ref_allele);

1114  static_cast<TSeqPos>

(ref_allele.size()));

1132

annot.

SetData

().SetFtable()) {

1133

x_Shift(**feat_it, scope);

1172

vector<string> alts;

1175

ResetFullyShifted(feat, featloc, sep,

type

, deletion_size);

1182

&& featloc.IsInt()) {

1184

x_ConvertIntervalToPoint(featloc,

1198

seqvec = PrefetchSequence(scope,seq_id,strand);

1208  string

common_repeat_unit_allele =

1214  if

( common_repeat_unit_allele ==

kEmptyStr

)

1221  int

rotation_counter=0;

1222  if

(!ProcessShift(common_repeat_unit_allele, sep,

1226  ERR_POST

(

Trace

<<

"This particular allele shifted to the left: "

<<

1227

rotation_counter <<

" and the common repeat unit is now: "

<<

1228

common_repeat_unit_allele);

1231  const int

allele_size = 0;

1247  for

(

int

ii=0; ii<rotation_counter; ++ii) {

1249  LOG_POST

(

Trace

<<

"Rotate allele : "

<< ii <<

" : "

<< allele);

1252

inst.

SetDelta

().front()->SetSeq().SetLiteral().SetSeq_data().SetIupacna().Set(allele);

1255  ERR_POST

(

Trace

<<

"instance does not contain a iupacna in its first delta's literal"

);

1272  for

(

int

ii=0; ii<rotation_counter; ++ii) {

1274  LOG_POST

(

Trace

<<

"Rotate allele : "

<< ii <<

" : "

<< allele);

1277

inst.

SetDelta

().front()->SetSeq().SetLiteral().SetSeq_data().SetIupacna().Set(allele);

1280  ERR_POST

(

Trace

<<

"instance does not contain a iupacna in its first delta's literal"

);

1296  ERR_POST

(

Error

<<

"Malformed deletion Variation Ref with more than 2 'alleles'"

);

1316

ref_literal =

Ref

(&delta_item.

SetSeq

().SetLiteral());

1323  int

rotation_counter = 0;

1324  const bool

found = ProcessShift(ref_allele,

1325

sep, *seqvec, rotation_counter,

type

);

1331

ref_literal->

SetSeq_data

().SetIupacna().Set(ref_allele);

1334

ModifyLocation(featloc, sep,

1354  const CSeq_id

&seq_id = *loc.GetId();

1362  if

(loc.IsSetStrand())

1363

strand = loc.GetStrand();

1367  int

rotation_counter=0;

1368  bool

isShifted =

false

;

1371  string

tmp_allele = allele;

1372

isShifted = ProcessShift(tmp_allele,

1374

*seqvec, rotation_counter,

type

);

1380

isShifted = ProcessShift(compact,

1382

*seqvec, rotation_counter,

type

);

1393  if

(loc.GetInt().IsSetStrand())

1394

pnt->

SetStrand

( loc.GetInt().GetStrand() );

1395

pnt->

SetId

().Assign(loc.GetInt().GetId());

1396

loc.SetPnt().Assign(*pnt);

1402  int

pos_left,

int

pos_right)

1405

interval->

SetFrom

(pos_left);

1406

interval->

SetTo

(pos_right);

1407  if

(loc.GetPnt().IsSetStrand())

1408

interval->

SetStrand

( loc.GetPnt().GetStrand() );

1409

interval->

SetId

().Assign(loc.GetPnt().GetId());

1410

loc.SetInt().Assign(*interval);

1415  const string

& field_text)

1418

uo->

SetType

().SetStr(

"Variation Normalization"

);

1419

var.

SetExt

().push_back(uo);

1426  const string

& field_text)

1429

uo->

SetType

().SetStr(

"Variation Normalization"

);

1430

feat.

SetExts

().push_back(uo);

1456  string

& common_repeat_unit_allele,

1459  int

& rotation_counter,

1462  if

(common_repeat_unit_allele.empty())

1468  string

five_prime_last_nt;

1470

five_prime_last_nt =

GetSeq

(sep.

left

-1,1,seqvec);

1473

<< five_prime_last_nt <<

" to the back of compact: "

<< common_repeat_unit_allele);

1475  bool

did_rotate =

false

;

1476  while

( !five_prime_last_nt.empty()

1477

&& (*common_repeat_unit_allele.rbegin() == *five_prime_last_nt.begin()) ) {

1480

*common_repeat_unit_allele.rbegin() <<

" off ("

<<

1481

*five_prime_last_nt.begin() <<

" @ left pos: "

<<

1482

sep.

left

-1 <<

")"

);

1486  Rotate

(common_repeat_unit_allele);

1490  ERR_POST

(

Trace

<<

"Rotation info: "

<< rotation_counter <<

" : "

<< common_repeat_unit_allele);

1498

five_prime_last_nt =

GetSeq

(sep.

left

-1,1,seqvec);

1501

*common_repeat_unit_allele.rbegin() <<

" and "

<<

1502

*five_prime_last_nt.begin() <<

" match? Taken from position n-1: "

<<

1508

<<

" and allele: "

<< common_repeat_unit_allele);

1516  int

& rotation_counter,

1521  if

(compact_allele.empty())

1526  string

three_prime_first_nt;

1529

three_prime_first_nt =

GetSeq

(sep.

left

,1,seqvec);

1532

three_prime_first_nt =

GetSeq

(sep.

right

+1,1,seqvec);

1540

<< sep.

right

<<

" nt "

<< three_prime_first_nt <<

1541  " to the front of compact: "

<< *compact_allele.begin());

1543  bool

did_rotate =

false

;

1544  while

( !three_prime_first_nt.empty()

1545

&& (*compact_allele.begin() == *three_prime_first_nt.begin()) ) {

1547

*compact_allele.begin() <<

" "

<<

1548

*three_prime_first_nt.begin() <<

" @ right pos: "

<<

1559

three_prime_first_nt =

GetSeq

(sep.

left

,1,seqvec);

1562

three_prime_first_nt =

GetSeq

(sep.

right

+1,1,seqvec);

1567

<<

" and right position: "

<< sep.

right

<<

" and allele: "

<< compact_allele);

1578

loc.SetInt().SetFrom(sep.

left

);

1579

loc.SetInt().SetTo(sep.

right

);

1588

loc.SetPnt().SetPoint(sep.

left

);

1597

loc.SetInt().SetFrom(sep.

left

);

1598

loc.SetInt().SetTo(sep.

right

);

1607

loc.SetPnt().SetPoint(sep.

right

);

1617

loc.SetPnt().SetPoint(sep.

left

);

1625

loc.SetInt().SetFrom(sep.

left

);

1626

loc.SetInt().SetTo(sep.

right

);

1645

loc.SetInt().SetFrom(sep.

left

-1);

1646

loc.SetInt().SetTo(sep.

left

);

1651  if

(deletion_size == 1)

1654

loc.SetPnt().SetPoint(sep.

left

);

1664

loc.SetInt().SetFrom(sep.

left

);

1665

loc.SetInt().SetTo(sep.

left

+deletion_size-1);

1747

|| uo->

GetType

().

GetStr

() !=

"Variation Normalization"

)

1756  const TSeqPos

& deletion_size)

1762

sep.

right

= sep.

left

+ deletion_size -1;

1766  type

, deletion_size);

1770  if

(var.

GetExt

().size() == 0)

1778  const TSeqPos

& deletion_size)

1786

sep.

right

= sep.

left

+ deletion_size -1;

1790  type

, deletion_size);

1794  if

(feat.

GetExts

().size() == 0)

1804  string

common_repeat_unit_allele_tmp = common_repeat_unit_allele;

1808

common_repeat_unit_allele, sep_tmp,

1809

seqvec,rotation_counter,

type

);

1814  int

ignored_counter=0;

1816

common_repeat_unit_allele_tmp, sep,

1817

seqvec,ignored_counter,

type

);

1822  return

found_left | found_right;

1830  string

orig_common_repeat_unit_allele = common_repeat_unit_allele;

1832

common_repeat_unit_allele,sep,

1833

seqvec,rotation_counter,

type

);

1838

sep.

left

= orig_pos_left;

1839

common_repeat_unit_allele = orig_common_repeat_unit_allele;

1892

annot.

SetData

().SetFtable()) {

1912

vinst_identity->SetType(

type

);

1915

vinst_identity->SetDelta().push_back(

delta

);

1922  literal

->SetSeq_data(*seq_data);

1926

vref_identity->SetData().SetInstance(*vinst_identity);

1928  return

vref_identity;

1938  const CSeq_id

* seq_id = loc.GetId();

1941  if

(loc.IsSetStrand()) {

1942

strand = loc.GetStrand();

1949

vector<string> alts;

1952  string

inserted_seq = alts.front() + ref_seq;

1955

= feat.

SetData

().SetVariation().SetData().SetSet().SetVariations();

1958

variation_list.clear();

1963  if

(ref_seq.length() == 1) {

1970

loc.SetInt().SetTo() = loc.SetInt().SetTo() - 1;

1978  const CSeq_id

* seq_id = loc.GetId();

1981  if

(loc.IsSetStrand()) {

1982

strand = loc.GetStrand();

1989

vector<string> alts;

1992  string

inserted_seq = ref_seq.substr(ref.length());

1995

= feat.

SetData

().SetVariation().SetData().SetSet().SetVariations();

1997

variation_list.clear();

2047  switch

(target_ctxt) {

2058  switch

(target_ctxt) {

2069  switch

(target_ctxt) {

User-defined methods of the data storage class.

@ eExtreme_Positional

numerical value

User-defined methods of the data storage class.

static CRef< CSeqVector > PrefetchSequence(CScope &scope, const CSeq_id &seq_id, ENa_strand strand)

static TSeqPos GetSeqSize(CSeqVector &seqvec)

static CCache< string, CRef< CSeqVector > > m_cache

static string GetSeq(int pos, int length, CSeqVector &seqvec)

namespace ncbi::objects::

CConstRef< CUser_field > GetFieldRef(const string &str, const string &delim=".", NStr::ECase use_case=NStr::eCase) const

CUser_object & AddField(const string &label, const string &value, EParseField parse=eParse_String)

add a data field to the user object that holds a given value

static void Rotate(string &v)

static void ModifyLocation(CSeq_loc &loc, SEndPosition &sep, const CVariation_inst::TType type, const TSeqPos &deletion_size)

static void ConvertExpandedDeletionToDelIns(CSeq_feat &feat, CScope &scope)

static void ConvertExpandedInsertionToDelIns(CSeq_feat &feat, CScope &scope)

static bool ProcessShift(string &allele, SEndPosition &sep, CSeqVector &seqvec, int &rotation_counter, const CVariation_inst::TType type)

static void ModifyLocation(CSeq_loc &loc, SEndPosition &sep, const CVariation_inst::TType type, const TSeqPos &deletion_size)

static void Rotate(string &v)

static bool ProcessShift(string &allele, SEndPosition &sep, CSeqVector &seqvec, int &rotation_counter, const CVariation_inst::TType type)

static void Rotate(string &v)

static void ModifyLocation(CSeq_loc &loc, SEndPosition &sep, const CVariation_inst::TType type, const TSeqPos &deletion_size)

static bool ProcessShift(string &allele, SEndPosition &sep, CSeqVector &seqvec, int &rotation_counter, const CVariation_inst::TType type)

static void Rotate(string &v)

static bool ProcessShift(string &allele, SEndPosition &sep, CSeqVector &seqvec, int &rotation_counter, const CVariation_inst::TType type)

static void ModifyLocation(CSeq_loc &loc, SEndPosition &sep, const CVariation_inst::TType type, const TSeqPos &deletion_size)

static void RotateRight(string &v)

static bool x_IsShiftable(const CSeq_loc &loc, const string &allele, CScope &scope, CVariation_inst::TType type)

This method determine if a SeqLoc, and associated allele, are shiftable.

static void RotateLeft(string &v)

static void x_Shift(CVariation &var, CScope &scope)

static void x_SetShiftFlag(CVariation &var, const string &field_text)

static void ResetFullyShifted(CVariation &var, CSeq_loc &loc, SEndPosition &sep, const CVariation_inst::TType type, const TSeqPos &deletion_size)

static void x_ConvertIntervalToPoint(CSeq_loc &loc, int pos)

Convert Interval SeqLoc into a Point.

static void x_ConvertPointToInterval(CSeq_loc &loc, int pos_left, int pos_right)

Convert a Point SeqLoc into an Interval.

static void AlterToHGVSVar(CVariation &var, CScope &scope)

static bool IsShiftable(const CSeq_loc &loc, const string &allele, CScope &scope, CVariation_inst::TType type)

static void NormalizeVariation(CVariation &var, ETargetContext target_ctxt, CScope &scope)

static bool isFullyShifted(const CVariation &var)

static void AlterToDelIns(CVariation &var, CScope &scope)

static void AlterToVCFVar(CVariation &var, CScope &scope)

static void AlterToVarLoc(CVariation &var, CScope &scope)

static bool x_isBaseRepeatingUnit(const string &candidate, const string &target)

static bool x_SetReference(CVariation_ref &var, const string &ref_at_location)

static CVariation_inst::TType GetVariationType(const CVariation_ref &vr)

static void x_AddRefAlleleFixFlag(CVariation &var)

static string x_GetRefAlleleFromVP(CVariantPlacement &vp, CScope &scope, TSeqPos length)

static bool IsReferenceCorrect(const CSeq_feat &feat, string &asserted_ref, string &ref_at_location, CScope &scope)

static const unsigned int MAX_LEN

static string RepeatedSubstring(const string &str)

static string x_GetAlleleFromLoc(const CSeq_loc &loc, CScope &scope)

static string GetCommonRepeatUnit(const CVariation_ref &vr)

static void GetVariationRefAlt(const CVariation_ref &vr, string &ref, vector< string > &alt)

static void CorrectRefAllele(CVariation &var, CScope &scope)

static bool x_FixAlleles(CVariation &variation, string asserted_ref, string ref_at_location)

static bool IsIntronicVariation(const CVariation_inst &inst)

iterator_bool insert(const value_type &val)

const_iterator begin() const

static const char * str(char *buf, int n)

static const struct type types[]

unsigned int TSeqPos

Type for sequence locations and lengths.

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

#define NON_CONST_ITERATE(Type, Var, Cont)

Non constant version of ITERATE macro.

TValueType Get(const TKeyType &key, TGetFlags get_flags=0, EGetResult *result=NULL)

Get an object from the cache by its key.

TOrder Add(const TKeyType &key, const TValueType &value, TWeight weight=1, TAddFlags add_flags=0, EAddResult *result=NULL)

Add new element to the cache or replace the existing value.

#define ERR_POST(message)

Error posting with file, line number information but without error codes.

#define LOG_POST(message)

This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...

#define NCBI_USER_THROW_FMT(message)

Throw a "user exception" with message processed as output to ostream.

void Error(CExceptionArgs_Base &args)

#define NCBI_THROW(exception_class, err_code, message)

Generic macro to throw an exception, given the exception class, error code and message string.

#define NCBI_RETHROW_SAME(prev_exception, message)

Generic macro to re-throw the same exception.

void Trace(CExceptionArgs_Base &args)

string ReportAll(TDiagPostFlags flags=eDPF_Exception) const

Report all exceptions.

const TPrim & Get(void) const

C * SerialClone(const C &src)

Create on heap a clone of the source object.

#define MSerial_AsnText

I/O stream manipulators –.

const string AsFastaString(void) const

void GetLabel(string *label, ELabelType type=eDefault, TLabelFlags flags=fLabel_Default) const

Append a label for this Seq-id to the supplied string.

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.

const CSeq_id * GetId(void) const

Get the id of the location return NULL if has multiple ids or no id at all.

TSeqPos GetStop(ESeqLocExtremes ext) const

TSeqPos GetLength(const CSeq_id &id, CScope *scope)

Get sequence length if scope not null, else return max possible TSeqPos.

CBioseq_Handle GetBioseqHandle(const CSeq_id &id)

Get bioseq handle by seq-id.

CSeqVector GetSeqVector(EVectorCoding coding, ENa_strand strand=eNa_strand_plus) const

Get sequence: Iupacna or Iupacaa if use_iupac_coding is true.

@ eCoding_Iupac

Set coding to printable coding (Iupacna or Iupacaa)

void GetSeqData(TSeqPos start, TSeqPos stop, string &buffer) const

Fill the buffer string with the sequence data for the interval [start, stop).

const_iterator begin(void) const

const_iterator end(void) const

CConstRef< C > ConstRef(const C *object)

Template function for conversion of const object pointer to CConstRef.

CRef< C > Ref(C *object)

Helper functions to get CRef<> and CConstRef<> objects.

bool NotEmpty(void) const THROWS_NONE

Check if CConstRef is not empty – pointing to an object and has a non-null value.

CTempString literal(const char(&str)[Size])

Templatized initialization from a string literal.

bool IsStr(void) const

Check if variant Str is selected.

const TData & GetData(void) const

Get the Data member data.

const TStr & GetStr(void) const

Get the variant data.

void SetType(TType &value)

Assign a value to Type data member.

const TType & GetType(void) const

Get the Type member data.

bool IsBool(void) const

Check if variant Bool is selected.

bool IsSetData(void) const

the specific data Check if a value has been assigned to Data data member.

const TExts & GetExts(void) const

Get the Exts member data.

void SetLocation(TLocation &value)

Assign a value to Location data member.

TExts & SetExts(void)

Assign a value to Exts data member.

const TLocation & GetLocation(void) const

Get the Location member data.

void ResetExts(void)

Reset Exts data member.

const TData & GetData(void) const

Get the Data member data.

void SetData(TData &value)

Assign a value to Data data member.

bool IsSetExts(void) const

set of extensions; will replace 'ext' field Check if a value has been assigned to Exts data member.

bool IsVariation(void) const

Check if variant Variation is selected.

const TVariation & GetVariation(void) const

Get the variant data.

bool IsSetLocation(void) const

feature made from Check if a value has been assigned to Location data member.

void SetTo(TTo value)

Assign a value to To data member.

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

void SetId(TId &value)

Assign a value to Id data member.

void SetStrand(TStrand value)

Assign a value to Strand data member.

void SetFrom(TFrom value)

Assign a value to From data member.

void SetStrand(TStrand value)

Assign a value to Strand data member.

void SetData(TData &value)

Assign a value to Data data member.

void SetSeq_data(TSeq_data &value)

Assign a value to Seq_data data member.

const TIupacna & GetIupacna(void) const

Get the variant data.

bool IsSetData(void) const

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

TIupacna & SetIupacna(void)

Select the variant.

list< CRef< CSeq_feat > > TFtable

bool IsFtable(void) const

Check if variant Ftable is selected.

const TData & GetData(void) const

Get the Data member data.

bool IsSetSeq_data(void) const

may have the data Check if a value has been assigned to Seq_data data member.

bool IsIupacna(void) const

Check if variant Iupacna is selected.

const TSeq_data & GetSeq_data(void) const

Get the Seq_data member data.

list< CRef< CVariation > > TVariations

TExt & SetExt(void)

Assign a value to Ext data member.

bool IsSetPlacements(void) const

where this beast is seen note that this is a set of locations, and there are no restrictions to the c...

void SetData(TData &value)

Assign a value to Data data member.

bool IsInstance(void) const

Check if variant Instance is selected.

const TExt & GetExt(void) const

Get the Ext member data.

const TSet & GetSet(void) const

Get the variant data.

const TInstance & GetInstance(void) const

Get the variant data.

bool IsSetVariations(void) const

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

const TVariations & GetVariations(void) const

Get the Variations member data.

TStop_offset GetStop_offset(void) const

Get the Stop_offset member data.

void SetSeq(TSeq &value)

Assign a value to Seq data member.

bool IsSetData(void) const

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

const TPlacements & GetPlacements(void) const

Get the Placements member data.

list< CRef< CUser_object > > TExt

TPlacements & SetPlacements(void)

Assign a value to Placements data member.

const TData & GetData(void) const

Get the Data member data.

bool IsSetExt(void) const

Additional undescribed extensions Check if a value has been assigned to Ext data member.

bool IsSetStop_offset(void) const

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

E_Choice Which(void) const

Which variant is currently selected.

bool IsSetStart_offset(void) const

location refinements, describing offsets into introns from product coordinates.

const TLoc & GetLoc(void) const

Get the Loc member data.

bool IsSet(void) const

Check if variant Set is selected.

void SetLoc(TLoc &value)

Assign a value to Loc data member.

TStart_offset GetStart_offset(void) const

Get the Start_offset member data.

void ResetExt(void)

Reset Ext data member.

@ e_Instance

actual sequence-edit at feat.location

TType GetType(void) const

Get the Type member data.

const TInstance & GetInstance(void) const

Get the variant data.

TAction GetAction(void) const

Get the Action member data.

list< CRef< CVariation_ref > > TVariations

E_Choice Which(void) const

Which variant is currently selected.

const TSet & GetSet(void) const

Get the variant data.

bool IsSetDelta(void) const

Sequence that replaces the location, in biological order.

bool IsSetSeq(void) const

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

bool IsSetAction(void) const

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

void SetObservation(TObservation value)

Assign a value to Observation data member.

const TDelta & GetDelta(void) const

Get the Delta member data.

void SetData(TData &value)

Assign a value to Data data member.

const TData & GetData(void) const

Get the Data member data.

const TSeq & GetSeq(void) const

Get the Seq member data.

bool IsInstance(void) const

Check if variant Instance is selected.

const TLiteral & GetLiteral(void) const

Get the variant data.

bool IsSet(void) const

Check if variant Set is selected.

void SetSeq(TSeq &value)

Assign a value to Seq data member.

list< CRef< CDelta_item > > TDelta

bool IsLiteral(void) const

Check if variant Literal is selected.

bool IsSetVariations(void) const

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

TDelta & SetDelta(void)

Assign a value to Delta data member.

const TVariations & GetVariations(void) const

Get the Variations member data.

bool IsSetData(void) const

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

@ eType_snv

delta=[morph of length 1] NOTE: this is snV not snP; the latter requires frequency-based validation t...

@ eType_inv

delta=[del, ins.seq= RevComp(variation-location)]

@ eType_mnp

delta=[morph of length >1]

@ eType_microsatellite

delta=[del, ins.seq= repeat-unit with fuzzy multiplier] variation-location is the microsat expansion ...

@ eType_delins

delta=[del, ins]

@ eType_identity

delta=[]

@ e_Instance

actual sequence-edit at feat.location

@ eAction_offset

go downstream by distance specified by multiplier (upstream if < 0), in genomic context.

@ eData_set_type_package

set represents a package of observations at a given location, generally containing asserted + referen...

@ eObservation_variant

inst represent the observed variant at a given position

@ eObservation_asserted

inst represents the asserted base at a position

@ eObservation_reference

inst represents the reference base at the position

constexpr auto rotate(list< Ts... >) -> decltype((list<>{}+...+rotate_item< Ts >{}))

Int4 delta(size_t dimension_, const Int4 *score_)

A struct to keep track of the start and stop of the range.

static bool s_ContainsOffset(const CVariation_inst &inst)

bool isVarNormType(const CRef< CUser_object > &uo)

static bool s_ContainsSeqDataIupacna(const CDelta_item &delta_item)

static void s_GetAltRefFromInst(const CVariation_inst &inst, string &ref, vector< string > &alt)

static string s_GetFirstSeqDataIupacna(const CVariation_inst_Base::TDelta &deltas)


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