Skip to contents

This function computes the number of hits of a given motif in a set of intervals, separated by strand and direction.

Usage

compute_motif_directional_hits(pssm, intervals, size, pwm_threshold = 7)

Arguments

pssm

A position-specific scoring matrix (PSSM) object.

intervals

A data frame containing the genomic intervals to search for motif hits.

size

The size of the intervals.

pwm_threshold

The threshold for the PSSM score to consider a hit.

Value

A data frame containing the number of hits of the motif in each interval, separated by strand and direction. Column names are 'ml' (minus, left), 'mr' (minus, right), 'pl' (plus, left), 'pr' (plus, right).