NCBI C++ ToolKit
Classes | Public Types | Public Member Functions | Static Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
variation::CHgvsParser Class Reference

Search Toolkit Book for variation::CHgvsParser

#include <misc/hgvs/hgvs_parser2.hpp>

+ Inheritance diagram for variation::CHgvsParser:
+ Collaboration diagram for variation::CHgvsParser:

Classes

class  CContext
 
class  CHgvsParserException
 
struct  SFuzzyInt
 
struct  SGrammar
 
struct  SOffsetPoint
 

Public Types

enum  EOpFlags { fOpFlags_Default = 0 }
 
typedef int TOpFlags
 
- Public Types inherited from CObject
enum  EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern }
 Control filling of newly allocated memory. More...
 
typedef CObjectCounterLocker TLockerType
 Default locker type for CRef. More...
 
typedef atomic< Uint8TCounter
 Counter type is CAtomiCounter. More...
 
typedef Uint8 TCount
 Alias for value type of counter. More...
 

Public Member Functions

 CHgvsParser (CScope &scope, int tax_id=9606)
 
CRef< CVariationAsVariation (const string &hgvs_expression, TOpFlags=fOpFlags_Default)
 
string AsHgvsExpression (const CVariation &variation, CConstRef< CSeq_id > seq_id=CConstRef< CSeq_id >(NULL))
 
string AsHgvsExpression (const CVariantPlacement &p)
 
void AttachHgvs (CVariation &v)
 
CScopeSetScope ()
 
CSeq_id_Resolver::TResolversSetSeq_id_Resolvers ()
 In order of decreasing priority. More...
 
- Public Member Functions inherited from CObject
 CObject (void)
 Constructor. More...
 
 CObject (const CObject &src)
 Copy constructor. More...
 
virtual ~CObject (void)
 Destructor. More...
 
CObjectoperator= (const CObject &src) THROWS_NONE
 Assignment operator. More...
 
bool CanBeDeleted (void) const THROWS_NONE
 Check if object can be deleted. More...
 
bool IsAllocatedInPool (void) const THROWS_NONE
 Check if object is allocated in memory pool (not system heap) More...
 
bool Referenced (void) const THROWS_NONE
 Check if object is referenced. More...
 
bool ReferencedOnlyOnce (void) const THROWS_NONE
 Check if object is referenced only once. More...
 
void AddReference (void) const
 Add reference to object. More...
 
void RemoveReference (void) const
 Remove reference to object. More...
 
void ReleaseReference (void) const
 Remove reference without deleting object. More...
 
virtual void DoNotDeleteThisObject (void)
 Mark this object as not allocated in heap – do not delete this object. More...
 
virtual void DoDeleteThisObject (void)
 Mark this object as allocated in heap – object can be deleted. More...
 
void * operator new (size_t size)
 Define new operator for memory allocation. More...
 
void * operator new[] (size_t size)
 Define new[] operator for 'array' memory allocation. More...
 
void operator delete (void *ptr)
 Define delete operator for memory deallocation. More...
 
void operator delete[] (void *ptr)
 Define delete[] operator for memory deallocation. More...
 
void * operator new (size_t size, void *place)
 Define new operator. More...
 
void operator delete (void *ptr, void *place)
 Define delete operator. More...
 
void * operator new (size_t size, CObjectMemoryPool *place)
 Define new operator using memory pool. More...
 
void operator delete (void *ptr, CObjectMemoryPool *place)
 Define delete operator. More...
 
virtual void DebugDump (CDebugDumpContext ddc, unsigned int depth) const
 Define method for dumping debug information. More...
 
- Public Member Functions inherited from CDebugDumpable
 CDebugDumpable (void)
 
virtual ~CDebugDumpable (void)
 
void DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const
 
void DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const
 
void DumpToConsole (void) const
 

Static Protected Attributes

static CSafeStatic< SGrammars_grammar
 

Private Types

typedef tree_match< char const * > TParseTreeMatch
 
typedef TParseTreeMatch::const_tree_iterator TIterator
 
