NCBI C++ ToolKit
|
Search Toolkit Book for variation::CHgvsParser::CContext
#include <misc/hgvs/hgvs_parser2.hpp>
Public Member Functions | |
CContext (CRef< CScope > scope, CSeq_id_Resolver::TResolvers &id_resolvers, const string &hgvs) | |
CContext (const CContext &other) | |
void | Clear () |
const CBioseq_Handle & | GetBioseqHandle () const |
void | SetId (const CSeq_id &id, CVariantPlacement::TMol mol) |
const CSeq_id & | GetId () const |
CVariantPlacement & | SetPlacement () |
const CVariantPlacement & | GetPlacement () const |
bool | IsSetPlacement () const |
CScope & | GetScope () const |
const CSeq_feat & | GetCDS () const |
CSeq_id_Handle | ResolevSeqId (const string &s) const |
const string & | GetHgvs () const |
Private Attributes | |
CBioseq_Handle | m_bsh |
CRef< CSeq_feat > | m_cds |
CRef< CVariantPlacement > | m_placement |
CRef< CScope > | m_scope |
CSeq_id_Resolver::TResolvers | m_seq_id_resolvers |
const string & | m_hgvs |
CContext encapsulates parsed sequence or location context for an hgvs sub-expression. E.g. given an expression NM_12345.6:c.5_10delinsAT, when creating a variation-ref for delinsAT the context will refer to sequence "NM_12345.6" and location "5_10"
Definition at line 254 of file hgvs_parser2.hpp.
|
inline |
Definition at line 257 of file hgvs_parser2.hpp.
Definition at line 358 of file hgvs_parser2.cpp.
References CSerialObject::Assign(), m_bsh, m_cds, m_placement, m_scope, m_seq_id_resolvers, and CRef< C, Locker >::Reset().
|
inline |
Definition at line 267 of file hgvs_parser2.hpp.
|
inline |
Definition at line 274 of file hgvs_parser2.hpp.
Definition at line 379 of file hgvs_parser2.cpp.
References HGVS_THROW.
Definition at line 320 of file hgvs_parser2.hpp.
Definition at line 387 of file hgvs_parser2.cpp.
|
inline |
Definition at line 298 of file hgvs_parser2.hpp.
|
inline |
Definition at line 308 of file hgvs_parser2.hpp.
|
inline |
Definition at line 303 of file hgvs_parser2.hpp.
|
inline |
Definition at line 315 of file hgvs_parser2.hpp.
References CSeq_id_Resolver::s_Get().
void variation::CHgvsParser::CContext::SetId | ( | const CSeq_id & | id, |
CVariantPlacement::TMol | mol | ||
) |
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 393 of file hgvs_parser2.cpp.
References CSeqFeatData_Base::e_Cdregion, CVariantPlacement_Base::eMol_cdna, CScope::GetBioseqHandle(), CSeq_feat_Handle::GetData(), CMappedFeat::GetMappedFeature(), HGVS_THROW, SAnnotSelector::IncludeFeatType(), CSeqFeatData_Base::IsCdregion(), variation::CHgvsParser::m_scope, CMappedFeat::Reset(), and SAnnotSelector::SetResolveTSE().
|
inline |
Definition at line 288 of file hgvs_parser2.hpp.
References CVariantPlacement_Base::eMol_unknown, and CVariantPlacement_Base::Reset().
Referenced by variation::CHgvsParser::x_expr2().
|
private |
Definition at line 325 of file hgvs_parser2.hpp.
Referenced by CContext().
Definition at line 326 of file hgvs_parser2.hpp.
Referenced by CContext().
Definition at line 330 of file hgvs_parser2.hpp.
|
private |
Definition at line 327 of file hgvs_parser2.hpp.
Referenced by CContext().
Definition at line 328 of file hgvs_parser2.hpp.
Referenced by CContext().
|
mutableprivate |
Definition at line 329 of file hgvs_parser2.hpp.
Referenced by CContext().