bin_specificity_into_quantiles: bin_specificity_into_quantiles

Description Usage Arguments Value Examples

View source: R/bin_specificity_into_quantiles.r

Description

bin_specificity_into_quantiles is an internal function used to convert add '$specificity_quantiles' to a ctd

Usage

1
bin_specificity_into_quantiles(ctdIN, numberOfBins)

Arguments

ctdIN

A single annotLevel of a ctd, i.e. ctd[[1]] (the function is intended to be used via apply)

numberOfBins

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

Value

A ctd with $specificity_quantiles

Examples

1
2
3
4
library(ewceData)
ctd <- ctd()
ctd <- lapply(ctd, bin_specificity_into_quantiles, numberOfBins = 40)
print(ctd[[1]]$specificity_quantiles[1:3, ])

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