calculate_avg_count: Calculate Average Count within 5-pixel Padding

View source: R/main.R View source: R/RcppExports.R

calculate_avg_countR Documentation

Calculate Average Count within 5-pixel Padding

Description

This function calculates the average count within a 25kb padding around each (x, y) coordinate pair.

Usage

calculate_avg_count(x, y, counts, resol)

Arguments

x

Numeric vector of x-coordinates of contact frequency data frame.

y

Numeric vector of y-coordinates of contact frequency data frame.

counts

Numeric vector of contact frequency counts.

resol

Integer specifying the HiC resolution.

Value

A numeric vector of average counts.

Examples

x <- c(1, 2, 3, 4, 5)
y <- c(1, 2, 3, 4, 5)
counts <- c(10, 20, 30, 40, 50)
resol <- 10000
calculate_avg_count(x, y, counts, resol)

HiCociety documentation built on Feb. 16, 2026, 5:10 p.m.