R/make_sinuc_PWMs.R
make_dinuc_PWMs.RdThis function converts the basis matrix with basis vectors of dinucleotide information into matrix of dimension 16 x (sequence_length) for visualization.
make_dinuc_PWMs(vec, add_pseudo_counts = TRUE, scale = TRUE)
| vec | Column vector of the basis matrix |
|---|---|
| add_pseudo_counts | Whether pesudocounts are to be added. TRUE or FALSE. |
| scale | Whether to perform per position scaling of the matrix. TRUE or FALSE |
A (PWM) matrix with 16 rows corresponding to the dinucleotide combinations of the four nucleotides (A, C, G, T) and the relevant number of columns (i.e., number of elements in given vector/16)