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)

DiffLogo documentation built on Nov. 1, 2018, 2:24 a.m.