pwmToSeq: Calculate sequence for PWM

View source: R/dna.R

pwmToSeqR Documentation

Calculate sequence for PWM

Description

Calculate sequence for PWM

Usage

pwmToSeq(pwm, cutoff = 0.2, singleCutoff = cutoff)

Arguments

pwm

a matrix with rows unique bases and columns positions

cutoff

consider any base with proportion greater than this cutoff present

singleCutoff

only label base with a single bases if the proportion is greater than this cutoff

Value

a single character string containing the consensus sequence using ambiguous base codes

See Also

pwm, ambiguous2regex

Examples

seqs<-c('ACA','ACA','ACA','ACT','ACT','ACC')
seqPwm<-pwm(seqs)
pwmToSeq(seqPwm)

sherrillmix/dnar documentation built on July 18, 2022, 10:07 p.m.