Description Usage Arguments Value Examples
Create a minimal HOMER formatted motif file based on PWM and required motif info.
1 2 3 4 5 6 7 8 | write_homer_motif(
motif_pwm,
motif_name,
log_odds_detection,
consensus = NULL,
file,
append = TRUE
)
|
motif_pwm |
tibble with alphabet columns |
motif_name |
name of the sequence |
log_odds_detection |
the threshold for detecting given motif |
consensus |
the accepted consensus motif sequence [optional: calculated from pwm if not provided] |
file |
path to new motif file; suffix should be '.motif' |
append |
whether to overwrite existing file [default: TRUE, e.g. add on to existing file] |
nothing; called for its side-effect of producing HOMER motif file
1 2 3 4 5 6 7 8 9 10 | ## Not run:
knw_pwm <- read_known_results("inst/extdata/knownResults.txt", homer_dir = FALSE)
## Write multiple motifs
pwalk(list(motif_pwm = knw_pwm$motif_pwm,
motif_name = knw_pwm$motif_name,
log_odds_detection = knw_pwm$log_odds_detection),
write_homer_motif, file = "test.motif", append = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.