You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/clustering.R
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
#' @importFrom factoextra hcut fviz_nbclust
9
9
#' @importFrom stats kmeans as.dist cmdscale dist
10
10
#'
11
-
#' @description Cluster the data with one of the following methods:
11
+
#' @description Clusters the data with one of the following methods:
12
12
#'
13
13
#' - \code{immunr_hclust} clusters the data using the hierarchical clustering from \link[factoextra]{hcut};
14
14
#'
@@ -26,7 +26,7 @@
26
26
#'
27
27
#' @param .data Matrix or data frame with features, distance matrix or output from \link{repOverlapAnalysis} or \link{geneUsageAnalysis} functions.
28
28
#'
29
-
#' @param .k The number of clusters to create, passed as \code{k} to \link[factoextra]{hcut} or as \code{centers} to \link{kmeans}.
29
+
#' @param .k The number of clusters to create, defined as \code{k} to \link[factoextra]{hcut} or as \code{centers} to \link{kmeans}.
30
30
#'
31
31
#' @param .k.max Limits the maximum number of clusters. It is passed as \code{k.max} to \link{fviz_nbclust} for \code{immunr_hclust} and \code{immunr_kmeans}.
32
32
#'
@@ -41,15 +41,15 @@
41
41
#' @param .dist If TRUE then ".data" is expected to be a distance matrix. If FALSE then the euclidean distance is computed for the input objects.
42
42
#'
43
43
#' @return
44
-
#' \code{immunr_hclust} - list with two elements. First element is an output from \link{hcut}.
45
-
#' Second element is an output from \link{fviz_nbclust}
44
+
#' \code{immunr_hclust} - list with two elements. The first element is an output from \link{hcut}.
45
+
#' The second element is an output from \link{fviz_nbclust}
46
46
#'
47
-
#' \code{immunr_kmeans} - list with three elements. First element is an output from \link{kmeans}.
48
-
#' Second element is an output from \link{fviz_nbclust}.
49
-
#' Third element is the input dataset \code{.data}.
47
+
#' \code{immunr_kmeans} - list with three elements. The first element is an output from \link{kmeans}.
48
+
#' The second element is an output from \link{fviz_nbclust}.
49
+
#' The third element is the input dataset \code{.data}.
50
50
#'
51
-
#' \code{immunr_dbscan} - list with two elements. First element is an output from \link{dbscan}.
52
-
#' Second element is the input dataset \code{.data}.
51
+
#' \code{immunr_dbscan} - list with two elements. The first element is an output from \link{dbscan}.
52
+
#' The second element is the input dataset \code{.data}.
Copy file name to clipboardExpand all lines: R/distance.R
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,17 @@
18
18
#'
19
19
#' Every object must have columns in the immunarch compatible format \link{immunarch_data_format}
20
20
#'
21
-
#' @param .col A string that specifies the column name to be processed. Default value is 'CDR3.nt'.
21
+
#' @param .col A string that specifies the column name to be processed. The default value is 'CDR3.nt'.
22
22
#'
23
23
#' @param .method Character value or user-defined function.
24
24
#'
25
-
#' @param .group_by Character vector of column names to group sequence by. Default value is c("V.first", "J.first"). Columns "V.first" and "J.first" containing first genes without allele suffixes are calculated automatically from "V.name" and "J.name" if absent in the data. Pass NA for no grouping options.
25
+
#' @param .group_by Character vector of column names to group sequence by. The default value is c("V.first", "J.first"). Columns "V.first" and "J.first" containing first genes without allele suffixes are calculated automatically from "V.name" and "J.name" if absent in the data. Pass NA for no grouping options.
26
26
#'
27
-
#' @param .group_by_seqLength If TRUE - add grouping by sequence length of .col argument
27
+
#' @param .group_by_seqLength If TRUE - adds grouping by sequence length of .col argument
28
28
#'
29
29
#' @param ... Extra arguments for user-defined function.
30
30
#'
31
-
#' Default value is \code{'hamming'} for Hamming distance which counts the number of character substitutions that turns b into a.
31
+
#' The default value is \code{'hamming'} for Hamming distance which counts the number of character substitutions that turns b into a.
32
32
#' If a and b have different number of characters the distance is Inf.
0 commit comments