var_ref->SetMethod().push_back(method);
27 auto& inst = var_ref->SetData().SetInstance();
29inst.SetDelta().clear();
32inst.SetDelta().push_back(
offset);
36 auto& seq_literal = delta_item->SetSeq().SetLiteral();
37seq_literal.SetSeq_data().Assign(nucleotide);
38seq_literal.SetLength(1);
39inst.SetDelta().push_back(delta_item);
53 auto& inst = var_ref->SetData().SetInstance();
55inst.SetDelta().clear();
58inst.SetDelta().push_back(
offset);
62 auto& seq_literal = delta_item->SetSeq().SetLiteral();
63seq_literal.SetSeq_data().Assign(nucleotide);
64seq_literal.SetLength(length);
65inst.SetDelta().push_back(delta_item);
77 auto& inst = var_ref->SetData().SetInstance();
79inst.SetDelta().clear();
81delta_item->SetSeq().SetLiteral().SetSeq_data().Assign(amino_acid);
82delta_item->SetSeq().SetLiteral().SetLength() = 1;
83inst.SetDelta().push_back(delta_item);
100 if(start_offset.
NotNull()) {
101inst.
SetDelta().push_back(start_offset);
105delta_item->SetSeq().SetThis();
108inst.
SetDelta().push_back(delta_item);
111inst.
SetDelta().push_back(stop_offset);
125 auto& inst = var_ref->SetData().SetInstance();
127inst.SetDelta().clear();
128 if(start_offset.
NotNull()) {
129inst.SetDelta().push_back(start_offset);
133delta_item->SetSeq().SetThis();
134delta_item->SetMultiplier() = 2;
135inst.SetDelta().push_back(delta_item);
137inst.SetDelta().push_back(stop_offset);
149 const boolenforce_assert)
153 auto& inst = var_ref->SetData().SetInstance();
159inst.SetDelta().clear();
161 if(start_offset.
NotNull()) {
162inst.SetDelta().push_back(start_offset);
166delta_item->SetSeq().SetLiteral(*seq_literal);
167inst.SetDelta().push_back(delta_item);
170inst.SetDelta().push_back(stop_offset);
184 const boolenforce_assert)
188 auto& inst = var_ref->SetData().SetInstance();
189inst.SetType(
type);
194inst.SetDelta().clear();
196 if(start_offset.
NotNull()) {
197inst.SetDelta().push_back(start_offset);
201delta_item->SetSeq().SetLiteral(*seq_literal);
202inst.SetDelta().push_back(delta_item);
205inst.SetDelta().push_back(stop_offset);
222 auto& inst = var_ref->SetData().SetInstance();
224inst.SetDelta().clear();
226 if(start_offset.
NotNull()) {
227inst.SetDelta().push_back(start_offset);
231delta_item->SetSeq().SetLiteral(insertion);
232inst.SetDelta().push_back(delta_item);
235inst.SetDelta().push_back(stop_offset);
250 auto& inst = var_ref->SetData().SetInstance();
252inst.SetDelta().clear();
254 if(start_offset.
NotNull()) {
255inst.SetDelta().push_back(start_offset);
260delta_item->SetSeq().SetLiteral(insertion);
261inst.SetDelta().push_back(delta_item);
264inst.SetDelta().push_back(stop_offset);
278 auto& inst = var_ref->SetData().SetInstance();
280inst.SetDelta().clear();
281 if(start_offset.
NotNull()) {
282inst.SetDelta().push_back(start_offset);
286inst.SetDelta().push_back(stop_offset);
301 auto& inst = var_ref->SetData().SetInstance();
303inst.SetDelta().clear();
305 if(start_offset.
NotNull()) {
306inst.SetDelta().push_back(start_offset);
309inst.SetDelta().push_back(repeat_info);
311inst.SetDelta().push_back(stop_offset);
326 auto& inst = var_ref->SetData().SetInstance();
328inst.SetDelta().clear();
329 if(start_offset.
NotNull()) {
330inst.SetDelta().push_back(start_offset);
334delta_item->SetSeq().SetLoc().Assign(interval);
335inst.SetDelta().push_back(delta_item);
337inst.SetDelta().push_back(stop_offset);
350delta_item->SetSeq().SetLiteral().SetSeq_data().SetNcbieaa().Set(
CNCBIeaa(
"X"));
351delta_item->SetSeq().SetLiteral().SetLength(1);
352var_ref->SetData().SetInstance().SetDelta().push_back(delta_item);
354 autocons =
Ref(
newCVariation_ref::TConsequence::value_type::TObjectType());
355cons->SetFrameshift();
356var_ref->SetConsequence().push_back(cons);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
unsigned int TSeqPos
Type for sequence locations and lengths.
bool NotNull(void) const THROWS_NONE
Check if pointer is not null â same effect as NotEmpty().
CRef< C > Ref(C *object)
Helper functions to get CRef<> and CConstRef<> objects.
#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.
bool IsSetSeq_data(void) const
may have the data Check if a value has been assigned to Seq_data data member.
void SetType(TType value)
Assign a value to Type data member.
TDelta & SetDelta(void)
Assign a value to Delta 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_transposon
delta=[del, ins.seq= known donor or 'this'] variation-location is equiv of transposon locs.
@ eType_prot_other
delta=any
@ eType_identity
delta=[]
@ eType_prot_missense
delta=[morph of length 1]
@ eAction_del_at
excise sequence at location if multiplier is specified, delete len(location)*multiplier positions dow...
@ eAction_ins_before
insert seq before the location.start
@ eObservation_asserted
inst represents the asserted base at a position
CRef< CVariation_ref > g_CreateDuplication(const CVariation_ref::EMethod_E method, CRef< CDelta_item > start_offset, CRef< CDelta_item > stop_offset)
CRef< CVariation_ref > g_CreateIdentity(CRef< CSeq_literal > seq_literal, const CVariation_ref::EMethod_E method, const CRef< CDelta_item > start_offset, const CRef< CDelta_item > stop_offset, const bool enforce_assert)
CRef< CVariation_ref > g_CreateMNP(const CSeq_data &nucleotide, const TSeqPos length, const CVariation_ref::EMethod_E method, const CRef< CDelta_item > offset)
CRef< CVariation_ref > g_CreateInversion(const CVariation_ref::EMethod_E method, const CRef< CDelta_item > start_offset, const CRef< CDelta_item > stop_offset)
void s_SetVariationMethod(CRef< CVariation_ref > var_ref, const CVariation_ref::EMethod_E method)
CRef< CVariation_ref > g_CreateFrameshift(const CVariation_ref::EMethod_E method)
CRef< CVariation_ref > g_CreateConversion(const CSeq_loc &interval, const CVariation_ref::EMethod_E method, const CRef< CDelta_item > start_offset, const CRef< CDelta_item > stop_offset)
CRef< CVariation_ref > g_CreateDelins(CSeq_literal &insertion, const CVariation_ref::EMethod_E method, const CRef< CDelta_item > start_offset, const CRef< CDelta_item > stop_offset)
CRef< CVariation_ref > g_CreateVarref(CRef< CSeq_literal > seq_literal, const CVariation_inst::EType type, const CVariation_ref::EMethod_E method, const CRef< CDelta_item > start_offset, const CRef< CDelta_item > stop_offset, const bool enforce_assert)
CRef< CVariation_ref > g_CreateMissense(const CSeq_data &amino_acid, const CVariation_ref::EMethod_E method)
CRef< CVariation_ref > g_CreateDeletion(const CVariation_ref::EMethod_E method, CRef< CDelta_item > start_offset, CRef< CDelta_item > stop_offset)
CRef< CVariation_ref > g_CreateMicrosatellite(const CRef< CDelta_item > repeat_info, const CVariation_ref::EMethod_E method, const CRef< CDelta_item > start_offset, const CRef< CDelta_item > stop_offset)
CRef< CVariation_ref > g_CreateSNV(const CSeq_data &nucleotide, const CVariation_ref::EMethod_E method, const CRef< CDelta_item > offset)
CRef< CVariation_ref > g_CreateInsertion(CSeq_literal &insertion, const CVariation_ref::EMethod_E method, const CRef< CDelta_item > start_offset, const CRef< CDelta_item > stop_offset)
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