getPWM: getPWM

View source: R/motif_analysis.R

getPWMR Documentation

getPWM

Description

Given a vector of strings of equal width, generate a position-specific weight matrix based on the frequency of occurrence of the unique letters found in the sequences.

Usage

getPWM(sequences, letters = c("A", "C", "G", "T"))

Arguments

sequences

vector of strings of equal widths.

letters

vector of characters to consider as the an alphabet

Value

A matrix of position-specific-weights.

Examples


sequences = c("GGAGAG", "GAAGAA", "TGAGAA", "GGAGAA", "GAAGAA")
getPWM(sequences)


BIMSBbioinfo/RCAS documentation built on Feb. 7, 2024, 4:38 p.m.