Description Usage Arguments Value Examples
View source: R/MakeSigMatrix.R
Use ranger to select features and build a genesInSeed gene matrix
1 | gListFromRF(trainSet, oneCore = FALSE)
|
trainSet |
Each row is a gene, and each column is an example of a particular cell type, e.g. ADAPTS::scSample(trainSet, groupSize=30) |
oneCore |
SEt to TRUE to disable multicore (DEFAULT: FALSE) |
A cell specific geneList for ADAPTS::AugmentSigMatrix()
1 2 3 4 5 6 7 8 | library(ADAPTS)
ct1 <- runif(1000, 0, 100)
ct2 <- runif(1000, 0, 100)
dataMat <- cbind(ct1, ct1, ct1, ct1, ct1, ct1, ct2, ct2, ct2, ct2)
rownames(dataMat) <- make.names(rep('gene', nrow(dataMat)), unique=TRUE)
noise <- matrix(runif(nrow(dataMat)*ncol(dataMat), -2, 2), nrow = nrow(dataMat), byrow = TRUE)
dataMat <- dataMat + noise
gList <- gListFromRF(trainSet=dataMat, oneCore=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.