typedef CVariation_inst::TDelta::value_type TDelta
 
typedef CVariation::TData::TSet TVariationSet
 

Private Member Functions

CRef< CVariantPlacementx_AdjustPlacementForHgvs (const CVariantPlacement &p, const CVariation_inst &inst)
 In some cases the placement needs to be adjusted depending on inst, e.g. More...
 
CConstRef< CSeq_literalx_FindAssertedSequence (const CVariation &v)
 If the variation is a package-set, find the subvariation with observation-type "asserted" and return its literal. More...
 
TSeqPos x_GetInstLength (const CVariation_inst &inst, const CVariantPlacement &p, bool account_for_multiplier)
 Compute length of the delta. More...
 
string x_PlacementCoordsToStr (const CVariantPlacement &vp)
 
string x_AsHgvsInstExpression (const CVariation &inst_variation, CConstRef< CVariantPlacement > p, CConstRef< CSeq_literal > asserted_seq)
 Create "inst" part of HGVS expression. More...
 
string x_AsHgvsExpression (const CVariation &variation, CConstRef< CSeq_id > id, CConstRef< CSeq_literal > asserted_seq)
 Construct HGVS expression for a variation: use first VariantPlacement, or, if id is specified, irst placement with matching id; If an asserted sequence is given explicitly, it will be used in construction of HGVS expression; otherwise one will be created based on placement's literal. More...
 
string x_LocToSeqStr (const CSeq_loc &loc)
 Get literal seq at location. More...
 
string x_SeqLiteralToStr (const CSeq_literal &literal, bool translate, bool is_mito)
 translate=true will translate nucleotide literal to prot as appropriate. More...
 

Static Private Member Functions

static SFuzzyInt x_int_fuzz (TIterator const &i, const CContext &context)
 
static CRef< CSeq_pointx_abs_pos (TIterator const &i, const CContext &context)
 
static SOffsetPoint x_general_pos (TIterator const &i, const CContext &context)
 
static SOffsetPoint x_fuzzy_pos (TIterator const &i, const CContext &context)
 
static SOffsetPoint x_pos_spec (TIterator const &i, const CContext &context)
 
static SOffsetPoint x_prot_pos (TIterator const &i, const CContext &context)
 
static CRef< CVariantPlacementx_range (TIterator const &i, const CContext &context)
 
static CRef< CVariantPlacementx_location (TIterator const &i, const CContext &context)
 
static CRef< CSeq_locx_seq_loc (TIterator const &i, const CContext &context)
 
static CRef< CSeq_literalx_raw_seq (TIterator const &i, const CContext &context)
 
static TDelta x_seq_ref (TIterator const &i, const CContext &context)
 
