View source: R/saveAlignments.R
saveAlignments | R Documentation |
Save enhancer homologs to file in phylip format.
saveAlignments(
al,
output_folder = tempdir(),
motifConsensus = NULL,
format = c("txt", "html")
)
al |
output of alignment. |
output_folder |
output folder. |
motifConsensus |
Transcription factor binding consensus. |
format |
The format of output files. Available formats are 'txt' and 'html'. Default is 'txt'. |
The I/O status.
al <- readRDS(system.file("extdata", "al.rds",
package="enhancerHomologSearch"))
tmpfolder <- tempdir()
library(MotifDb)
motifs <- query(MotifDb, "JASPAR_CORE")
consensus <- sapply(motifs, consensusString)
consensus <- DNAStringSet(gsub("\\?", "N", consensus))
saveAlignments(al, output_folder=tmpfolder, motifConsensus=consensus)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.