Description Usage Arguments Value Author(s) Examples
Leave-one-out cross-validation algorithm is performed to train and test the integrative random-forest gene prioritization algorithm RafSee.
1 |
featureMat |
A numeric matrix of features where rows represent genes, cols represent features |
positives |
A character vector of positive samples |
negatives |
A character vector of negative samples |
cpus |
an integer number specifying the number of cpus to be used for parallel computing, the default is 1 |
predictSample |
A vector of testing samples, if it is NULL, all genes excluding positive smaples were used |
Predictive score for each leave-one-out cross-validation
Jingjing Zhai, Chuang Ma
1 2 3 4 5 6 7 8 | ## Not run:
positives <- c("AT1G01060", "AT1G09530", "AT1G09570", "AT1G12610")
loocvRes <- LOOCV(featureMat = featureMat, positives = positives,
negatives = negatives, cpus = 1)
## featureMat can be calculated by function FeatureExtract
## negatives can be calculated by function selectNegSamples
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.