|
a |
|
b/OmicsFold/man/get.block.centroids.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/sample_analysis.R |
|
|
3 |
\name{get.block.centroids} |
|
|
4 |
\alias{get.block.centroids} |
|
|
5 |
\title{Get block centroids for a DIABLO model} |
|
|
6 |
\usage{ |
|
|
7 |
get.block.centroids(diablo.trained) |
|
|
8 |
} |
|
|
9 |
\arguments{ |
|
|
10 |
\item{diablo.trained}{Trained multi-omics mixOmics DIABLO model.} |
|
|
11 |
} |
|
|
12 |
\value{ |
|
|
13 |
Simple object containing consensus data (as `consensus.summary`) and |
|
|
14 |
a ggplot plot of the distribution in the first two components (as `plot`). |
|
|
15 |
} |
|
|
16 |
\description{ |
|
|
17 |
Function to get the centroids of samples transformed into the same model |
|
|
18 |
space across all blocks for a trained multi-omics mixOmics (DIABLO) model. |
|
|
19 |
Prepares plots and raw data of consensus sample classification, which (for |
|
|
20 |
some reason) isn't provided in the base package. |
|
|
21 |
} |
|
|
22 |
\examples{ |
|
|
23 |
\dontrun{ |
|
|
24 |
consensus.centroids <- get.block.centroids(diablo.trained.analysis, 20, 3) |
|
|
25 |
print(consensus.centroids$plot) |
|
|
26 |
} |
|
|
27 |
} |