View source: R/motif_analysis.R
getPWM | R Documentation |
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.
getPWM(sequences, letters = c("A", "C", "G", "T"))
sequences |
vector of strings of equal widths. |
letters |
vector of characters to consider as the an alphabet |
A matrix of position-specific-weights.
sequences = c("GGAGAG", "GAAGAA", "TGAGAA", "GGAGAA", "GAAGAA")
getPWM(sequences)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.