NCBI C++ ToolKit
|
Search Toolkit Book for SSNP_Info
#include <objmgr/impl/snp_info.hpp>
Static Public Attributes | |
static const char *const | s_SNP_Type_Label [eSNP_Type_last] |
Definition at line 53 of file snp_info.hpp.
typedef Uint2 SSNP_Info::TAlleleIndex |
Definition at line 152 of file snp_info.hpp.
typedef Uint1 SSNP_Info::TCommentIndex |
Definition at line 127 of file snp_info.hpp.
typedef Uint2 SSNP_Info::TExtraIndex |
Definition at line 139 of file snp_info.hpp.
typedef Uint1 SSNP_Info::TFlags |
Definition at line 158 of file snp_info.hpp.
typedef Uint1 SSNP_Info::TPositionDelta |
Definition at line 123 of file snp_info.hpp.
typedef Uint2 SSNP_Info::TQualityCodesIndex |
Definition at line 144 of file snp_info.hpp.
typedef CRange<TSeqPos> SSNP_Info::TRange |
Definition at line 56 of file snp_info.hpp.
typedef int SSNP_Info::TSNPId |
Definition at line 122 of file snp_info.hpp.
typedef Uint1 SSNP_Info::TWeight |
Definition at line 132 of file snp_info.hpp.
anonymous enum |
Enumerator | |
---|---|
kMax_PositionDelta |
Definition at line 124 of file snp_info.hpp.
anonymous enum |
Enumerator | |
---|---|
kNo_CommentIndex | |
kMax_CommentIndex |
Definition at line 128 of file snp_info.hpp.
anonymous enum |
Enumerator | |
---|---|
fwWeightQual | |
fwWeightExt | |
fWeightFlagBits | |
kMax_Weight |
Definition at line 133 of file snp_info.hpp.
anonymous enum |
Enumerator | |
---|---|
kNo_ExtraIndex | |
kMax_ExtraIndex |
Definition at line 140 of file snp_info.hpp.
anonymous enum |
Enumerator | |
---|---|
kNo_QualityCodesIndex | |
kMax_QualityCodesIndex |
Definition at line 145 of file snp_info.hpp.
anonymous enum |
Enumerator | |
---|---|
kMax_AllelesCount |
Definition at line 149 of file snp_info.hpp.
anonymous enum |
Enumerator | |
---|---|
kNo_AlleleIndex | |
kMax_AlleleIndex |
Definition at line 153 of file snp_info.hpp.
enum SSNP_Info::ESNP_Type |
Definition at line 72 of file snp_info.hpp.
enum SSNP_Info::FFlags |
Enumerator | |
---|---|
fRemoved | |
fPlusStrand | |
fMinusStrand | |
fFuzzLimTr | |
fAlleleReplace | |
fQualityCodesStr | |
fQualityCodesOs | |
fQualityCodesMask |
Definition at line 159 of file snp_info.hpp.
CRef< CSeq_feat > SSNP_Info::CreateSeq_feat | ( | const CSeq_annot_SNP_Info & | annot_info | ) | const |
Definition at line 755 of file snp_annot_info.cpp.
References x_CreateSeq_feat(), and x_UpdateSeq_feat().
size_t SSNP_Info::GetAllelesCount | ( | void | ) | const |
Definition at line 115 of file snp_annot_info.cpp.
References count, kMax_AllelesCount, kNo_AlleleIndex, and m_AllelesIndices.
Referenced by GetAlleleStrIndex(), and CSeq_feat_Handle::GetSNPAllelesCount().
|
inline |
Definition at line 274 of file snp_info.hpp.
References _ASSERT, GetAllelesCount(), and m_AllelesIndices.
|
inline |
Definition at line 289 of file snp_info.hpp.
References m_ExtraIndex.
|
inline |
Definition at line 197 of file snp_info.hpp.
References m_PositionDelta, and m_ToPosition.
Referenced by CAnnotObject_Ref::CAnnotObject_Ref(), and NotThis().
string SSNP_Info::GetLabel | ( | const CSeq_annot_SNP_Info & | info | ) | const |
Definition at line 785 of file snp_annot_info.cpp.
References count, kMax_AllelesCount, kNo_AlleleIndex, m_AllelesIndices, str(), and CSeq_annot_SNP_Info::x_GetAllele().
Referenced by CSeq_annot_SNP_Info::GetLabel().
|
inline |
Definition at line 304 of file snp_info.hpp.
References _ASSERT, fQualityCodesOs, m_Flags, and m_QualityCodesIndex.
|
inline |
Definition at line 296 of file snp_info.hpp.
References _ASSERT, fQualityCodesStr, m_Flags, and m_QualityCodesIndex.
CUser_field::TData::E_Choice SSNP_Info::GetQualityCodesWhich | ( | void | ) | const |
Definition at line 127 of file snp_annot_info.cpp.
References CUser_field_Base::C_Data::e_not_set, CUser_field_Base::C_Data::e_Os, CUser_field_Base::C_Data::e_Str, fQualityCodesOs, fQualityCodesStr, and m_Flags.
Referenced by CSeq_feat_Handle::GetSNPQualityCodeWhich().
|
inline |
Definition at line 204 of file snp_info.hpp.
References m_ToPosition.
Referenced by CAnnotObject_Ref::CAnnotObject_Ref(), and NoMore().
|
inline |
Definition at line 267 of file snp_info.hpp.
References kNo_AlleleIndex, and m_AllelesIndices.
Referenced by HasLabel().
|
inline |
Definition at line 282 of file snp_info.hpp.
References HasAlleles().
Referenced by CSeq_annot_SNP_Info::HasLabel().
|
inline |
Definition at line 225 of file snp_info.hpp.
References fRemoved, and m_Flags.
Referenced by CSeq_feat_Handle::IsRemoved().
|
inline |
Definition at line 218 of file snp_info.hpp.
References fMinusStrand, and m_Flags.
Referenced by CAnnotObject_Ref::CAnnotObject_Ref(), CSeq_feat_Handle::IsSNPMinusStrand(), and x_UpdateSeq_feat().
Definition at line 252 of file snp_info.hpp.
References GetTo(), kInvalidSeqPos, kMax_PositionDelta, min(), and compile_time_bits::range().
Referenced by CAnnot_Collector::x_SearchObjects().
Definition at line 260 of file snp_info.hpp.
References GetFrom(), and compile_time_bits::range().
Referenced by CAnnot_Collector::x_SearchObjects().
Definition at line 232 of file snp_info.hpp.
References m_ToPosition.
Definition at line 239 of file snp_info.hpp.
References m_ToPosition.
SSNP_Info::ESNP_Type SSNP_Info::ParseSeq_feat | ( | const CSeq_feat & | feat, |
CSeq_annot_SNP_Info & | annot_info | ||
) |
Definition at line 153 of file snp_annot_info.cpp.
References data, delta(), CObject_id_Base::e_Id, CSeqFeatData_Base::e_Imp, CUser_field_Base::C_Data::e_Int, CSeq_loc_Base::e_Int, CUser_field_Base::C_Data::e_Os, CSeq_loc_Base::e_Pnt, CObject_id_Base::e_Str, CUser_field_Base::C_Data::e_Str, CInt_fuzz_Base::eLim_tr, eNa_strand_minus, eNa_strand_plus, eNa_strand_unknown, eSNP_Bad_WrongMemberSet, eSNP_Bad_WrongTextId, eSNP_Complex_AlleleCountTooLarge, eSNP_Complex_AlleleIndexOverflow, eSNP_Complex_AlleleTooBig, eSNP_Complex_BadQAdata, eSNP_Complex_CommentIndexOverflow, eSNP_Complex_CommentTooBig, eSNP_Complex_IdCountIsNotOne, eSNP_Complex_IdCountTooLarge, eSNP_Complex_LocationGiIsBad, eSNP_Complex_LocationIsNotPoint, eSNP_Complex_LocationStrandIsBad, eSNP_Complex_NoPlaceForQAdata, eSNP_Complex_QAdataIndexOverflow, eSNP_Complex_WeightBadValue, eSNP_Complex_WeightCountIsNotOne, eSNP_Simple, fAlleleReplace, fFuzzLimTr, fMinusStrand, fPlusStrand, fQualityCodesMask, fQualityCodesOs, fQualityCodesStr, fWeightFlagBits, fwWeightExt, fwWeightQual, CSeq_feat_Base::GetComment(), CUser_field_Base::GetData(), CUser_object_Base::GetData(), CSeq_feat_Base::GetData(), CDbtag_Base::GetDb(), CSeq_feat_Base::GetDbxref(), CSeq_feat_Base::GetExt(), CSeq_interval_Base::GetFrom(), CSeq_point_Base::GetFuzz(), CSeq_interval_Base::GetId(), CSeq_point_Base::GetId(), CUser_field_Base::C_Data::GetInt(), CSeq_loc_Base::GetInt(), CImp_feat_Base::GetKey(), CUser_field_Base::GetLabel(), CInt_fuzz_Base::GetLim(), CSeq_feat_Base::GetLocation(), CUser_field_Base::C_Data::GetOs(), CSeq_loc_Base::GetPnt(), CSeq_point_Base::GetPoint(), CGb_qual_Base::GetQual(), CSeq_feat_Base::GetQual(), CObject_id_Base::GetStr(), CUser_field_Base::C_Data::GetStr(), CSeq_interval_Base::GetStrand(), CSeq_loc::GetStrand(), CDbtag_Base::GetTag(), CSeq_interval_Base::GetTo(), CUser_object_Base::GetType(), CGb_qual_Base::GetVal(), i, int, CInt_fuzz_Base::IsLim(), CSeq_feat_Base::IsSetCit(), CSeq_feat_Base::IsSetComment(), CSeq_feat_Base::IsSetDbxref(), CImp_feat_Base::IsSetDescr(), CSeq_feat_Base::IsSetExcept(), CSeq_feat_Base::IsSetExcept_text(), CSeq_feat_Base::IsSetExp_ev(), CSeq_feat_Base::IsSetExt(), CSeq_point_Base::IsSetFuzz(), CSeq_interval_Base::IsSetFuzz_from(), CSeq_interval_Base::IsSetFuzz_to(), CSeq_feat_Base::IsSetId(), CImp_feat_Base::IsSetLoc(), CUser_field_Base::IsSetNum(), CSeq_feat_Base::IsSetPartial(), CSeq_feat_Base::IsSetProduct(), CSeq_feat_Base::IsSetPseudo(), CSeq_feat_Base::IsSetQual(), CSeq_interval_Base::IsSetStrand(), CSeq_point_Base::IsSetStrand(), CSeq_feat_Base::IsSetTitle(), CSeq_feat_Base::IsSetXref(), CUser_field_Base::C_Data::IsStr(), ITERATE, kId_allele, kId_dbSNP, kId_dbSnpQAdata, kId_dbSnpSynonymyData, kId_Extra, kId_QualityCodes, kId_replace, kId_variation, kId_weight, kMax_AlleleLength, kMax_AllelesCount, kMax_CommentLength, kMax_PositionDelta, kMax_Weight, kNo_AlleleIndex, kNo_CommentIndex, kNo_ExtraIndex, kNo_QualityCodesIndex, kVal_1, m_AllelesIndices, m_CommentIndex, m_ExtraIndex, m_Flags, m_PositionDelta, m_QualityCodesIndex, m_SNP_Id, m_ToPosition, m_Weight, NStr::StringToInt(), tag, rapidjson::value, CObject_id_Base::Which(), CUser_field_Base::C_Data::Which(), CSeq_loc_Base::Which(), CSeq_annot_SNP_Info::x_CheckId(), CSeq_annot_SNP_Info::x_GetAlleleIndex(), CSeq_annot_SNP_Info::x_GetCommentIndex(), CSeq_annot_SNP_Info::x_GetExtraIndex(), and CSeq_annot_SNP_Info::x_GetQualityCodesIndex().
|
inline |
Definition at line 211 of file snp_info.hpp.
References fPlusStrand, and m_Flags.
Referenced by CAnnotObject_Ref::CAnnotObject_Ref(), and x_UpdateSeq_feat().
void SSNP_Info::UpdateSeq_feat | ( | CRef< CSeq_feat > & | seq_feat, |
const CSeq_annot_SNP_Info & | annot_info | ||
) | const |
Definition at line 763 of file snp_annot_info.cpp.
References CObject::ReferencedOnlyOnce(), x_CreateSeq_feat(), and x_UpdateSeq_feat().
Referenced by CCreateFeat::GetOriginalFeat(), and CCreatedFeat_Ref::GetOriginalFeature().
void SSNP_Info::UpdateSeq_feat | ( | CRef< CSeq_feat > & | seq_feat, |
CRef< CSeq_point > & | seq_point, | ||
CRef< CSeq_interval > & | seq_interval, | ||
const CSeq_annot_SNP_Info & | annot_info | ||
) | const |
Definition at line 773 of file snp_annot_info.cpp.
References CObject::ReferencedOnlyOnce(), x_CreateSeq_feat(), and x_UpdateSeq_feat().
Definition at line 462 of file snp_annot_info.cpp.
References CPackString::Assign(), data, kId_dbSNP, kId_dbSnpSynonymyData, kId_variation, kId_weight, CSeq_feat_Base::SetData(), CUser_object_Base::SetData(), CDbtag_Base::SetDb(), CSeq_feat_Base::SetDbxref(), CSeq_feat_Base::SetExt(), CUser_field_Base::SetLabel(), and CUser_object_Base::SetType().
Referenced by CreateSeq_feat(), and UpdateSeq_feat().
void SSNP_Info::x_UpdateSeq_feat | ( | CSeq_feat & | feat, |
const CSeq_annot_SNP_Info & | annot_info | ||
) | const |
Definition at line 705 of file snp_annot_info.cpp.
References CInt_fuzz_Base::eLim_tr, eNa_strand_minus, eNa_strand_plus, fFuzzLimTr, CSeq_annot_SNP_Info::GetSeq_id(), m_Flags, m_PositionDelta, m_ToPosition, MinusStrand(), PlusStrand(), CSeq_point_Base::ResetFuzz(), CSeq_interval_Base::ResetStrand(), CSeq_point_Base::ResetStrand(), CSeq_interval_Base::SetFrom(), CSeq_point_Base::SetFuzz(), CSeq_interval_Base::SetId(), CSeq_point_Base::SetId(), CSeq_feat_Base::SetLocation(), CSeq_point_Base::SetPoint(), CSeq_interval_Base::SetStrand(), CSeq_point_Base::SetStrand(), CSeq_interval_Base::SetTo(), and x_UpdateSeq_featData().
Referenced by CreateSeq_feat(), and UpdateSeq_feat().
void SSNP_Info::x_UpdateSeq_feat | ( | CSeq_feat & | feat, |
CRef< CSeq_point > & | seq_point, | ||
CRef< CSeq_interval > & | seq_interval, | ||
const CSeq_annot_SNP_Info & | annot_info | ||
) | const |
Definition at line 650 of file snp_annot_info.cpp.
References CInt_fuzz_Base::eLim_tr, eNa_strand_minus, eNa_strand_plus, fFuzzLimTr, CSeq_annot_SNP_Info::GetSeq_id(), m_Flags, m_PositionDelta, m_ToPosition, MinusStrand(), PlusStrand(), CSeq_point_Base::ResetFuzz(), CSeq_interval_Base::ResetStrand(), CSeq_point_Base::ResetStrand(), CSeq_interval_Base::SetFrom(), CSeq_point_Base::SetFuzz(), CSeq_interval_Base::SetId(), CSeq_point_Base::SetId(), CSeq_feat_Base::SetLocation(), CSeq_point_Base::SetPoint(), CSeq_interval_Base::SetStrand(), CSeq_point_Base::SetStrand(), CSeq_interval_Base::SetTo(), sx_GetUnreferenced(), and x_UpdateSeq_featData().
void SSNP_Info::x_UpdateSeq_featData | ( | CSeq_feat & | feat, |
const CSeq_annot_SNP_Info & | annot_info | ||
) | const |
Definition at line 505 of file snp_annot_info.cpp.
References CPackString::Assign(), data, fAlleleReplace, fQualityCodesMask, fQualityCodesStr, fWeightFlagBits, fwWeightExt, fwWeightQual, i, int, NStr::IntToString(), kId_allele, kId_dbSNP, kId_dbSnpQAdata, kId_dbSnpSynonymyData, kId_Extra, kId_QualityCodes, kId_replace, kId_variation, kId_weight, kMax_AllelesCount, kNo_AlleleIndex, kNo_CommentIndex, kNo_ExtraIndex, kVal_1, m_AllelesIndices, m_CommentIndex, m_ExtraIndex, m_Flags, m_QualityCodesIndex, m_SNP_Id, m_Weight, Ref(), CObject::ReferencedOnlyOnce(), CSeq_feat_Base::ResetComment(), CSeq_feat_Base::ResetExt(), CSeq_feat_Base::SetComment(), CUser_field_Base::SetData(), CSeq_feat_Base::SetData(), CUser_object_Base::SetData(), CDbtag_Base::SetDb(), CSeq_feat_Base::SetDbxref(), CSeq_feat_Base::SetExt(), CUser_field_Base::SetLabel(), CGb_qual_Base::SetQual(), CSeq_feat_Base::SetQual(), CDbtag_Base::SetTag(), CUser_object_Base::SetType(), CGb_qual_Base::SetVal(), sx_GetUnreferenced(), weight, CSeq_annot_SNP_Info::x_GetAllele(), CSeq_annot_SNP_Info::x_GetComment(), CSeq_annot_SNP_Info::x_GetExtra(), CSeq_annot_SNP_Info::x_GetQualityCodesOs(), and CSeq_annot_SNP_Info::x_GetQualityCodesStr().
Referenced by x_UpdateSeq_feat().
TAlleleIndex SSNP_Info::m_AllelesIndices[kMax_AllelesCount] |
Definition at line 189 of file snp_info.hpp.
Referenced by GetAllelesCount(), GetAlleleStrIndex(), GetLabel(), HasAlleles(), ParseSeq_feat(), and x_UpdateSeq_featData().
TCommentIndex SSNP_Info::m_CommentIndex |
Definition at line 185 of file snp_info.hpp.
Referenced by CSeq_feat_Handle::IsSetSNPComment(), ParseSeq_feat(), and x_UpdateSeq_featData().
TExtraIndex SSNP_Info::m_ExtraIndex |
Definition at line 187 of file snp_info.hpp.
Referenced by GetExtraIndex(), CSeq_feat_Handle::IsSetSNPExtra(), ParseSeq_feat(), and x_UpdateSeq_featData().
TFlags SSNP_Info::m_Flags |
Definition at line 183 of file snp_info.hpp.
Referenced by GetQualityCodesOsIndex(), GetQualityCodesStrIndex(), GetQualityCodesWhich(), IsRemoved(), MinusStrand(), ParseSeq_feat(), PlusStrand(), x_UpdateSeq_feat(), and x_UpdateSeq_featData().
TPositionDelta SSNP_Info::m_PositionDelta |
Definition at line 184 of file snp_info.hpp.
Referenced by GetFrom(), ParseSeq_feat(), and x_UpdateSeq_feat().
TQualityCodesIndex SSNP_Info::m_QualityCodesIndex |
Definition at line 188 of file snp_info.hpp.
Referenced by GetQualityCodesOsIndex(), GetQualityCodesStrIndex(), ParseSeq_feat(), and x_UpdateSeq_featData().
TSNPId SSNP_Info::m_SNP_Id |
Definition at line 182 of file snp_info.hpp.
Referenced by CSeq_feat_Handle::GetSNPId(), ParseSeq_feat(), and x_UpdateSeq_featData().
TSeqPos SSNP_Info::m_ToPosition |
Definition at line 181 of file snp_info.hpp.
Referenced by GetFrom(), GetTo(), operator<(), operator<(), ParseSeq_feat(), and x_UpdateSeq_feat().
TWeight SSNP_Info::m_Weight |
Definition at line 186 of file snp_info.hpp.
Referenced by CSeq_feat_Handle::GetSNPWeight(), ParseSeq_feat(), and x_UpdateSeq_featData().
Definition at line 95 of file snp_info.hpp.