make_sinuc_PWMs: Make a PWM-resembling matrix out of a given n-vector

Description Usage Arguments Value

View source: R/make_sinuc_PWMs.R

Description

The given matrix (or simply a vector) is reshaped to have four rows for four nucleotides and a relevant number of columns.

Usage

1
make_sinuc_PWMs(mat, add_pseudo_counts = TRUE, scale = TRUE)

Arguments

mat

Actually a vector that will be reshaped into a (PWM) matrix of DNA sequences.

add_pseudo_counts

Logical, taking values TRUE or FALSE, specifying whether or not pseudocounts are added to the matrix.

scale

Logical, taking values TRUE or FALSE, specifying whether or not the matrix is scaled column-wise, i.e., all columns summed to 1.

Value

A (PWM) matrix with 4 rows corresponding to the 4 nucleotides (A, C, G, T) and the relevant number of columns (i.e., number of elements in given vector/4)


snikumbh/archR documentation built on July 5, 2021, 8:46 a.m.