static CRef< CSeq_literalx_raw_seq_or_len (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_delins (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_deletion (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_insertion (TIterator const &i, const CContext &context, bool check_loc)
 
static CRef< CVariationx_duplication (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_nuc_subst (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_no_change (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_nuc_inv (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_ssr (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_conversion (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_prot_ext (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_prot_missense (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_translocation (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_mut_inst (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_expr1 (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_expr2 (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_expr3 (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_prot_fs (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_list (TIterator const &i, const CContext &context)
 
static CContext x_header (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_root (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_string_content (TIterator const &i, const CContext &context)
 
static CVariation::TData::TSet::EData_set_type x_list_delimiter (TIterator const &i, const CContext &context)
 
static CRef< CVariationx_unwrap_iff_singleton (CVariation &v)
 
static bool s_hgvsaa2ncbieaa (const string &hgvsaa, string &out)
 Convert HGVS amino-acid code to ncbi code. More...
 
static bool s_hgvs_iupacaa2ncbieaa (const string &hgvsaa, string &out)
 
static bool s_hgvsaa2ncbieaa (const string &hgvsaa, bool uplow, string &out)
 
static string s_hgvsUCaa2hgvsUL (const string &hgvsaa)
 Convert non-HGVS compliant all-uppercase AAs to UpLow, e.g. ILECYS ->IleCys. More...
 
static void s_SetStartOffset (CVariantPlacement &p, const CHgvsParser::SFuzzyInt &fint)
 
static void s_SetStopOffset (CVariantPlacement &p, const CHgvsParser::SFuzzyInt &fint)
 
static TSignedSeqPos s_GetHgvsPos (TSeqPos abs_pos, const TSeqPos *atg_pos)
 if no atg_pos, assume that not dealing with coordinate systems (simply return abs-pos) otherwise, convert to hgvs coordinates: More...
 
static string s_IntWithFuzzToStr (long pos, const TSeqPos *ref_pos, bool with_sign, const CInt_fuzz *fuzz)
 this function may be used to create hgvs-coordinates (if ref_pos is not null), or to create a fuzzy hgvs-number specification (e.g. More...
 
static string s_OffsetPointToString (TSeqPos anchor_pos, const CInt_fuzz *anchor_fuzz, TSeqPos anchor_ref_pos, TSeqPos effective_seq_length, const long *offset_pos, const CInt_fuzz *offset_fuzz)
 Construct an HGVS coordinate, which may be an intronic offset-point, e.g. "5+(10_11)". More...
 
static string s_SeqIdToHgvsStr (const CVariantPlacement &vp, CScope *scope=NULL)
 Construct an hgvs "header" consisting of seq-id and mol-type, e.g. "NG_016831.1:g.". More...
 
static void sx_AppendMoltypeExceptions (CVariation &v, CScope &scope)
 

Private Attributes

CRef< CScopem_scope
 
CSeq_id_Resolver::TResolvers m_seq_id_resolvers
 

Additional Inherited Members

- Static Public Member Functions inherited from CObject
static NCBI_XNCBI_EXPORT void ThrowNullPointerException (void)
 Define method to throw null pointer exception. More...
 
static NCBI_XNCBI_EXPORT void ThrowNullPointerException (const type_info &type)
 
static EAllocFillMode GetAllocFillMode (void)
 
static void SetAllocFillMode (EAllocFillMode mode)
 
static void SetAllocFillMode (const string &value)
 Set mode from configuration parameter value. More...
 
- Static Public Member Functions inherited from CDebugDumpable
static void EnableDebugDump (bool on)
 
- Static Public Attributes inherited from CObject
static const TCount eCounterBitsCanBeDeleted = 1 << 0
 Define possible object states. More...
 
static const TCount eCounterBitsInPlainHeap = 1 << 1
 Heap signature was found. More...
 
static const TCount eCounterBitsPlaceMask
 Mask for 'in heap' state flags. More...
 
static const int eCounterStep = 1 << 2
 Skip over the "in heap" bits. More...
 
static const TCount eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2)
 Minimal value for valid objects (reference counter is zero) Must be a single bit value. More...
 
static const TCount eCounterStateMask
 Valid object, and object in heap. More...
 
- Protected Member Functions inherited from CObject
virtual void DeleteThis (void)
 Virtual method "deleting" this object. More...
 

Detailed Description

Definition at line 86 of file hgvs_parser2.hpp.

Member Typedef Documentation

◆ TDelta

typedef CVariation_inst::TDelta::value_type variation::CHgvsParser::TDelta
private

Definition at line 809 of file hgvs_parser2.hpp.

◆ TIterator

typedef TParseTreeMatch::const_tree_iterator variation::CHgvsParser::TIterator
private

Definition at line 808 of file hgvs_parser2.hpp.

◆ TOpFlags

Definition at line 104 of file hgvs_parser2.hpp.

◆ TParseTreeMatch

typedef tree_match<char const*> variation::CHgvsParser::TParseTreeMatch
private

Definition at line 807 of file hgvs_parser2.hpp.

◆ TVariationSet

Definition at line 810 of file hgvs_parser2.hpp.

Member Enumeration Documentation

◆ EOpFlags

Enumerator
fOpFlags_Default 

Definition at line 100 of file hgvs_parser2.hpp.

Constructor & Destructor Documentation

◆ CHgvsParser()

variation::CHgvsParser::CHgvsParser ( CScope scope,
int  tax_id = 9606 
)
inline

Definition at line 89 of file hgvs_parser2.hpp.

Member Function Documentation

◆ AsHgvsExpression() [1/2]

string CHgvsParser::AsHgvsExpression ( const CVariantPlacement p)

Definition at line 627 of file hgvs_writer2.cpp.

References m_scope, s_SeqIdToHgvsStr(), and x_PlacementCoordsToStr().

◆ AsHgvsExpression() [2/2]

string CHgvsParser::AsHgvsExpression ( const CVariation variation,
CConstRef< CSeq_id seq_id = CConstRef<CSeq_id>(NULL) 
)

◆ AsVariation()

CRef< CVariation > CHgvsParser::AsVariation ( const string hgvs_expression,
TOpFlags  flags = fOpFlags_Default 
)

◆ AttachHgvs()

void CHgvsParser::AttachHgvs ( CVariation v)

◆ s_GetHgvsPos()

TSignedSeqPos CHgvsParser::s_GetHgvsPos ( TSeqPos  abs_pos,
const TSeqPos atg_pos 
)
staticprivate

if no atg_pos, assume that not dealing with coordinate systems (simply return abs-pos) otherwise, convert to hgvs coordinates:

Definition at line 491 of file hgvs_writer2.cpp.

Referenced by s_IntWithFuzzToStr().

◆ s_hgvs_iupacaa2ncbieaa()

bool CHgvsParser::s_hgvs_iupacaa2ncbieaa ( const string hgvsaa,
string out 
)
staticprivate

Definition at line 1189 of file hgvs_parser2.cpp.

References out(), and NStr::ReplaceInPlace().

Referenced by s_hgvsaa2ncbieaa().

◆ s_hgvsaa2ncbieaa() [1/2]

bool CHgvsParser::s_hgvsaa2ncbieaa ( const string hgvsaa,
bool  uplow,
string out 
)
staticprivate

◆ s_hgvsaa2ncbieaa() [2/2]

bool CHgvsParser::s_hgvsaa2ncbieaa ( const string hgvsaa,
string out 
)
staticprivate

Convert HGVS amino-acid code to ncbi code.

Return true iff success; otherwise false and out = in.

Definition at line 1173 of file hgvs_parser2.cpp.

References out(), and s_hgvs_iupacaa2ncbieaa().

Referenced by x_raw_seq().

◆ s_hgvsUCaa2hgvsUL()

static string variation::CHgvsParser::s_hgvsUCaa2hgvsUL ( const string hgvsaa)
staticprivate

Convert non-HGVS compliant all-uppercase AAs to UpLow, e.g. ILECYS ->IleCys.

◆ s_IntWithFuzzToStr()

string CHgvsParser::s_IntWithFuzzToStr ( long  pos,
const TSeqPos ref_pos,
bool  with_sign,
const CInt_fuzz fuzz 
)
staticprivate

this function may be used to create hgvs-coordinates (if ref_pos is not null), or to create a fuzzy hgvs-number specification (e.g.

for multipliers, or fuzzy offset values), where pos is not adjusted (Note that pos may be negative, e.g. for offset value)

Definition at line 505 of file hgvs_writer2.cpp.

References CInt_fuzz_Base::eLim_gt, CInt_fuzz_Base::eLim_lt, CInt_fuzz_Base::eLim_tl, CInt_fuzz_Base::eLim_tr, CInt_fuzz_Base::GetLim(), CInt_fuzz_Base::C_Range::GetMax(), CInt_fuzz_Base::C_Range::GetMin(), CInt_fuzz_Base::GetRange(), CInt_fuzz_Base::IsLim(), CInt_fuzz_Base::IsRange(), NStr::LongToString(), s_GetHgvsPos(), and val.

Referenced by s_OffsetPointToString(), x_AsHgvsInstExpression(), and x_SeqLiteralToStr().

◆ s_OffsetPointToString()

string CHgvsParser::s_OffsetPointToString ( TSeqPos  anchor_pos,
const CInt_fuzz anchor_fuzz,
TSeqPos  anchor_ref_pos,
TSeqPos  effective_seq_length,
const long *  offset_pos,
const CInt_fuzz offset_fuzz 
)
staticprivate

Construct an HGVS coordinate, which may be an intronic offset-point, e.g. "5+(10_11)".

Definition at line 602 of file hgvs_writer2.cpp.

References NULL, and s_IntWithFuzzToStr().

Referenced by x_PlacementCoordsToStr().

◆ s_SeqIdToHgvsStr()

string CHgvsParser::s_SeqIdToHgvsStr ( const CVariantPlacement vp,
CScope scope = NULL 
)
staticprivate

◆ s_SetStartOffset()

void CHgvsParser::s_SetStartOffset ( CVariantPlacement p,
const CHgvsParser::SFuzzyInt fint 
)
staticprivate

◆ s_SetStopOffset()

void CHgvsParser::s_SetStopOffset ( CVariantPlacement p,
const CHgvsParser::SFuzzyInt fint 
)
staticprivate

◆ SetScope()

CScope& variation::CHgvsParser::SetScope ( void  )
inline

Definition at line 116 of file hgvs_parser2.hpp.

◆ SetSeq_id_Resolvers()

CSeq_id_Resolver::TResolvers& variation::CHgvsParser::SetSeq_id_Resolvers ( )
inline

In order of decreasing priority.

Last resolver is default catch-all, so when adding a custom one don't push_back.

Definition at line 123 of file hgvs_parser2.hpp.

Referenced by CHgvsReader::ReadSeqAnnot().

◆ sx_AppendMoltypeExceptions()

void CHgvsParser::sx_AppendMoltypeExceptions ( CVariation v,
CScope scope 
)
staticprivate

◆ x_abs_pos()

CRef< CSeq_point > CHgvsParser::x_abs_pos ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_AdjustPlacementForHgvs()

CRef< CVariantPlacement > CHgvsParser::x_AdjustPlacementForHgvs ( const CVariantPlacement p,
const CVariation_inst inst 
)
private

◆ x_AsHgvsExpression()

string CHgvsParser::x_AsHgvsExpression ( const CVariation variation,
CConstRef< CSeq_id id,
CConstRef< CSeq_literal asserted_seq 
)
private

Construct HGVS expression for a variation: use first VariantPlacement, or, if id is specified, irst placement with matching id; If an asserted sequence is given explicitly, it will be used in construction of HGVS expression; otherwise one will be created based on placement's literal.

Definition at line 224 of file hgvs_writer2.cpp.

References AsHgvsExpression(), CSerialObject::Assign(), CVariation_Base::C_Data::C_Set::eData_set_type_alleles, CVariation_Base::C_Data::C_Set::eData_set_type_chimeric, CVariation_Base::C_Data::C_Set::eData_set_type_compound, CVariation_Base::C_Data::C_Set::eData_set_type_genotype, CVariation_Base::C_Data::C_Set::eData_set_type_haplotype, CVariation_Base::C_Data::C_Set::eData_set_type_individual, CVariation_Base::C_Data::C_Set::eData_set_type_mosaic, CVariation_Base::C_Data::C_Set::eData_set_type_package, CVariation_Base::C_Data::C_Set::eData_set_type_products, CVariationMethod_Base::eMethod_E_computational, eNa_strand_minus, CVariation_inst_Base::eObservation_variant, CVariation_inst_Base::eType_microsatellite, eUnknown, CSeq_loc::GetId(), CVariantPlacement_Base::GetLoc(), CSeq_loc::GetStrand(), CVariation_Base::C_Data::C_Set::GetType(), CVariation_Base::C_Data::C_Set::GetVariations(), IsSameBioseq(), ITERATE, m_scope, NCBI_THROW, NStr::NumericToString(), CRef< C, Locker >::Reset(), CSeqportUtil::ReverseComplement(), variation::CVariationUtil::s_GetPlacements(), CSeq_literal_Base::SetSeq_data(), v2, x_AdjustPlacementForHgvs(), x_AsHgvsInstExpression(), and x_FindAssertedSequence().

Referenced by AsHgvsExpression().

◆ x_AsHgvsInstExpression()

string CHgvsParser::x_AsHgvsInstExpression ( const CVariation inst_variation,
CConstRef< CVariantPlacement p,
CConstRef< CSeq_literal asserted_seq 
)
private

◆ x_conversion()

CRef< CVariation > CHgvsParser::x_conversion ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_deletion()

CRef< CVariation > CHgvsParser::x_deletion ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_delins()

CRef< CVariation > CHgvsParser::x_delins ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_duplication()

CRef< CVariation > CHgvsParser::x_duplication ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_expr1()

CRef< CVariation > CHgvsParser::x_expr1 ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_expr2()

CRef< CVariation > CHgvsParser::x_expr2 ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_expr3()

CRef< CVariation > CHgvsParser::x_expr3 ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_FindAssertedSequence()

CConstRef< CSeq_literal > CHgvsParser::x_FindAssertedSequence ( const CVariation v)
private

◆ x_fuzzy_pos()

CHgvsParser::SOffsetPoint CHgvsParser::x_fuzzy_pos ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_general_pos()

CHgvsParser::SOffsetPoint CHgvsParser::x_general_pos ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_GetInstLength()

TSeqPos CHgvsParser::x_GetInstLength ( const CVariation_inst inst,
const CVariantPlacement p,
bool  account_for_multiplier 
)
private

◆ x_header()

CHgvsParser::CContext CHgvsParser::x_header ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_insertion()

CRef< CVariation > CHgvsParser::x_insertion ( TIterator const i,
const CContext context,
bool  check_loc 
)
staticprivate

◆ x_int_fuzz()

CHgvsParser::SFuzzyInt CHgvsParser::x_int_fuzz ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_list()

CRef< CVariation > CHgvsParser::x_list ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_list_delimiter()

CVariation::TData::TSet::EData_set_type CHgvsParser::x_list_delimiter ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_location()

CRef< CVariantPlacement > CHgvsParser::x_location ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_LocToSeqStr()

string CHgvsParser::x_LocToSeqStr ( const CSeq_loc loc)
private

Get literal seq at location.

Definition at line 482 of file hgvs_writer2.cpp.

References CSeqVector::begin(), CBioseq_Handle::eCoding_Iupac, CSeqVector::end(), CSeqVector::GetSeqData(), and m_scope.

Referenced by x_AsHgvsInstExpression().

◆ x_mut_inst()

CRef< CVariation > CHgvsParser::x_mut_inst ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_no_change()

CRef< CVariation > CHgvsParser::x_no_change ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_nuc_inv()

CRef< CVariation > CHgvsParser::x_nuc_inv ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_nuc_subst()

CRef< CVariation > CHgvsParser::x_nuc_subst ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_PlacementCoordsToStr()

string CHgvsParser::x_PlacementCoordsToStr ( const CVariantPlacement vp)
private

Definition at line 632 of file hgvs_writer2.cpp.

References CSerialObject::Assign(), CSeqFeatData_Base::e_Cdregion, eExtreme_Biological, CVariantPlacement_Base::eMol_cdna, CVariantPlacement_Base::eMol_protein, eNa_strand_minus, CSeq_loc::fMerge_SingleRange, CAliasBase< TPrim >::Get(), CScope::GetBioseqHandle(), CSeq_feat_Handle::GetData(), CSeq_point_Base::GetFuzz(), CSeq_interval_Base::GetFuzz_from(), CSeq_interval_Base::GetFuzz_to(), GetId(), CSeq_loc_Base::GetInt(), CVariantPlacement_Base::GetLoc(), CMappedFeat::GetLocation(), CVariantPlacement_Base::GetMol(), CSeq_data_Base::GetNcbieaa(), CSeq_loc_Base::GetPnt(), CSeq_point_Base::GetPoint(), CVariantPlacement_Base::GetSeq(), CSeq_literal_Base::GetSeq_data(), GetStart(), CSeq_loc::GetStart(), CVariantPlacement_Base::GetStart_offset(), CVariantPlacement_Base::GetStart_offset_fuzz(), GetStop(), CSeq_loc::GetStop(), CVariantPlacement_Base::GetStop_offset(), CVariantPlacement_Base::GetStop_offset_fuzz(), GetStrand(), CSeqFeatData_Base::IsCdregion(), CSeq_loc_Base::IsEmpty(), CSeq_loc_Base::IsInt(), CSeq_loc_Base::IsNull(), CSeq_loc_Base::IsPnt(), CSeq_point_Base::IsSetFuzz(), CSeq_interval_Base::IsSetFuzz_from(), CSeq_interval_Base::IsSetFuzz_to(), CVariantPlacement_Base::IsSetSeq(), CSeq_literal_Base::IsSetSeq_data(), CVariantPlacement_Base::IsSetStart_offset(), CVariantPlacement_Base::IsSetStart_offset_fuzz(), CVariantPlacement_Base::IsSetStop_offset(), CVariantPlacement_Base::IsSetStop_offset_fuzz(), CSeq_loc_Base::IsWhole(), m_scope, variation::Ncbieaa2HgvsAA(), NULL, CRef< C, Locker >::Reset(), CConstRef< C, Locker >::Reset(), variation::CVariationUtil::s_GetLength(), s_OffsetPointToString(), Seq_loc_Merge(), and swap().

Referenced by AsHgvsExpression(), and x_AsHgvsInstExpression().

◆ x_pos_spec()

CHgvsParser::SOffsetPoint CHgvsParser::x_pos_spec ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_prot_ext()

CRef< CVariation > CHgvsParser::x_prot_ext ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_prot_fs()

CRef< CVariation > CHgvsParser::x_prot_fs ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_prot_missense()

CRef< CVariation > CHgvsParser::x_prot_missense ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_prot_pos()

CHgvsParser::SOffsetPoint CHgvsParser::x_prot_pos ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_range()

CRef< CVariantPlacement > CHgvsParser::x_range ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_raw_seq()

CRef< CSeq_literal > CHgvsParser::x_raw_seq ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_raw_seq_or_len()

CRef< CSeq_literal > CHgvsParser::x_raw_seq_or_len ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_root()

CRef< CVariation > CHgvsParser::x_root ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_seq_loc()

CRef< CSeq_loc > CHgvsParser::x_seq_loc ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_seq_ref()

CHgvsParser::TDelta CHgvsParser::x_seq_ref ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_SeqLiteralToStr()

string CHgvsParser::x_SeqLiteralToStr ( const CSeq_literal literal,
bool  translate,
bool  is_mito 
)
private

◆ x_ssr()

CRef< CVariation > CHgvsParser::x_ssr ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_string_content()

CRef< CVariation > CHgvsParser::x_string_content ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_translocation()

CRef< CVariation > CHgvsParser::x_translocation ( TIterator const i,
const CContext context 
)
staticprivate

◆ x_unwrap_iff_singleton()

CRef< CVariation > CHgvsParser::x_unwrap_iff_singleton ( CVariation v)
staticprivate

Member Data Documentation

◆ m_scope

CRef<CScope> variation::CHgvsParser::m_scope
private

◆ m_seq_id_resolvers

CSeq_id_Resolver::TResolvers variation::CHgvsParser::m_seq_id_resolvers
private

Definition at line 931 of file hgvs_parser2.hpp.

Referenced by AsVariation().

◆ s_grammar

CSafeStatic< CHgvsParser::SGrammar > CHgvsParser::s_grammar
staticprotected

Definition at line 804 of file hgvs_parser2.hpp.

Referenced by AsVariation().


The documentation for this class was generated from the following files:
Modified on Sat Dec 09 04:45:32 2023 by modify_doxy.py rev. 669887