normalize_correlation: Main function to remove mean-correlation relationship between...

View source: R/miSpQN.R

normalize_correlationR Documentation

Main function to remove mean-correlation relationship between miRNA and mRNA

Description

Main function to remove mean-correlation relationship between miRNA and mRNA

Usage

normalize_correlation(
  cor_mat,
  ave_exp1,
  ave_exp2,
  ngrp = 20,
  size_grp = c(1000, 150),
  ref_grp = 18
)

Arguments

cor_mat

A correlation matrix for a group with mRNA on the rows and miRNA on the columns

ave_exp1

A numeric vecotr with same length as the nrow(cor_mat) for average mRNA expressions

ave_exp2

A numeric vecotr with same length as the ncol(cor_mat) for average miRNA expressions

ngrp

An integer for number of inner bins. Default is 20

size_grp

A numeric vector of length 2 for number of mRNA and miRNA per outer group. Default c(1000, 150)

ref_grp

An integer for the index of bin to use as reference. Default is 18

Value

A normalized correlation matrix with the same dimension as cor_mat


ningb/diffreg documentation built on Jan. 20, 2025, 4:10 p.m.