bin_columns_into_quantiles: bin_columns_into_quantiles

Description Usage Arguments Value Examples

View source: R/bin_columns_into_quantiles.r

Description

bin_columns_into_quantiles is an internal function used to convert a matrix of specificity (with columns of cell types) intom a matrix of specificity quantiles

Usage

1
bin_columns_into_quantiles(matrixIn, numberOfBins = 40)

Arguments

matrixIn

The matrix of specificity values

numberOfBins

Number of quantile 'bins' to use (40 is recommended)

Value

A matrix with same shape as matrixIn but with columns storing quantiles instead of specificity

Examples

1
2
3
4
5
6
library(ewceData)
ctd <- ctd()
ctd[[1]]$specificity_quantiles <- apply(ctd[[1]]$specificity, 2,
    FUN = bin_columns_into_quantiles,
    numberOfBins = 40
)

NathanSkene/EWCE documentation built on June 19, 2021, 5:40 a.m.