modToFa: Write a Fasta file for each flank.seq in a...

Description Usage Arguments Value Examples

View source: R/modToFa.R

Description

Write a Fasta file for each flank.seq in a nucleotide.modification data.frame

Usage

1
modToFa(file, modNT.df, overwrite = T)

Arguments

file

fasta file to write to

modNT.df

nucleotide.modification data.frame (either significant or control)

overwrite

if file exists, delete it and overwrite. Else append to file. Default = T

Value

NULL writes to file

Examples

1
2
3
4
5
6
7
modToFa('RTstop.motif.fa', RTstop.wt1)
# Create a background set x100 for motif analysis by HOMER

for (N in 1:100){
rand.modNT.N <- sigMod( RTstop.wt1, method = "fiveSigma", flank.seq = 5, randomize = T)
  modToFa( 'BG.motif.fa', rand.modNT.N, overwrite = F)
}

ababaian/RRNAframework documentation built on March 18, 2020, 1:29 a.m.