score_peaks {target} | R Documentation

## Calculate peak scores

### Description

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

### Usage

    score_peaks(distance, base)

### Arguments

`distance` | A vector of integers
`base` | An integer to calculate distances relative to.

### Value

A vector of integers

### Examples

    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)

[Package target version 1.6.0 Index]