vs_importance_analysis {variantspark} | R Documentation |
Importance Analysis
Description
This function performs an Importance Analysis using random forest algorithm. For more details, please look at here.
Usage
vs_importance_analysis(vsc, vcf_source, labels, n_trees)
Arguments
vsc |
A variantspark connection. |
vcf_source |
An object with |
labels |
An object with |
n_trees |
The number of trees using in the random forest. |
Value
spark_jobj, shell_jobj
Examples
## Not run:
library(sparklyr)
sc <- spark_connect(master = "local")
vsc <- vs_connect(sc)
hipster_vcf <- vs_read_vcf(vsc,
system.file("extdata/hipster.vcf.bz2",
package = "variantspark"))
labels <- vs_read_labels(vsc,
system.file("extdata/hipster_labels.txt",
package = "variantspark"))
vs_importance_analysis(vsc, hipster_vcf, labels, 10)
## End(Not run)
[Package variantspark version 0.1.1 Index]