getDist | R Documentation |
Given multiple genomic data types (e.g., gene expression, copy number, DNA methylation, miRNA expression (continuous) and mutation (binary)) measured across samples,
allowing for missing values (NA) and missing samples, getDist
calculates the survival weighted distance metric among samples.
Used as an input to, combineDist()
.
getDist(datasets, survdat = NULL, cv = FALSE, train.snames = NULL, type = NULL)
datasets |
A list object containing |
survdat |
A matrix, containing two columns - 1st column |
cv |
logical. If |
train.snames |
required if |
type |
|
getDist
allows for continuous and binary data type(s) in a matrix passed as a list.
If the list only has a binary matrix data type. Set type="mut"
. All data types are standardized internally.
All data types are not expected to have common samples. Non-overlapping samples within data types are replaced with NA, and returned weighted matrix consists of union of all the samples.
cv=FALSE,dist.datreturns a list of weighted data matrix/matrices, dist.dat
cv=TRUE,dist.dat=list(train, all) returns a list of training train
weighted data matrix.
And the whole matrix weighed according to the weights computed on the training dataset all
.
Arshi Arora
library(survClust)
dd <- getDist(simdat, simsurvdat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.