Click or drag to resize
SimpleConsensusResolver Class
Calculate the consensus for a list of symbols using simple frequency fraction method. Normal (non-gap) symbols are given a weight of 100. The confidence of a symbol is the sum of weights for that symbol, divided by the total number of symbols occurring at that position. If symbols have confidence >= threshold, symbol corresponding to set of these high confidence symbols is used. If no symbol meets the threshold, symbol corresponding to set of all the symbols at that position is used.

For ambiguous symbols, the corresponding set of base symbols are retrieved. And for frequency calculation, each base symbol is given a weight of (100 / number of base symbols).

Inheritance Hierarchy
SystemObject
  BioSimpleConsensusResolver

Namespace: Bio
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public class SimpleConsensusResolver : IConsensusResolver

The SimpleConsensusResolver type exposes the following members.

Constructors
  NameDescription
Public methodSimpleConsensusResolver(Double)
Initializes a new instance of the SimpleConsensusResolver class. Sets user parameter threshold.
Public methodSimpleConsensusResolver(IAlphabet)
Initializes a new instance of the SimpleConsensusResolver class. Sets default value for threshold.
Public methodSimpleConsensusResolver(IAlphabet, Double)
Initializes a new instance of the SimpleConsensusResolver class.
Top
Properties
  NameDescription
Public propertySequenceAlphabet
Gets or sets sequence alphabet
Public propertyThreshold
Gets or sets threshold value - used when generating consensus symbol The confidence level for a position must equal or exceed Threshold for a non-gap symbol to appear in the consensus at that position.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetConsensus
Gets consensus symbols for the input list, using frequency fraction method. Refer class summary for more details.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also

Reference