NCBI C++ ToolKit
|
Search Toolkit Book for variation_ref::CHgvsParser::CContext
#include <misc/hgvs/hgvs_parser.hpp>
Public Types | |
enum | EMolType { eMol_not_set , eMol_g , eMol_c , eMol_r , eMol_p , eMol_mt } |
Public Member Functions | |
CContext (CRef< CScope > scope) | |
CContext (const CContext &other) | |
void | Clear () |
TSeqPos | GetLength () const |
void | SetId (const CSeq_id &id, EMolType mol_type) |
void | Validate (const CSeq_literal &literal) const |
void | Validate (const CSeq_literal &literal, const CSeq_loc &loc) const |
void | SetLoc (const SOffsetLoc &loc) |
bool | IsSetLoc () const |
CScope & | GetScope () const |
const CSeq_loc & | GetLoc () const |
const SOffsetLoc & | GetOffsetLoc () const |
const CSeq_id & | GetId () const |
const CSeq_feat & | GetCDS () const |
EMolType | GetMolType (bool check=true) const |
Private Attributes | |
CBioseq_Handle | m_bsh |
EMolType | m_mol_type |
CRef< CSeq_feat > | m_cds |
CRef< CSeq_id > | m_seq_id |
SOffsetLoc | m_loc |
CRef< CScope > | m_scope |
CContext encapsulates sequence or location context for an hgvs sub-expression. E.g. given an expression id:c.5_10delinsAT, when creating a variation-ref for delinsAT the context will refer to sequence "id" and location "5_10"
Definition at line 247 of file hgvs_parser.hpp.
Enumerator | |
---|---|
eMol_not_set | |
eMol_g | |
eMol_c | |
eMol_r | |
eMol_p | |
eMol_mt |
Definition at line 261 of file hgvs_parser.hpp.
Definition at line 250 of file hgvs_parser.hpp.
Definition at line 256 of file hgvs_parser.hpp.
|
inline |
Definition at line 270 of file hgvs_parser.hpp.
Definition at line 196 of file hgvs_parser.cpp.
References HGVS_THROW.
Definition at line 188 of file hgvs_parser.cpp.
References HGVS_THROW.
|
inline |
Definition at line 279 of file hgvs_parser.hpp.
Definition at line 175 of file hgvs_parser.cpp.
References HGVS_THROW.
CHgvsParser::CContext::EMolType variation_ref::CHgvsParser::CContext::GetMolType | ( | bool | check = true | ) | const |
Definition at line 204 of file hgvs_parser.cpp.
References check, and HGVS_THROW.
const CHgvsParser::SOffsetLoc & variation_ref::CHgvsParser::CContext::GetOffsetLoc | ( | ) | const |
Definition at line 183 of file hgvs_parser.cpp.
|
inline |
Definition at line 314 of file hgvs_parser.hpp.
|
inline |
Definition at line 309 of file hgvs_parser.hpp.
Clear the context and reset it for the given seq-id. If the sequence is cdna and we're working with "c." coordinates, also find the CDS, as the coordinates are (start|stop)codon-relative.
Definition at line 212 of file hgvs_parser.cpp.
References CScope::GetBioseqHandle(), CSeq_feat_Handle::GetData(), CMappedFeat::GetMappedFeature(), HGVS_THROW, CSeqFeatData_Base::IsCdregion(), variation_ref::CHgvsParser::m_scope, and CMappedFeat::Reset().
|
inline |
Definition at line 304 of file hgvs_parser.hpp.
Referenced by variation_ref::CHgvsParser::x_expr2().
|
inline |
Definition at line 291 of file hgvs_parser.hpp.
void variation_ref::CHgvsParser::CContext::Validate | ( | const CSeq_literal & | literal, |
const CSeq_loc & | loc | ||
) | const |
Definition at line 246 of file hgvs_parser.cpp.
References CSeqVector::begin(), CBioseq_Handle::eCoding_Iupac, CSeqVector::end(), CSeqVector::GetSeqData(), HGVS_THROW, literal(), and variation_ref::CHgvsParser::m_scope.
|
private |
Definition at line 331 of file hgvs_parser.hpp.
Definition at line 333 of file hgvs_parser.hpp.
|
private |
Definition at line 335 of file hgvs_parser.hpp.
|
private |
Definition at line 332 of file hgvs_parser.hpp.
Definition at line 336 of file hgvs_parser.hpp.
Definition at line 334 of file hgvs_parser.hpp.