Construct a substitution matrix from a string representation.

Namespace:  BioSharp.Core.Bio.Alignment
Assembly:  BioSharp.Core (in BioSharp.Core.dll) Version: 0.1.3191.26120 (0.1.0.0)

Syntax

C#
public SubstitutionMatrix(
	IFiniteAlphabet alpha,
	string matrixString,
	string name
)

Parameters

alpha
Type: BioSharp.Core.Bio.Symbol..::.IFiniteAlphabet
The IFiniteAlphabet to use
matrixString
Type: System..::.String
The string containing the substitution matrix. Lines starting with '#' are comments. The line starting with a white space, is the table head. Every line has to start with the one letter representation of the symbol and then the values for the exchange.
name
Type: System..::.String
The name of the matrix.

Remarks

With this constructor it is possible to construct a SubstitutionMatrix object from a substitution matrix file. The given string contains a number of lines. Everything else is the same than for the constructor above.

See Also