... | ... |
@@ -111,7 +111,6 @@ exportMethods(poplin_data_names) |
111 | 111 |
exportMethods(poplin_reduced) |
112 | 112 |
exportMethods(poplin_reduced_list) |
113 | 113 |
exportMethods(poplin_reduced_names) |
114 |
-exportMethods(rbind) |
|
115 | 114 |
exportMethods(show) |
116 | 115 |
import(methods) |
117 | 116 |
importClassesFrom(S4Vectors,DataFrame) |
... | ... |
@@ -1,10 +1,63 @@ |
1 |
+##' Combining or subsetting poplin objects |
|
2 |
+##' |
|
3 |
+##' Methods to combine multiple \linkS4class{poplin} objects by row or column, |
|
4 |
+##' or to subset a \linkS4class{poplin} object by row or column. |
|
5 |
+##' |
|
6 |
+##' @section Combining: |
|
7 |
+##' |
|
8 |
+##' In the code snippets below, \code{...} represents multiple |
|
9 |
+##' \linkS4class{poplin} objects to be combined. |
|
10 |
+##' |
|
11 |
+##' \describe{ |
|
12 |
+##' \item{\code{rbind(..., deparse.level = 1)}:}{ |
|
13 |
+##' |
|
14 |
+##' Take a sequence of poplin objects in \code{...} and combine by rows. Note |
|
15 |
+##' that all objects in ... must have the exact same values for |
|
16 |
+##' [poplin_data_list]. See \code{?}[rbind] for the interpretation of |
|
17 |
+##' \code{deparse.level}. |
|
18 |
+##' |
|
19 |
+##' } |
|
20 |
+##' \item{\code{cbind(..., deparse.level = 1)}:}{ |
|
21 |
+##' |
|
22 |
+##' Take a sequence of poplin objects in \code{...} and combine by columns. Note |
|
23 |
+##' that all objects in ... must have the same values of [poplin_reduced_names]. |
|
24 |
+##' Dimension reduction results with the same name across the objects will be |
|
25 |
+##' combined row-wise to create the corresponding entry in the output object. |
|
26 |
+##' See \code{?}[cbind] for the interpretation of \code{deparse.level}. |
|
27 |
+##' |
|
28 |
+##' } |
|
29 |
+##' } |
|
30 |
+##' |
|
31 |
+##' Refer to \code{help("SummarizedExperiment-class", package = |
|
32 |
+##' "SummarizedExperiment")} for details on how \code{rowData}, \code{colData}, |
|
33 |
+##' and \code{metadata} are combined in the output object. |
|
34 |
+##' |
|
35 |
+##' @section Subsetting: |
|
36 |
+##' |
|
37 |
+##' In the code snippets below, \code{x} is a \linkS4class{poplin} |
|
38 |
+##' object. |
|
39 |
+##' |
|
40 |
+##' \describe{ |
|
41 |
+##' |
|
42 |
+##' \item{\code{x[i, j]}, \code{x[i, j] <- value}:}{\code{i} and \code{j} are |
|
43 |
+##' indices specifying the rows and columns to extract or replace. Indices can |
|
44 |
+##' be a logical, integer, character vector, or empty (missing). \code{value} |
|
45 |
+##' must be a poplin object with the dimension and assay elements consistent |
|
46 |
+##' with the subset \code{x[i, j]} being replaced. \code{value} is also expected |
|
47 |
+##' to have the same name and order of [poplin_data_names] (and |
|
48 |
+##' [poplin_reduced_names] as well if \code{j} is specified) as \code{x}.} |
|
49 |
+##' |
|
50 |
+##' } |
|
51 |
+##' |
|
52 |
+##' @importFrom BiocGenerics rbind cbind |
|
53 |
+##' @importFrom SummarizedExperiment Assays |
|
54 |
+##' @name poplin-combine/subset |
|
55 |
+##' @docType methods |
|
56 |
+NULL |
|
57 |
+ |
|
1 | 58 |
## Need to think about how to handle metadata of poplinData(x) and |
2 | 59 |
## poplinReducedData(x) when data are combined |
3 |
- |
|
4 | 60 |
## poplin class cbind and rbind |
5 |
-##' @export |
|
6 |
-##' @importFrom BiocGenerics rbind cbind |
|
7 |
-##' @importFrom SummarizedExperiment Assays |
|
8 | 61 |
setMethod("rbind", "poplin", function(..., deparse.level = 1) { |
9 | 62 |
old_validity <- S4Vectors:::disableValidity() |
10 | 63 |
if (!isTRUE(old_validity)) { |
... | ... |
@@ -51,6 +104,7 @@ setMethod("rbind", "poplin", function(..., deparse.level = 1) { |
51 | 104 |
check = FALSE) |
52 | 105 |
}) |
53 | 106 |
|
107 |
+##' @rdname poplin-combine/subset |
|
54 | 108 |
setMethod("cbind", "poplin", function(..., deparse.level = 1) { |
55 | 109 |
old_validity <- S4Vectors:::disableValidity() |
56 | 110 |
if (!isTRUE(old_validity)) { |
... | ... |
@@ -3,15 +3,19 @@ |
3 | 3 |
##' The poplin class is designed to process LC/MS data. It is an extension of |
4 | 4 |
##' the standard SummarizedExperiment class, and supports additional containers |
5 | 5 |
##' for data processing results (e.g., normalization, imputation) via |
6 |
-##' [poplinData] and dimension reduction results (PCA, PLS-DA) via |
|
7 |
-##' [poplinReducedData]. A poplin object also can be created by coercing from a |
|
6 |
+##' [poplin_data] and dimension reduction results (PCA, PLS-DA) via |
|
7 |
+##' [poplin_reduced]. A poplin object also can be created by coercing from a |
|
8 | 8 |
##' \linkS4class{SummarizedExperiment} object. |
9 |
-##' |
|
9 |
+##' |
|
10 | 10 |
##' @param intensity Peak intensity matrix where rows represent features and |
11 | 11 |
##' columns represent samples. |
12 | 12 |
##' @param ... Arguments passed to the [SummarizedExperiment] constructor. |
13 | 13 |
##' @return A poplin object |
14 | 14 |
##' @author Jaehyun Joo |
15 |
+##' @name poplin-class |
|
16 |
+##' @usage |
|
17 |
+##' ## Constructor |
|
18 |
+##' poplin(intensity, ...) |
|
15 | 19 |
##' @examples |
16 | 20 |
##' nsamp <- 20 |
17 | 21 |
##' nfeature <- 1000 |
... | ... |
@@ -20,6 +24,37 @@ |
20 | 24 |
##' ## Coercion from an SummarizedExperiment object |
21 | 25 |
##' as(se, "poplin") |
22 | 26 |
##' |
27 |
+NULL |
|
28 |
+ |
|
29 |
+##' Internal poplin fields |
|
30 |
+##' |
|
31 |
+##' Methods to get or set internal fields in a \linkS4class{poplin} object. |
|
32 |
+##' These methods are not intended to be used by end users of the \pkg{poplin} |
|
33 |
+##' package. |
|
34 |
+##' |
|
35 |
+##' In the snippets below, \code{x} is a \linkS4class{poplin} object. |
|
36 |
+##' |
|
37 |
+##' \describe{ |
|
38 |
+##' |
|
39 |
+##' \item{\code{poplinData(x)}, \code{poplinData(x) <- value}:}{ Returns a |
|
40 |
+##' \linkS4class{DataFrame} of matrices containing one or more data processing |
|
41 |
+##' results. \code{value} must be a \linkS4class{DataFrame} with the dimension |
|
42 |
+##' equal to \code{dim(x)}. End users are supposed to interact with this field |
|
43 |
+##' via [poplin_data]. } |
|
44 |
+##' |
|
45 |
+##' \item{\code{poplinReducedData(x), \code{poplinReducedData(x) <- value}}:}{ |
|
46 |
+##' Returns a \linkS4class{DataFrame} of matrices containing one or more |
|
47 |
+##' dimension-reduced data. \code{value} must be a \linkS4class{DataFrame} with |
|
48 |
+##' the dimension equal to \code{ncol(x)}. End users are supposed to interact |
|
49 |
+##' with this field via [poplin_reduced]. } |
|
50 |
+##' |
|
51 |
+##' } |
|
52 |
+##' |
|
53 |
+##' @seealso [poplin_data], [poplin_reduced] |
|
54 |
+##' @name poplin-internals |
|
55 |
+NULL |
|
56 |
+ |
|
57 |
+ |
|
23 | 58 |
##' @export |
24 | 59 |
##' @import methods |
25 | 60 |
##' @importFrom SummarizedExperiment SummarizedExperiment |
... | ... |
@@ -6,7 +6,7 @@ |
6 | 6 |
##' |
7 | 7 |
##' @section Getter methods: |
8 | 8 |
##' |
9 |
-##' Let \code{x} is a \linkS4class{poplin} object. |
|
9 |
+##' In the code snippets below, \code{x} is a \linkS4class{poplin} object. |
|
10 | 10 |
##' |
11 | 11 |
##' \describe{ |
12 | 12 |
##' \item{\code{poplin_data_names(x)}:}{ |
... | ... |
@@ -51,18 +51,18 @@ |
51 | 51 |
##' } |
52 | 52 |
##' |
53 | 53 |
##' @return |
54 |
-##' @name poplinData |
|
54 |
+##' @name poplin_data |
|
55 |
+NULL |
|
56 |
+ |
|
55 | 57 |
##' @export |
56 | 58 |
setMethod("poplinData", "poplin", function(x) x@poplinData) |
57 | 59 |
|
58 |
-##' @rdname poplinData |
|
59 | 60 |
##' @export |
60 | 61 |
setReplaceMethod("poplinData", "poplin", function(x, value) { |
61 | 62 |
x@poplinData <- value |
62 | 63 |
x |
63 | 64 |
}) |
64 | 65 |
|
65 |
-##' @rdname poplinData |
|
66 | 66 |
##' @importClassesFrom S4Vectors SimpleList |
67 | 67 |
##' @export |
68 | 68 |
setMethod( |
... | ... |
@@ -78,7 +78,6 @@ setMethod( |
78 | 78 |
} |
79 | 79 |
) |
80 | 80 |
|
81 |
-##' @rdname poplinData |
|
82 | 81 |
##' @export |
83 | 82 |
setReplaceMethod( |
84 | 83 |
"poplin_data_list", |
... | ... |
@@ -101,7 +100,6 @@ setReplaceMethod( |
101 | 100 |
} |
102 | 101 |
) |
103 | 102 |
|
104 |
-##' @rdname poplinData |
|
105 | 103 |
##' @export |
106 | 104 |
setMethod( |
107 | 105 |
"poplin_data_names", |
... | ... |
@@ -111,7 +109,6 @@ setMethod( |
111 | 109 |
} |
112 | 110 |
) |
113 | 111 |
|
114 |
-##' @rdname poplinData |
|
115 | 112 |
##' @export |
116 | 113 |
setReplaceMethod( |
117 | 114 |
"poplin_data_names", |
... | ... |
@@ -129,7 +126,6 @@ setReplaceMethod( |
129 | 126 |
} |
130 | 127 |
) |
131 | 128 |
|
132 |
-##' @rdname poplinData |
|
133 | 129 |
##' @export |
134 | 130 |
setMethod( |
135 | 131 |
"poplin_data", |
... | ... |
@@ -143,7 +139,6 @@ setMethod( |
143 | 139 |
} |
144 | 140 |
) |
145 | 141 |
|
146 |
-##' @rdname poplinData |
|
147 | 142 |
##' @export |
148 | 143 |
setMethod( |
149 | 144 |
"poplin_data", |
... | ... |
@@ -158,7 +153,6 @@ setMethod( |
158 | 153 |
} |
159 | 154 |
) |
160 | 155 |
|
161 |
-##' @rdname poplinData |
|
162 | 156 |
##' @export |
163 | 157 |
setMethod( |
164 | 158 |
"poplin_data", |
... | ... |
@@ -173,7 +167,6 @@ setMethod( |
173 | 167 |
} |
174 | 168 |
) |
175 | 169 |
|
176 |
-##' @rdname poplinData |
|
177 | 170 |
##' @export |
178 | 171 |
setReplaceMethod( |
179 | 172 |
"poplin_data", |
... | ... |
@@ -190,7 +183,6 @@ setReplaceMethod( |
190 | 183 |
) |
191 | 184 |
|
192 | 185 |
|
193 |
-##' @rdname poplinData |
|
194 | 186 |
##' @export |
195 | 187 |
setReplaceMethod( |
196 | 188 |
"poplin_data", |
... | ... |
@@ -213,7 +205,6 @@ setReplaceMethod( |
213 | 205 |
} |
214 | 206 |
) |
215 | 207 |
|
216 |
-##' @rdname poplinData |
|
217 | 208 |
##' @export |
218 | 209 |
setReplaceMethod( |
219 | 210 |
"poplin_data", |
... | ... |
@@ -6,7 +6,7 @@ |
6 | 6 |
##' |
7 | 7 |
##' @section Getter methods: |
8 | 8 |
##' |
9 |
-##' Let \code{x} is a \linkS4class{poplin} object. |
|
9 |
+##' In the code snippets below, \code{x} is a \linkS4class{poplin} object. |
|
10 | 10 |
##' |
11 | 11 |
##' \describe{ |
12 | 12 |
##' \item{\code{poplin_reduced_names(x)}:}{ |
... | ... |
@@ -51,20 +51,20 @@ |
51 | 51 |
##' be removed. |
52 | 52 |
##' } |
53 | 53 |
##' } |
54 |
-##' @name poplinReducedData |
|
54 |
+##' @name poplin_reduced |
|
55 | 55 |
##' @return |
56 |
+NULL |
|
57 |
+ |
|
56 | 58 |
##' @export |
57 | 59 |
setMethod("poplinReducedData", "poplin", function(x) x@poplinReducedData) |
58 | 60 |
|
59 | 61 |
|
60 |
-##' @rdname poplinReducedData |
|
61 | 62 |
##' @export |
62 | 63 |
setReplaceMethod("poplinReducedData", "poplin", function(x, value) { |
63 | 64 |
x@poplinReducedData <- value |
64 | 65 |
x |
65 | 66 |
}) |
66 | 67 |
|
67 |
-##' @rdname poplinReducedData |
|
68 | 68 |
##' @importClassesFrom S4Vectors SimpleList |
69 | 69 |
##' @export |
70 | 70 |
setMethod( |
... | ... |
@@ -79,7 +79,6 @@ setMethod( |
79 | 79 |
} |
80 | 80 |
) |
81 | 81 |
|
82 |
-##' @rdname poplinReducedData |
|
83 | 82 |
##' @export |
84 | 83 |
setReplaceMethod( |
85 | 84 |
"poplin_reduced_list", |
... | ... |
@@ -104,7 +103,6 @@ setReplaceMethod( |
104 | 103 |
} |
105 | 104 |
) |
106 | 105 |
|
107 |
-##' @rdname poplinReducedData |
|
108 | 106 |
##' @export |
109 | 107 |
setMethod( |
110 | 108 |
"poplin_reduced_names", |
... | ... |
@@ -114,7 +112,6 @@ setMethod( |
114 | 112 |
} |
115 | 113 |
) |
116 | 114 |
|
117 |
-##' @rdname poplinReducedData |
|
118 | 115 |
##' @export |
119 | 116 |
setReplaceMethod( |
120 | 117 |
"poplin_reduced_names", |
... | ... |
@@ -133,7 +130,6 @@ setReplaceMethod( |
133 | 130 |
} |
134 | 131 |
) |
135 | 132 |
|
136 |
-##' @rdname poplinReducedData |
|
137 | 133 |
##' @export |
138 | 134 |
setMethod( |
139 | 135 |
"poplin_reduced", |
... | ... |
@@ -147,7 +143,6 @@ setMethod( |
147 | 143 |
} |
148 | 144 |
) |
149 | 145 |
|
150 |
-##' @rdname poplinReducedData |
|
151 | 146 |
##' @export |
152 | 147 |
setMethod( |
153 | 148 |
"poplin_reduced", |
... | ... |
@@ -162,7 +157,6 @@ setMethod( |
162 | 157 |
} |
163 | 158 |
) |
164 | 159 |
|
165 |
-##' @rdname poplinReducedData |
|
166 | 160 |
##' @export |
167 | 161 |
setMethod( |
168 | 162 |
"poplin_reduced", |
... | ... |
@@ -177,7 +171,6 @@ setMethod( |
177 | 171 |
} |
178 | 172 |
) |
179 | 173 |
|
180 |
-##' @rdname poplinReducedData |
|
181 | 174 |
##' @export |
182 | 175 |
setReplaceMethod( |
183 | 176 |
"poplin_reduced", |
... | ... |
@@ -193,7 +186,6 @@ setReplaceMethod( |
193 | 186 |
} |
194 | 187 |
) |
195 | 188 |
|
196 |
-##' @rdname poplinReducedData |
|
197 | 189 |
##' @export |
198 | 190 |
setReplaceMethod( |
199 | 191 |
"poplin_reduced", |
... | ... |
@@ -213,7 +205,6 @@ setReplaceMethod( |
213 | 205 |
} |
214 | 206 |
) |
215 | 207 |
|
216 |
-##' @rdname poplinReducedData |
|
217 | 208 |
##' @export |
218 | 209 |
setReplaceMethod( |
219 | 210 |
"poplin_reduced", |
... | ... |
@@ -77,7 +77,7 @@ setMethod( |
77 | 77 |
"poplin_reduce_pca", |
78 | 78 |
"matrix", |
79 | 79 |
function(x, ncomp = 2, center = TRUE, scale = FALSE, ...) { |
80 |
- .poplin_impute_pca(x, ncomp = ncomp, center = center, scale = scale, ...) |
|
80 |
+ .poplin_reduce_pca(x, ncomp = ncomp, center = center, scale = scale, ...) |
|
81 | 81 |
} |
82 | 82 |
) |
83 | 83 |
|
... | ... |
@@ -85,7 +85,7 @@ setMethod( |
85 | 85 |
setMethod( |
86 | 86 |
"poplin_reduce_pca", |
87 | 87 |
"poplin", |
88 |
- function(x, poplin_in, poplin_out, ncomp = 2, center = 2, scale = FALSE, ...) { |
|
88 |
+ function(x, poplin_in, poplin_out, ncomp = 2, center = TRUE, scale = FALSE, ...) { |
|
89 | 89 |
.reduced_extract_and_assign(x, .poplin_reduce_pca, |
90 | 90 |
poplin_in, poplin_out, |
91 | 91 |
ncomp = ncomp, center = center, scale = scale, ...) |
... | ... |
@@ -109,7 +109,7 @@ setMethod( |
109 | 109 |
##' |
110 | 110 |
##' Jesse H. Krijthe (2015). Rtsne: T-Distributed Stochastic Neighbor Embedding |
111 | 111 |
##' using a Barnes-Hut Implementation, URL: https://github.com/jkrijthe/Rtsne |
112 |
-##' |
|
112 |
+##' |
|
113 | 113 |
##' @param x A matrix or \linkS4class{poplin} object. |
114 | 114 |
##' @param poplin_in Name of a data matrix to retrieve. |
115 | 115 |
##' @param poplin_out Name of a data matrix to store. |
... | ... |
@@ -127,7 +127,7 @@ setMethod( |
127 | 127 |
"poplin_reduce_tsne", |
128 | 128 |
"matrix", |
129 | 129 |
function(x, ncomp = 2, normalize = TRUE, ...) { |
130 |
- .poplin_impute_tsne(x, ncomp = ncomp, normalize = normalize, ...) |
|
130 |
+ .poplin_reduce_tsne(x, ncomp = ncomp, normalize = normalize, ...) |
|
131 | 131 |
} |
132 | 132 |
) |
133 | 133 |
|
... | ... |
@@ -157,7 +157,7 @@ setMethod( |
157 | 157 |
##' @param method A dimension reduction method. Default is 'pca'. |
158 | 158 |
##' @param poplin_in Name of a data matrix to retrieve. |
159 | 159 |
##' @param poplin_out Name of a data matrix to store. |
160 |
-##' @param y A factor vector for discrete outcome. |
|
160 |
+##' @param y A factor vector for discrete outcome. |
|
161 | 161 |
##' @param ncomp Output dimensionality. |
162 | 162 |
##' @param center A logical indicating mean-centering prior to PLS-DA. |
163 | 163 |
##' @param scale A logical indicating unit variance scaling prior to PLS-DA. |
... | ... |
@@ -171,7 +171,7 @@ setMethod( |
171 | 171 |
"poplin_reduce_plsda", |
172 | 172 |
"matrix", |
173 | 173 |
function(x, y, ncomp = 2, center = TRUE, scale = FALSE, ...) { |
174 |
- .poplin_impute_plsda(x, y = y, ncomp = ncomp, |
|
174 |
+ .poplin_reduce_plsda(x, y = y, ncomp = ncomp, |
|
175 | 175 |
center = center, scale = scale, ...) |
176 | 176 |
} |
177 | 177 |
) |
... | ... |
@@ -188,7 +188,3 @@ setMethod( |
188 | 188 |
center = center, scale = scale, ...) |
189 | 189 |
} |
190 | 190 |
) |
191 |
- |
|
192 |
- |
|
193 |
- |
|
194 |
- |
195 | 191 |
similarity index 80% |
196 | 192 |
rename from man/poplin.Rd |
197 | 193 |
rename to man/poplin-class.Rd |
... | ... |
@@ -1,9 +1,10 @@ |
1 | 1 |
% Generated by roxygen2: do not edit by hand |
2 | 2 |
% Please edit documentation in R/poplin.R |
3 |
-\name{poplin} |
|
4 |
-\alias{poplin} |
|
3 |
+\name{poplin-class} |
|
4 |
+\alias{poplin-class} |
|
5 | 5 |
\title{The poplin class} |
6 | 6 |
\usage{ |
7 |
+## Constructor |
|
7 | 8 |
poplin(intensity, ...) |
8 | 9 |
} |
9 | 10 |
\arguments{ |
... | ... |
@@ -19,8 +20,8 @@ A poplin object |
19 | 20 |
The poplin class is designed to process LC/MS data. It is an extension of |
20 | 21 |
the standard SummarizedExperiment class, and supports additional containers |
21 | 22 |
for data processing results (e.g., normalization, imputation) via |
22 |
-\link{poplinData} and dimension reduction results (PCA, PLS-DA) via |
|
23 |
-\link{poplinReducedData}. A poplin object also can be created by coercing from a |
|
23 |
+\link{poplin_data} and dimension reduction results (PCA, PLS-DA) via |
|
24 |
+\link{poplin_reduced}. A poplin object also can be created by coercing from a |
|
24 | 25 |
\linkS4class{SummarizedExperiment} object. |
25 | 26 |
} |
26 | 27 |
\examples{ |
27 | 28 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,60 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/combine-methods.R |
|
3 |
+\docType{methods} |
|
4 |
+\name{poplin-combine/subset} |
|
5 |
+\alias{poplin-combine/subset} |
|
6 |
+\title{Combining or subsetting poplin objects} |
|
7 |
+\description{ |
|
8 |
+Methods to combine multiple \linkS4class{poplin} objects by row or column, |
|
9 |
+or to subset a \linkS4class{poplin} object by row or column. |
|
10 |
+} |
|
11 |
+\section{Combining}{ |
|
12 |
+ |
|
13 |
+ |
|
14 |
+In the code snippets below, \code{...} represents multiple |
|
15 |
+\linkS4class{poplin} objects to be combined. |
|
16 |
+ |
|
17 |
+\describe{ |
|
18 |
+\item{\code{rbind(..., deparse.level = 1)}:}{ |
|
19 |
+ |
|
20 |
+Take a sequence of poplin objects in \code{...} and combine by rows. Note |
|
21 |
+that all objects in ... must have the exact same values for |
|
22 |
+\link{poplin_data_list}. See \code{?}\link{rbind} for the interpretation of |
|
23 |
+\code{deparse.level}. |
|
24 |
+ |
|
25 |
+} |
|
26 |
+\item{\code{cbind(..., deparse.level = 1)}:}{ |
|
27 |
+ |
|
28 |
+Take a sequence of poplin objects in \code{...} and combine by columns. Note |
|
29 |
+that all objects in ... must have the same values of \link{poplin_reduced_names}. |
|
30 |
+Dimension reduction results with the same name across the objects will be |
|
31 |
+combined row-wise to create the corresponding entry in the output object. |
|
32 |
+See \code{?}\link{cbind} for the interpretation of \code{deparse.level}. |
|
33 |
+ |
|
34 |
+} |
|
35 |
+} |
|
36 |
+ |
|
37 |
+Refer to \code{help("SummarizedExperiment-class", package = |
|
38 |
+"SummarizedExperiment")} for details on how \code{rowData}, \code{colData}, |
|
39 |
+and \code{metadata} are combined in the output object. |
|
40 |
+} |
|
41 |
+ |
|
42 |
+\section{Subsetting}{ |
|
43 |
+ |
|
44 |
+ |
|
45 |
+In the code snippets below, \code{x} is a \linkS4class{poplin} |
|
46 |
+object. |
|
47 |
+ |
|
48 |
+\describe{ |
|
49 |
+ |
|
50 |
+\item{\code{x[i, j]}, \code{x[i, j] <- value}:}{\code{i} and \code{j} are |
|
51 |
+indices specifying the rows and columns to extract or replace. Indices can |
|
52 |
+be a logical, integer, character vector, or empty (missing). \code{value} |
|
53 |
+must be a poplin object with the dimension and assay elements consistent |
|
54 |
+with the subset \code{x[i, j]} being replaced. \code{value} is also expected |
|
55 |
+to have the same name and order of \link{poplin_data_names} (and |
|
56 |
+\link{poplin_reduced_names} as well if \code{j} is specified) as \code{x}.} |
|
57 |
+ |
|
58 |
+} |
|
59 |
+} |
|
60 |
+ |
0 | 61 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,32 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/poplin.R |
|
3 |
+\name{poplin-internals} |
|
4 |
+\alias{poplin-internals} |
|
5 |
+\title{Internal poplin fields} |
|
6 |
+\description{ |
|
7 |
+Methods to get or set internal fields in a \linkS4class{poplin} object. |
|
8 |
+These methods are not intended to be used by end users of the \pkg{poplin} |
|
9 |
+package. |
|
10 |
+} |
|
11 |
+\details{ |
|
12 |
+In the snippets below, \code{x} is a \linkS4class{poplin} object. |
|
13 |
+ |
|
14 |
+\describe{ |
|
15 |
+ |
|
16 |
+\item{\code{poplinData(x)}, \code{poplinData(x) <- value}:}{ Returns a |
|
17 |
+\linkS4class{DataFrame} of matrices containing one or more data processing |
|
18 |
+results. \code{value} must be a \linkS4class{DataFrame} with the dimension |
|
19 |
+equal to \code{dim(x)}. End users are supposed to interact with this field |
|
20 |
+via \link{poplin_data}. } |
|
21 |
+ |
|
22 |
+\item{\code{poplinReducedData(x), \code{poplinReducedData(x) <- value}}:}{ |
|
23 |
+Returns a \linkS4class{DataFrame} of matrices containing one or more |
|
24 |
+dimension-reduced data. \code{value} must be a \linkS4class{DataFrame} with |
|
25 |
+the dimension equal to \code{ncol(x)}. End users are supposed to interact |
|
26 |
+with this field via \link{poplin_reduced}. } |
|
27 |
+ |
|
28 |
+} |
|
29 |
+} |
|
30 |
+\seealso{ |
|
31 |
+\link{poplin_data}, \link{poplin_reduced} |
|
32 |
+} |
0 | 33 |
similarity index 61% |
1 | 34 |
rename from man/poplinData.Rd |
2 | 35 |
rename to man/poplin_data.Rd |
... | ... |
@@ -1,44 +1,8 @@ |
1 | 1 |
% Generated by roxygen2: do not edit by hand |
2 | 2 |
% Please edit documentation in R/poplinData-methods.R |
3 |
-\name{poplinData} |
|
4 |
-\alias{poplinData} |
|
5 |
-\alias{poplinData<-,poplin-method} |
|
6 |
-\alias{poplin_data_list,poplin-method} |
|
7 |
-\alias{poplin_data_list<-,poplin-method} |
|
8 |
-\alias{poplin_data_names,poplin-method} |
|
9 |
-\alias{poplin_data_names<-,poplin,character-method} |
|
10 |
-\alias{poplin_data,poplin,numeric-method} |
|
11 |
-\alias{poplin_data,poplin,character-method} |
|
12 |
-\alias{poplin_data,poplin,missing-method} |
|
13 |
-\alias{poplin_data<-,poplin,numeric-method} |
|
14 |
-\alias{poplin_data<-,poplin,character-method} |
|
15 |
-\alias{poplin_data<-,poplin,missing-method} |
|
3 |
+\name{poplin_data} |
|
4 |
+\alias{poplin_data} |
|
16 | 5 |
\title{Poplin data methods} |
17 |
-\usage{ |
|
18 |
-\S4method{poplinData}{poplin}(x) |
|
19 |
- |
|
20 |
-\S4method{poplinData}{poplin}(x) <- value |
|
21 |
- |
|
22 |
-\S4method{poplin_data_list}{poplin}(x) |
|
23 |
- |
|
24 |
-\S4method{poplin_data_list}{poplin}(x, check_dimnames = TRUE, ...) <- value |
|
25 |
- |
|
26 |
-\S4method{poplin_data_names}{poplin}(x) |
|
27 |
- |
|
28 |
-\S4method{poplin_data_names}{poplin,character}(x) <- value |
|
29 |
- |
|
30 |
-\S4method{poplin_data}{poplin,numeric}(x, type) |
|
31 |
- |
|
32 |
-\S4method{poplin_data}{poplin,character}(x, type) |
|
33 |
- |
|
34 |
-\S4method{poplin_data}{poplin,missing}(x, type) |
|
35 |
- |
|
36 |
-\S4method{poplin_data}{poplin,numeric}(x, type, check_dimnames = TRUE, ...) <- value |
|
37 |
- |
|
38 |
-\S4method{poplin_data}{poplin,character}(x, type, check_dimnames = TRUE, ...) <- value |
|
39 |
- |
|
40 |
-\S4method{poplin_data}{poplin,missing}(x, type, check_dimnames = TRUE, ...) <- value |
|
41 |
-} |
|
42 | 6 |
\value{ |
43 | 7 |
|
44 | 8 |
} |
... | ... |
@@ -50,7 +14,7 @@ sets involved in normalization, imputation, and transformation. |
50 | 14 |
\section{Getter methods}{ |
51 | 15 |
|
52 | 16 |
|
53 |
-Let \code{x} is a \linkS4class{poplin} object. |
|
17 |
+In the code snippets below, \code{x} is a \linkS4class{poplin} object. |
|
54 | 18 |
|
55 | 19 |
\describe{ |
56 | 20 |
\item{\code{poplin_data_names(x)}:}{ |
19 | 19 |
similarity index 59% |
20 | 20 |
rename from man/poplinReducedData.Rd |
21 | 21 |
rename to man/poplin_reduced.Rd |
... | ... |
@@ -1,44 +1,8 @@ |
1 | 1 |
% Generated by roxygen2: do not edit by hand |
2 | 2 |
% Please edit documentation in R/poplinReducedData-methods.R |
3 |
-\name{poplinReducedData} |
|
4 |
-\alias{poplinReducedData} |
|
5 |
-\alias{poplinReducedData<-,poplin-method} |
|
6 |
-\alias{poplin_reduced_list,poplin-method} |
|
7 |
-\alias{poplin_reduced_list<-,poplin-method} |
|
8 |
-\alias{poplin_reduced_names,poplin-method} |
|
9 |
-\alias{poplin_reduced_names<-,poplin,character-method} |
|
10 |
-\alias{poplin_reduced,poplin,numeric-method} |
|
11 |
-\alias{poplin_reduced,poplin,character-method} |
|
12 |
-\alias{poplin_reduced,poplin,missing-method} |
|
13 |
-\alias{poplin_reduced<-,poplin,numeric-method} |
|
14 |
-\alias{poplin_reduced<-,poplin,character-method} |
|
15 |
-\alias{poplin_reduced<-,poplin,missing-method} |
|
3 |
+\name{poplin_reduced} |
|
4 |
+\alias{poplin_reduced} |
|
16 | 5 |
\title{Poplin dimension-reduced data methods} |
17 |
-\usage{ |
|
18 |
-\S4method{poplinReducedData}{poplin}(x) |
|
19 |
- |
|
20 |
-\S4method{poplinReducedData}{poplin}(x) <- value |
|
21 |
- |
|
22 |
-\S4method{poplin_reduced_list}{poplin}(x) |
|
23 |
- |
|
24 |
-\S4method{poplin_reduced_list}{poplin}(x, check_samplenames = TRUE, ...) <- value |
|
25 |
- |
|
26 |
-\S4method{poplin_reduced_names}{poplin}(x) |
|
27 |
- |
|
28 |
-\S4method{poplin_reduced_names}{poplin,character}(x) <- value |
|
29 |
- |
|
30 |
-\S4method{poplin_reduced}{poplin,numeric}(x, type) |
|
31 |
- |
|
32 |
-\S4method{poplin_reduced}{poplin,character}(x, type) |
|
33 |
- |
|
34 |
-\S4method{poplin_reduced}{poplin,missing}(x, type) |
|
35 |
- |
|
36 |
-\S4method{poplin_reduced}{poplin,numeric}(x, type, check_samplenames = TRUE, ...) <- value |
|
37 |
- |
|
38 |
-\S4method{poplin_reduced}{poplin,character}(x, type, check_samplenames = TRUE, ...) <- value |
|
39 |
- |
|
40 |
-\S4method{poplin_reduced}{poplin,missing}(x, type, check_samplenames = TRUE, ...) <- value |
|
41 |
-} |
|
42 | 6 |
\value{ |
43 | 7 |
|
44 | 8 |
} |
... | ... |
@@ -50,7 +14,7 @@ representation (e.g., PCA, PLS-DA) of LC/MS data sets. |
50 | 14 |
\section{Getter methods}{ |
51 | 15 |
|
52 | 16 |
|
53 |
-Let \code{x} is a \linkS4class{poplin} object. |
|
17 |
+In the code snippets below, \code{x} is a \linkS4class{poplin} object. |
|
54 | 18 |
|
55 | 19 |
\describe{ |
56 | 20 |
\item{\code{poplin_reduced_names(x)}:}{ |