Normalize.WCs: Normalize WCs.

Description Usage Arguments Value

View source: R/WaveQTL_preprocess_funcs.R

Description

This function quantile-transforms WCs to a standard normal distribution. If covariates are provided, it corrects the quantile-transformed WCs for the covariates and quantile-transforms the covariates-corrected WCs to a standard normal distribution.

Usage

1
Normalize.WCs(WCs, Covariates = NULL)

Arguments

WCs

a matrix with N (# of samples) by T (# of bps in a region or # of WCs); n-th row contains WCs for n-th sample.

Covariates

default = NULL; a matrix (or a vector if M = 1) with N by M (# of covariates) containing covariates to correct for.

Value

QT_WCs a matrix with N (# of samples) by T (# of bps in a region or # of WCs); It contains normalized WCs (Quantile-transformed and covariate-corrected WCs).


jean997/cfdrSims documentation built on May 18, 2019, 11:43 p.m.