score_peaks: Calculate peak scores

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Calculate the peak score based on the distance to a region of interest.

Usage

1
score_peaks(distance, base)

Arguments

distance

A vector of integers

base

An integer to calculate distances relative to.

Value

A vector of integers

Examples

1
2
3
4
5
6
library(IRanges)

query <- IRanges(c(1, 4, 9), c(5, 7, 10))
subject <- IRanges(c(2, 2, 10), c(2, 3, 12))
distance <- find_distance(query, subject)
score_peaks(distance, 100000)

target documentation built on Nov. 8, 2020, 5:28 p.m.