forked from xlucpu/MOVICS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runPAM.Rd
46 lines (39 loc) · 2.27 KB
/
runPAM.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runPAM.R
\name{runPAM}
\alias{runPAM}
\title{Run partition around medoids classifier}
\usage{
runPAM(
train.expr = NULL,
moic.res = NULL,
test.expr = NULL,
gene.subset = NULL
)
}
\arguments{
\item{train.expr}{A matrix of normalized expression training data with rows for genes and columns for samples; FPKM or TPM without log2 transformation is recommended.}
\item{moic.res}{An object returned by `getMOIC()` with one specified algorithm or `get\%algorithm_name\%` or `getConsensusMOIC()` with a list of multiple algorithms.}
\item{test.expr}{A matrix of normalized expression testing data with rows for genes and columns for samples; FPKM or TPM without log2 transformation is recommended.}
\item{gene.subset}{A string vector to indicate a subset of genes to be used.
#' @return A list with the following components:
\code{IGP} a named numeric vector storing the in-group proportion (see \link[clusterRepro]{IGP.clusterRepro}).
\code{clust.res} similar to `clust.res` returned by `getMOIC()` or `get%algorithm_name%` or `getConsensusMOIC()`.
\code{mo.method} a string value indicating the method used for prediction.}
}
\description{
Using partition around medoids (PAM) classifier to predict potential subtype label on external cohort and calculate in-group proportions (IGP) statistics.
}
\details{
This function first trains a partition around medoids (PAM) classifier in the discovery (training) cohort
to predict the subtype for patients in the external validation (testing) cohort,
and each sample in the validation cohort was assigned to a subtype label whose centroid had the highest Pearson correlation with the sample.
Finally, the in-group proportion (IGP) statistic will be performed to evaluate the similarity and reproducibility of the acquired subtypes between discovery and validation cohorts.
}
\examples{
# There is no example and please refer to vignette.
}
\references{
Robert Tibshirani, Trevor Hastie, Balasubramanian Narasimhan, and Gilbert Chu Diagnosis of multiple cancer types by shrunken centroids of gene expression PNAS 99: 6567-6572.
Kapp A V, Tibshirani R. (2007). Are clusters found in one dataset present in another dataset?. Biostatistics, 8(1):9-31.
}