MotifMatrix
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .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
Double, Int32)Creates a countsMatrix that may be sampled from where columns have informationContentPerColumn information content and there are motifLength columns
| Name | Type | Description |
|---|---|---|
informationContentPerColumn | Double | , information content per column |
motifLength | Int32 | , number of columns |
Initializes the countsMatrix then randomly chooses the probabilities based off of the information content per column
Int32)Call this upon each row of the countsMatrix
- Picks a random base to emphasize
- Maintains an epoch and step counter to add less as epochs go on
Randomly picks a base other than the target base and takes step counts from it and gives it to the target base
- 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.
| Name | Type | Description |
|---|---|---|
idx | Int32 | , row index of motif to perform work on |
Int32(), Int32, Int32)Picks the index in a row that may be decremented without going negative
| Name | Type | Description |
|---|---|---|
row | Int32() | , row of counts |
targetIdx | Int32 | , target index that may not be decremented |
step | Int32 | , amount of decrement |
index to decrement
Initializes the countsMatrix with the rowSum/4 value