R/bin_specificity_into_quantiles.r
bin_specificity_into_quantiles.Rd
bin_specificity_into_quantiles
is an internal function used to convert
add '$specificity_quantiles' to a ctd
bin_specificity_into_quantiles( ctdIN, numberOfBins, as_sparse = TRUE, verbose = TRUE )
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) |
as_sparse | Convert to sparseMatrix. |
verbose | Print messages. |
A ctd with $specificity_quantiles.
#>#>#>#>#> 3 x 7 sparse Matrix of class "dgCMatrix" #> astrocytes_ependymal endothelial-mural interneurons microglia #> Tspan12 33 38 19 16 #> Tshz1 31 33 24 32 #> Fnbp1l 15 33 31 16 #> oligodendrocytes pyramidal CA1 pyramidal SS #> Tspan12 9 10 5 #> Tshz1 21 3 18 #> Fnbp1l 9 12 37