rank_product: Calculate the regions rank products

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Calculate the rank products of the rank of the distances and the statistics.

Usage

1
rank_product(region_score, region_stat, region_id)

Arguments

region_score

A vector of numerics

region_stat

A vector of numerics

region_id

A vector of characters

Value

A vector of numerics

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)
region_stat <- c(30, 30, -40)
rank_product(region_score, region_stat, region_id)

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