R/process_motif_sites.R
process_candidate_sites.Rd
Gets candidate sites from FIMO motif matches and add flanking regions, and filters the candidate sites by different thresholds, and filters out sites in blacklist regions.
FIMO
result ‘.txt’ file
Flanking region (bp) around motif matches (default: 100)
FIMO
p-value threshold (default: 1e-5)
FIMO
PWM score threshold (default: 0)
Chromosomes to include (default: 'chr1', ..., 'chr22', 'chrX', 'chrY', 'chrM'). Please change this accordingly if you use non-human data.
Filename of the blacklist regions (default: NULL)
Filename of the mapability reference file
Mapability threshold (default: 0.8,
candidate sites need to be mapable at least 80% positions).
This is only used when the mapability_file
is available.
Path to bigWigAverageOverBed executable (only needed when filtering mapability).
A data frame of processed candidate binding sites passing the threshold filtering.
if (FALSE) {
sites <- process_candidate_sites(fimo_file='fimo.txt',
thresh_pValue=1e-5,
blacklist_file='blacklist.hg38.bed.gz')
}