motifPDF: Motif PDF

Description Usage Arguments Value Examples

Description

Generate a distribution of locations for a single motif within a set of genomic regions.

Usage

1
motifPDF(fasta, motif)

Arguments

fasta

A DNAStringSet from Biostrings.

motif

An atomic Character containing only DNA IUPAC characters

Value

A numeric vector with two columns , the first being the index the second being the distance

Examples

1
2
3
4
5
6
7
## load fasta file
fasta<-mT1_fasta
pdf<-motifPDF(fasta,"CANNTG")
x<-seq(1:100)
y<-combHeights(x,pdf[,2])[[1]]
## plot the results
plot(x,y,main="CANNTG",ylab="Frequency",xlab="Index")

alexjgriffith/mT1 documentation built on May 10, 2019, 8:53 a.m.