61 <<
"Variation-ref.population-data is deprecated and "
70 <<
"Both Variation-ref.validated and "
71 "Variation-ref.variant-properties.other-validation are "
72 "set; ignoring Variation-ref.validated");
84 <<
"Variation-ref.clinical-test is deprecated and "
93 <<
"Both Variation-ref.allele-origin and "
94 "Variation-ref.variant-properties.allele-origin are "
95 "set; ignoring Variation-ref.validated");
107 <<
"Both Variation-ref.allele-state and "
108 "Variation-ref.variant-properties.allele-state are "
109 "set; ignoring Variation-ref.validated");
121 <<
"Both Variation-ref.allele-frequency and "
122 "Variation-ref.variant-properties.allele-frequency are "
123 "set; ignoring Variation-ref.validated");
135 <<
"Both Variation-ref.is-ancestral-allele and "
136 "Variation-ref.variant-properties.is-ancestral-allele are "
137 "set; ignoring Variation-ref.validated");
149 <<
"Variation-ref.pub is deprecated and "
191 "CVariation_ref::IsSetPopulation_data(): "
192 "unsupported deprecated API");
199 "CVariation_ref::CanGetPopulation_data(): "
200 "unsupported deprecated API");
207 "CVariation_ref::ResetPopulation_data(): "
208 "unsupported deprecated API");
215 "CVariation_ref::GetPopulation_data(): "
216 "unsupported deprecated API");
223 "CVariation_ref::SetPopulation_data(): "
224 "unsupported deprecated API");
280 "Dropping deprecated conflicting data: "
281 "Variation-ref.validated: "
282 "Variation-ref.variant-prop.other-validation set");
299 "CVariation_ref::IsSetClinical_test(): "
300 "unsupported deprecated API");
307 "CVariation_ref::CanGetClinical_test(): "
308 "unsupported deprecated API");
315 "CVariation_ref::ResetClinical_test(): "
316 "unsupported deprecated API");
323 "CVariation_ref::GetClinical_test(): "
324 "unsupported deprecated API");
331 "CVariation_ref::SetClinical_test(): "
332 "unsupported deprecated API");
388 "Dropping deprecated conflicting data: "
389 "Variation-ref.allele-origin: "
390 "Variation-ref.variant-prop.allele-origin set");
454 "Dropping deprecated conflicting data: "
455 "Variation-ref.allele-state: "
456 "Variation-ref.variant-prop.allele-state set");
520 "Dropping deprecated conflicting data: "
521 "Variation-ref.allele-frequency: "
522 "Variation-ref.variant-prop.allele-frequency set");
585 "Dropping deprecated conflicting data: "
586 "Variation-ref.is-ancestral-allele: "
587 "Variation-ref.variant-prop.is-ancestral-allele set");
603 "CVariation_ref::IsSetPub(): "
604 "unsupported deprecated API");
611 "CVariation_ref::CanGetPub(): "
612 "unsupported deprecated API");
619 "CVariation_ref::ResetPub(): "
620 "unsupported deprecated API");
627 "CVariation_ref::GetPub(): "
628 "unsupported deprecated API");
635 "CVariation_ref::SetPub(): "
636 "unsupported deprecated API");
643 "CVariation_ref::SetPub(): "
644 "unsupported deprecated API");
653 inst.SetDelta().clear();
656 inst.SetDelta().push_back(
offset);
660 auto& seq_literal = delta_item->SetSeq().SetLiteral();
661 seq_literal.SetSeq_data().Assign(nucleotide);
662 seq_literal.SetLength(1);
663 inst.SetDelta().push_back(delta_item);
673 inst.SetDelta().clear();
676 inst.SetDelta().push_back(
offset);
680 auto& seq_literal = delta_item->SetSeq().SetLiteral();
681 seq_literal.SetSeq_data().Assign(nucleotide);
682 seq_literal.SetLength(length);
683 inst.SetDelta().push_back(delta_item);
691 inst.SetDelta().clear();
693 delta_item->SetSeq().SetLiteral().SetSeq_data().Assign(amino_acid);
694 delta_item->SetSeq().SetLiteral().SetLength() = 1;
695 inst.SetDelta().push_back(delta_item);
705 inst.SetDelta().clear();
707 inst.SetDelta().push_back(start_offset);
711 delta_item->SetDuplication();
712 inst.SetDelta().push_back(delta_item);
714 inst.SetDelta().push_back(stop_offset);
729 inst.SetDelta().clear();
732 inst.SetDelta().push_back(start_offset);
736 delta_item->SetSeq().SetLiteral(*seq_literal);
737 inst.SetDelta().push_back(delta_item);
740 inst.SetDelta().push_back(stop_offset);
855 const vector<string>& replaces,
859 list< CRef<CDelta_item> > items;
860 bool has_del =
false;
862 ITERATE (vector<string>, it, replaces) {
867 if (rep.empty() || rep ==
"-") {
871 item->SetSeq().SetLiteral().SetLength(
TSeqPos(rep.size()));
873 item->SetSeq().SetLiteral().SetSeq_data().SetIupacna().Set(rep);
875 item->SetSeq().SetLiteral().SetSeq_data().SetIupacaa().Set(rep);
877 items.push_back(item);
881 if (has_del && items.size()) {
894 sub->SetData().SetInstance().SetDelta().clear();
895 ref.
SetData().SetSet().SetVariations().push_back(sub);
899 sub->SetData().SetInstance().SetType(var_type);
900 sub->SetData().SetInstance().SetDelta()
901 .insert(sub->SetData().SetInstance().SetDelta().end(),
902 items.begin(), items.end());
903 ref.
SetData().SetSet().SetVariations().push_back(sub);
906 ref.
SetData().SetInstance().SetDelta().clear();
908 else if (items.size()) {
909 ref.
SetData().SetInstance().SetType(var_type);
910 ref.
SetData().SetInstance().SetDelta()
911 .insert(ref.
SetData().SetInstance().SetDelta().end(),
912 items.begin(), items.end());
955 GetData().GetInstance().IsSetType() &&
1018 item->SetSeq().SetThis();
1021 vector<string> replaces;
1022 replaces.push_back(sequence);
1060 vector<string> replaces;
1061 replaces.push_back(sequence);
1082 vector<string> replaces;
1083 replaces.push_back(nucleotide_seq);
1087 inst.
SetDelta().front()->SetMultiplier(min_repeats);
1089 ->SetMultiplier_fuzz().SetRange().SetMin(min_repeats);
1091 ->SetMultiplier_fuzz().SetRange().SetMax(max_repeats);
1104 const vector<TSeqPos>& observed_repeats)
1109 vector<string> replaces;
1110 replaces.push_back(nucleotide_seq);
1114 inst.
SetDelta().front()->SetMultiplier(observed_repeats.front());
1115 if (observed_repeats.size() > 1) {
1117 observed_repeats.end(),
1118 back_inserter(inst.
SetDelta().front()
1119 ->SetMultiplier_fuzz().SetAlt()));
1131 item->SetSeq().SetThis();
1153 item->SetSeq().SetThis();
1181 item->SetSeq().SetThis();
1208 item->SetSeq().SetThis();
1209 item->SetMultiplier_fuzz().SetRange().SetMin(min_copy);
1210 item->SetMultiplier_fuzz().SetRange().SetMax(max_copy);
1223 item->SetSeq().SetThis();
1224 std::copy(observed_copies.begin(), observed_copies.end(),
1225 back_inserter(item->SetMultiplier_fuzz().SetAlt()));
1237 item->SetSeq().SetLoc().Assign(other_loc);
1257 item->SetSeq().SetLoc().Assign(other_loc);
1286 item->SetSeq().SetLoc().Assign(other_loc);
User-defined methods of the data storage class.
static void s_SetReplaces(CVariation_ref &ref, const vector< string > &replaces, CVariation_ref::ESeqType seq_type, CVariation_inst::EType var_type)
User-defined methods of the data storage class.
bool CanGetExt_locs(void) const
void SetCNV()
Make this variant a copy number variant.
TValidated GetValidated(void) const
TAllele_state & SetAllele_state(void)
TLocation & SetLocation(void)
const TPub & GetPub(void) const
bool CanGetAllele_state(void) const
void SetEversion(const CSeq_loc &other_loc)
The feature represents an eversion at the specified location The provided location should be downstre...
void ResetPopulation_data(void)
bool IsSetIs_ancestral_allele(void) const
TIs_ancestral_allele GetIs_ancestral_allele(void) const
const TExt & GetExt(void) const
const TClinical_test & GetClinical_test(void) const
void SetInsertion()
Make this variant an insertion of unknown sequence.
TAllele_origin & SetAllele_origin(void)
void SetDeletionInsertion(const string &sequence, ESeqType seq_type)
Make this variant an insertion.
const TExt_locs & GetExt_locs(void) const
bool IsSetAllele_origin(void) const
bool IsSetPopulation_data(void) const
Prohibited deprecated functions Due to limitations in ASN spec-land, we cannot officially remove thes...
void PostRead()
PostRead() hooks to establish correct, non-deprecated data layout.
TPopulation_data & SetPopulation_data(void)
void ResetAllele_frequency(void)
const TLocation & GetLocation(void) const
TAllele_frequency & SetAllele_frequency(void)
bool IsSetExt(void) const
void SetOther()
Create a variant of type 'other'.
bool IsMicrosatellite() const
TAllele_origin GetAllele_origin(void) const
void SetUnknown()
Create a variant of unknown type.
void ResetAllele_origin(void)
TValidated & SetValidated(void)
bool CanGetAllele_frequency(void) const
void SetDeletion()
Make this variant a deletion.
bool CanGetPub(void) const
bool IsUniparentalDisomy() const
TAllele_state GetAllele_state(void) const
bool IsSetClinical_test(void) const
void SetSNV(const CSeq_data &nucleotide, CRef< CDelta_item > offset=null)
void ResetAllele_state(void)
bool IsDeletionInsertion() const
ESeqType
Enum governing sequence types for supplied sequence strings.
void SetUniparentalDisomy()
Establish a uniparental disomy mark-up.
bool IsSetLocation(void) const
NOTE: THESE ARE GOING AWAY SOON!!
bool IsSetValidated(void) const
bool IsTranslocation() const
bool CanGetValidated(void) const
void ResetValidated(void)
void SetGain()
Special subtype of CNV: 'gain' - an unspecified increase in copy number.
TClinical_test & SetClinical_test(void)
bool CanGetAllele_origin(void) const
void SetIdentity(CRef< CSeq_literal > seq_literal, CRef< CDelta_item > start_offset=null, CRef< CDelta_item > stop_offset=null)
TExt_locs & SetExt_locs(void)
bool IsSetAllele_frequency(void) const
TAllele_frequency GetAllele_frequency(void) const
bool CanGetPopulation_data(void) const
bool CanGetClinical_test(void) const
bool CanGetLocation(void) const
bool IsSetExt_locs(void) const
void ResetIs_ancestral_allele(void)
void SetLoss()
Special subtype of CNV: 'loss' - an unspecified decrease in copy number.
void SetMissense(const CSeq_data &amino_acid)
const TPopulation_data & GetPopulation_data(void) const
void SetMicrosatellite(const string &nucleotide_seq, TSeqPos min_repeats, TSeqPos max_repeats)
Set the standard fields for a microsatellite.
bool IsSetPub(void) const
void SetTranslocation(const CSeq_loc &other_loc)
The feature represents a translocation event The provided location can be anywhere; a special case ex...
bool CanGetExt(void) const
bool IsSetAllele_state(void) const
void SetMNP(const CSeq_data &nucleotide, TSeqPos length, CRef< CDelta_item > offset=null)
void SetInversion(const CSeq_loc &other_loc)
The feature represents an inversion at the specified location The provided location should be upstrea...
TIs_ancestral_allele & SetIs_ancestral_allele(void)
void SetComplex()
Create a complex undescribed variant.
bool CanGetIs_ancestral_allele(void) const
void SetDuplication(CRef< CDelta_item > start_offset=null, CRef< CDelta_item > stop_offset=null)
void Validate()
Validate that all semantic fields are correct.
void ResetClinical_test(void)
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
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.
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.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)
Truncate spaces in a string (in-place)
static string & ToUpper(string &str)
Convert string to upper case – string& version.
bool IsSetSeq_data(void) const
may have the data Check if a value has been assigned to Seq_data data member.
void ResetClinical_test(void)
Reset Clinical_test data member.
TType GetType(void) const
Get the Type member data.
TAllele_origin GetAllele_origin(void) const
Get the Allele_origin member data.
const TInstance & GetInstance(void) const
Get the variant data.
const TVariant_prop & GetVariant_prop(void) const
Get the Variant_prop member data.
void ResetPopulation_data(void)
Reset Population_data data member.
void SetComplex(void)
Select the variant.
bool CanGetIs_ancestral_allele(void) const
Check if it is safe to call GetIs_ancestral_allele method.
list< CRef< CVariation_ref > > TVariations
bool CanGetAllele_frequency(void) const
Check if it is safe to call GetAllele_frequency method.
void ResetOther_validation(void)
Reset Other_validation data member.
void ResetValidated(void)
Reset Validated data member.
TAllele_state GetAllele_state(void) const
Get the Allele_state member data.
void SetAllele_state(TAllele_state value)
Assign a value to Allele_state data member.
bool IsSetAllele_state(void) const
Check if a value has been assigned to Allele_state data member.
const TSet & GetSet(void) const
Get the variant data.
bool IsSetDelta(void) const
Sequence that replaces the location, in biological order.
bool CanGetExt_locs(void) const
Check if it is safe to call GetExt_locs method.
void ResetAllele_frequency(void)
Reset Allele_frequency data member.
bool CanGetExt(void) const
Check if it is safe to call GetExt method.
bool IsSetVariant_prop(void) const
variant properties bit fields Check if a value has been assigned to Variant_prop data member.
bool IsSetAllele_origin(void) const
Check if a value has been assigned to Allele_origin data member.
void ResetAllele_state(void)
Reset Allele_state data member.
bool CanGetLocation(void) const
Check if it is safe to call GetLocation method.
TType GetType(void) const
Get the Type member data.
void ResetAllele_frequency(void)
Reset Allele_frequency data member.
void ResetAllele_origin(void)
Reset Allele_origin data member.
void SetType(TType value)
Assign a value to Type data member.
bool CanGetAllele_state(void) const
Check if it is safe to call GetAllele_state method.
bool CanGetValidated(void) const
Check if it is safe to call GetValidated method.
bool IsSetAllele_origin(void) const
Check if a value has been assigned to Allele_origin data member.
bool IsSetPopulation_data(void) const
Note about SNP representation and pretinent fields: allele-frequency, population, quality-codes: The ...
TIs_ancestral_allele GetIs_ancestral_allele(void) const
Get the Is_ancestral_allele member data.
bool CanGetVariant_prop(void) const
Check if it is safe to call GetVariant_prop method.
bool CanGetAllele_origin(void) const
Check if it is safe to call GetAllele_origin method.
const TDelta & GetDelta(void) const
Get the Delta member data.
TLocation & SetLocation(void)
Assign a value to Location data member.
void SetUnknown(void)
Select the variant.
bool IsSetPub(void) const
publication support.
void ResetLocation(void)
Reset Location data member.
void ResetExt(void)
Reset Ext data member.
void SetData(TData &value)
Assign a value to Data data member.
void ResetAllele_state(void)
Reset Allele_state data member.
bool IsSetAllele_frequency(void) const
NOTE: 'allele-frequency' here refers to the minor allele frequency of the default population DEPRECAT...
const TData & GetData(void) const
Get the Data member data.
TData & SetData(void)
Assign a value to Data data member.
bool CanGetOther_validation(void) const
Check if it is safe to call GetOther_validation method.
const TLocation & GetLocation(void) const
Get the Location member data.
TValidated GetValidated(void) const
Get the Validated member data.
TVariant_prop & SetVariant_prop(void)
Assign a value to Variant_prop data member.
TExt_locs & SetExt_locs(void)
Assign a value to Ext_locs data member.
bool CanGetAllele_origin(void) const
Check if it is safe to call GetAllele_origin method.
bool CanGetAllele_state(void) const
Check if it is safe to call GetAllele_state method.
void ResetExt_locs(void)
Reset Ext_locs data member.
void SetAllele_origin(TAllele_origin value)
Assign a value to Allele_origin data member.
bool IsInstance(void) const
Check if variant Instance is selected.
TOther_validation GetOther_validation(void) const
Get the Other_validation member data.
bool IsSetAllele_state(void) const
Check if a value has been assigned to Allele_state data member.
list< CRef< CPopulation_data > > TPopulation_data
bool CanGetAllele_frequency(void) const
Check if it is safe to call GetAllele_frequency method.
bool TIs_ancestral_allele
bool IsSetIs_ancestral_allele(void) const
is this variant the ancestral allele? DEPRECATED: new field = VariantProperties.is-ancestral-allele C...
bool IsUniparental_disomy(void) const
Check if variant Uniparental_disomy is selected.
bool IsSet(void) const
Check if variant Set is selected.
void SetType(TType value)
Assign a value to Type data member.
bool IsSetClinical_test(void) const
link-outs to GeneTests database DEPRECATED - do not use Check if a value has been assigned to Clinica...
TAllele_frequency GetAllele_frequency(void) const
Get the Allele_frequency member data.
void SetIs_ancestral_allele(TIs_ancestral_allele value)
Assign a value to Is_ancestral_allele data member.
void ResetAllele_origin(void)
Reset Allele_origin data member.
TSet & SetSet(void)
Select the variant.
void ResetPub(void)
Reset Pub data member.
bool IsUnknown(void) const
Check if variant Unknown is selected.
TVariations & SetVariations(void)
Assign a value to Variations data member.
void ResetIs_ancestral_allele(void)
Reset Is_ancestral_allele data member.
bool IsSetLocation(void) const
Observed location, if different from the parent set or feature.location.
bool IsSetType(void) const
Check if a value has been assigned to Type data member.
bool IsSetIs_ancestral_allele(void) const
is this variant the ancestral allele? Check if a value has been assigned to Is_ancestral_allele data ...
bool IsSetOther_validation(void) const
has this variant been validated? While a boolean flag offers no subtle distinctions of validation met...
bool IsSetValidated(void) const
has this variant been validated? DEPRECATED: new field = VariantProperties.other-validation Check if ...
void SetUniparental_disomy(void)
Select the variant.
TIs_ancestral_allele GetIs_ancestral_allele(void) const
Get the Is_ancestral_allele member data.
void SetOther_validation(TOther_validation value)
Assign a value to Other_validation data member.
list< CRef< CExt_loc > > TExt_locs
TAllele_frequency GetAllele_frequency(void) const
Get the Allele_frequency member data.
void ResetIs_ancestral_allele(void)
Reset Is_ancestral_allele data member.
TInstance & SetInstance(void)
Select the variant.
const TExt_locs & GetExt_locs(void) const
Get the Ext_locs member data.
bool IsSetExt_locs(void) const
reference other locs, e.g.
bool CanGetIs_ancestral_allele(void) const
Check if it is safe to call GetIs_ancestral_allele method.
void SetAllele_frequency(TAllele_frequency value)
Assign a value to Allele_frequency data member.
TDelta & SetDelta(void)
Assign a value to Delta data member.
const TExt & GetExt(void) const
Get the Ext member data.
TExt & SetExt(void)
Assign a value to Ext data member.
list< CRef< CDbtag > > TClinical_test
bool IsSetAllele_frequency(void) const
NOTE: 'allele-frequency' here refers to the minor allele frequency of the default population Check if...
bool IsSetExt(void) const
DEPRECATED - do not use; use Seq-feat.exts instead Check if a value has been assigned to Ext data mem...
TAllele_origin GetAllele_origin(void) const
Get the Allele_origin member data.
bool IsComplex(void) const
Check if variant Complex is selected.
TAllele_state GetAllele_state(void) const
Get the Allele_state member data.
@ eType_snv
delta=[morph of length 1] NOTE: this is snV not snP; the latter requires frequency-based validation t...
@ eType_inverted_copy
delta=[ins.seq= upstream location on the opposite strand]
@ 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_everted_copy
delta=[ins.seq= downstream location on the opposite strand]
@ eType_cnv
delta=[del, ins= 'this' with fuzzy multiplier]
@ eType_prot_missense
delta=[morph of length 1]
@ eType_translocation
delta=like delins
@ 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
@ eData_set_type_compound
complex change at the same location on the same molecule
@ eObservation_asserted
inst represents the asserted base at a position
void copy(Njn::Matrix< S > *matrix_, const Njn::Matrix< T > &matrix0_)