NCBI C++ ToolKit
Typedefs | Enumerations | Enumerator | Functions
Sequence weight
+ Collaboration diagram for Sequence weight:

Typedefs

typedef int TGetProteinWeight
 
typedef map< CConstRef< CSeq_loc >, double > TWeights
 

Enumerations

enum  FGetProteinWeight { fGetProteinWeight_ForceInitialMetTrim = 1 << 0 }
 

Functions

double GetProteinWeight (const CBioseq_Handle &handle, const CSeq_loc *location=0, TGetProteinWeight opts=0)
 Handles the standard 20 amino acids and Sec and Pyl; treats Asx as Asp, Glx as Glu, and Xle as Leu; ignores Xxx, dash (gap), and asterisk (stop); throws CObjmgrUtilException on anything else. More...
 
double GetProteinWeight (const CSeq_feat &prot_feat, CScope &scope, const CSeq_loc *location=0, TGetProteinWeight opts=0)
 
double GetProteinWeight (const string &ncbieaa_sequence)
 
void GetProteinWeights (const CBioseq_Handle &handle, TWeights &weights)
 Automatically picks reasonable ranges: in decreasing priority order,. More...
 

Detailed Description

Typedef Documentation

◆ TGetProteinWeight

Definition at line 58 of file weight.hpp.

◆ TWeights

typedef map<CConstRef<CSeq_loc>, double> TWeights

Definition at line 81 of file weight.hpp.

Enumeration Type Documentation

◆ FGetProteinWeight

Enumerator
fGetProteinWeight_ForceInitialMetTrim 

Definition at line 53 of file weight.hpp.

Function Documentation

◆ GetProteinWeight() [1/3]

double GetProteinWeight ( const CBioseq_Handle handle,
const CSeq_loc location = 0,
TGetProteinWeight  opts = 0 
)

Handles the standard 20 amino acids and Sec and Pyl; treats Asx as Asp, Glx as Glu, and Xle as Leu; ignores Xxx, dash (gap), and asterisk (stop); throws CObjmgrUtilException on anything else.

NOTE: The molecular weight excludes a leading 'M' on proteins with a known valid start, provided that the location is omitted or the location begins at residue 0

Definition at line 212 of file weight.cpp.

References CSeq_data_Base::e_Ncbieaa, CMolInfo_Base::eCompleteness_complete, CMolInfo_Base::eCompleteness_no_ends, CMolInfo_Base::eCompleteness_no_left, CMolInfo_Base::eCompleteness_partial, CMolInfo_Base::eCompleteness_unknown, CSeqVector::end(), fGetProteinWeight_ForceInitialMetTrim, CBioseq_Handle::GetBioseqLength(), CBioseq_Handle::GetScope(), CBioseq_Handle::GetSeqVector(), location, s_GetProteinWeight(), and CSeqVector::SetCoding().

Referenced by BOOST_AUTO_TEST_CASE(), CFeatureItem::x_AddQualsProt(), and CGff3Writer::xWriteProteinFeature().

◆ GetProteinWeight() [2/3]

double GetProteinWeight ( const CSeq_feat prot_feat,
CScope scope,
const CSeq_loc location = 0,
TGetProteinWeight  opts = 0 
)

◆ GetProteinWeight() [3/3]

double GetProteinWeight ( const string ncbieaa_sequence)

Definition at line 269 of file weight.cpp.

References s_GetProteinWeight().

◆ GetProteinWeights()

void GetProteinWeights ( const CBioseq_Handle handle,
TWeights weights 
)
Modified on Tue Apr 30 06:39:41 2024 by modify_doxy.py rev. 669887