Description Usage Arguments Value Examples
Calculate distance (external wrapper for internal C++ function) Parallelisation inside C++ program with RcppParallel.
1 2 3 |
filter |
Filter-Matrix as generated by the nb_filter function. |
datan |
Data frame were rows correspond to samples and columns to features. |
soft_power |
Integer. Exponent of the transformation. Set automatically based on the scale free topology criterion if unspecified. |
cores |
Integer. Amount of CPU cores used (<=1 : sequential). |
verbose |
Additional diagnostic messages. |
method |
A character string specifying the method to be used for correlation coefficients. |
Vector with distances.
1 2 3 4 5 6 7 8 | data('tcga_aml_meth_rna_chr18', package='netboost')
cores <- as.integer(getOption('mc.cores', 2))
datan <- as.data.frame(scale(tcga_aml_meth_rna_chr18, center=TRUE,
scale=TRUE))
filter <- nb_filter(datan=datan, stepno=20L, until=0L, progress=1000L,
cores=cores,mode=2L)
dist <- nb_dist(datan=datan, filter=filter, soft_power=3L, cores=cores)
summary(dist)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.