rfcorrect {RaceID} | R Documentation |
Random Forests-based Reclassification
Description
This functions applies random forests-based reclassification of cell clusters to enhance robustness of the final clusters.
Usage
rfcorrect(
object,
rfseed = 12345,
nbtree = NULL,
final = TRUE,
nbfactor = 5,
...
)
Arguments
object |
|
rfseed |
Seed for enforcing reproducible results. Default is 12345. |
nbtree |
Number of trees to be built. Default is |
final |
logical. If |
nbfactor |
Positive integer number. See |
... |
additional input arguments to the |
Value
The function returns an updated SCseq
object with random forests votes written to slot out$rfvotes
. The clustering
partition prior or post outlier identification (slot cluster$kpart
or cpart
, if parameter final
equals FALSE
or TRUE
, respectively) is overwritten with the partition derived from the reclassification.
Examples
sc <- SCseq(intestinalDataSmall)
sc <- filterdata(sc)
sc <- compdist(sc)
sc <- clustexp(sc)
sc <- findoutliers(sc)
sc <- rfcorrect(sc)