compute_score_mat_peak: Get the bins for bands:

Description Usage Arguments Value

View source: R/detect-peak.R

Description

Given each contiguous peak candidate regions, find the bin that we call peak (aka band)

Usage

1
2
compute_score_mat_peak(score_mat, score_thres, dat_binned,
  gap_considered_identical_peak = 5)

Arguments

score_mat

The matrix of scores calcualted by compute_local_relative_score

score_thres

The threshold greater than or equal to which we call the peak-candidate regions ( must be contiguous)

dat_binned

Binned autoradiointensity data

gap_considered_identical_peak

Default is 5 bins. To merge nearby contiguous peak-candidate regions if they are less than or equal to gap_considered_indentical_peak away.

Value

A matrix with NA and score_thres. Those entries equaling score_thres are bins for peaks.


oslerinhealth/spotgear documentation built on May 25, 2021, 10:38 p.m.