nuget server logo nuget api documents
↑

API Docs / SMRUCC.genomics.Analysis.SequenceTools.SequencePatterns.MotifFinder / MotifMatrix

MotifMatrix

Full name SMRUCC.genomics.Analysis.SequenceTools.SequencePatterns.Motif.Matrix.MotifMatrix Assembly SMRUCC.genomics.Analysis.SequenceTools.SequencePatterns.MotifFinder Members 5

01 Syntax

SMRUCC.genomics.Analysis.SequenceTools.SequencePatterns.Motif.Matrix.MotifMatrix

02 Methods

NameOverloadsSummary
.ctor 1 Creates a countsMatrix that may be sampled from where columns have informationContentPerColumn information content and there are motifLength columns
initMotifMatrix 1 Initializes the countsMatrix then randomly chooses the probabilities based off of the information content per column
stochasticGradientDescent 1 Call this upon each row of the countsMatrix 1.
pickDecrementIndex 1 Picks the index in a row that may be decremented without going negative
initCountMatrix 1 Initializes the countsMatrix with the rowSum/4 value

03 Members

method .ctor #
#ctor(Double, Int32)

Creates a countsMatrix that may be sampled from where columns have informationContentPerColumn information content and there are motifLength columns

Parameters
NameTypeDescription
informationContentPerColumnDouble

, information content per column

motifLengthInt32

, number of columns

method initMotifMatrix #
initMotifMatrix

Initializes the countsMatrix then randomly chooses the probabilities based off of the information content per column

method stochasticGradientDescent #
stochasticGradientDescent(Int32)

Call this upon each row of the countsMatrix

  1. Picks a random base to emphasize
  2. Maintains an epoch and step counter to add less as epochs go on
  3. Randomly picks a base other than the target base and takes step counts from it and gives it to the target base

    1. Calculates the Information Content after each loop

    Loop terminates after the Information Content has been surpassed through taking a step of size 1. If a step of size greater than 1 surpasses the threshold, then the epoch will be undone.

Parameters
NameTypeDescription
idxInt32

, row index of motif to perform work on

method pickDecrementIndex #
pickDecrementIndex(Int32(), Int32, Int32)

Picks the index in a row that may be decremented without going negative

Parameters
NameTypeDescription
rowInt32()

, row of counts

targetIdxInt32

, target index that may not be decremented

stepInt32

, amount of decrement

Returns

index to decrement

method initCountMatrix #
initCountMatrix

Initializes the countsMatrix with the rowSum/4 value