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)

Example output

Loading required package: cba
Loading required package: grid
Loading required package: proxy

Attaching package:proxyThe following objects are masked frompackage:stats:

    as.dist, dist

The following object is masked frompackage:base:

    as.matrix

DiffLogo documentation built on Nov. 8, 2020, 6:09 p.m.