find_motifs_instances.Rd
Calls findMotifsGenome.pl
with the -find
option set
to run a search for instances of specified motifs across a given
set of regions. Results are then saved to a specified file. This
function does not do motif finding, but rather uses a motif file
to search for and return the exact regions in which motifs are found.
Motifs are provided as matrices as generated by find_motifs_genome
and read in by read_*_results
.
find_motifs_instances(x, path, genome, motif_file, scan_size = "given", cores = parallel::detectCores(), cache = .calc_free_mem()/4)
x |
|
---|---|
path | path of file to save motif instances results to |
genome | ID of installed genome; check installed genomes using
|
motif_file | path to file containing all instances of motifs
to be scanned for; can be written be |
scan_size | size of sequence to scan; this can be a numeric to
specify the number of bases to scan centered on the region, or
alternately can be set to "given" to scan the entire region;
if using "given", will use the "-chopify" option to cut large
background sequences to average of target sequence size
[default: |
cores | number of cores to use [default: all cores available] |
cache | number in MB to use as cache to store sequences in memory [default: calculates free memory and divides by 4] |
Nothing; called for its side-effect of producing HOMER results