make_dinuc_PWMs: Similarly to the PWM-like matrix for mononucleotides, make...

Description Usage Arguments Value

View source: R/make_sinuc_PWMs.R

Description

This function converts the basis matrix with basis vectors of dinucleotide information into matrix of dimension 16 x (sequence_length) for visualization.

Usage

1
make_dinuc_PWMs(vec, add_pseudo_counts = TRUE, scale = TRUE)

Arguments

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

Value

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)


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