comp_correlation: Calculate correlation coefficients between two compartment...

View source: R/analysis.R

comp_correlationR Documentation

Calculate correlation coefficients between two compartment tracks

Description

Calculate correlation coefficients between two compartment tracks

Usage

comp_correlation(
  x,
  y,
  score_x = 1,
  score_y = 1,
  method = c("pearson", "spearman", "kendall"),
  overall = FALSE
)

Arguments

x

Compartment scores.

y

Compartment scores.

score_x

name of the score column in x

score_y

name of the score column in y

method

Type of correlation scores. Must be one of "pearson", "spearman", and "kendall".

overall

if FALSE, calculate correlation scores for each chromosome separately

Value

A data frame for correlation.


haizi-zh/hictools documentation built on June 29, 2022, 4:32 a.m.