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.
process_candidate_sites(
fimo_file,
flank = 100,
thresh_pValue = 1e-05,
thresh_pwmscore = 0,
blacklist_file = NULL,
mapability_file = NULL,
thresh_mapability = 0.8,
bigWigAverageOverBed_path = "bigWigAverageOverBed"
)
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)
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).
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')
}