getPwmFromFile: generates a pwm from a file of different formats

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Generates a pwm from a file of different formats. Supported formats are FASTA files (.fa, .fasta), alignment files (.txt, .text, .al, .alignment), PWM files (.pwm), JASPAR / Position Frequency Matrix files (.pfm), and homer files (.motif).

Usage

1
getPwmFromFile(filename)

Arguments

filename

the file

Value

a pwm

Examples

1
2
3
fileName = "extdata/pwm/H1-hESC.pwm"
file = system.file(fileName, package = "DiffLogo")
pwm = getPwmFromFile(file)

mgledi/DiffLogo documentation built on June 7, 2020, 8:23 a.m.