Description Usage Arguments Value Examples
Calculate the region score based on the distance to their assigned peaks.
1 | score_regions(peak_score, region_id)
|
peak_score |
A vector of integers |
region_id |
A vector of character |
A vector of numerics
1 2 3 4 5 6 7 8 | 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)
peak_score <- score_peaks(distance, 100000)
region_id <- c('region1', 'region1', 'region2')
region_score <- score_regions(peak_score, region_id)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.