... | ... |
@@ -1,11 +1,3 @@ |
1 |
-if (!is.na(filename)) { |
|
2 |
-pdf(filename, height=3*mfrow[1],width=3*mfrow[2]) |
|
3 |
-} |
|
4 |
-par(mfrow = mfrow, cex=0.5) |
|
5 |
-if (sum(clusterindex == j) == 0) { |
|
6 |
-ymin <- -1 |
|
7 |
-ymax <- +1 |
|
8 |
-} |
|
9 | 1 |
else { |
10 | 2 |
ymin <- min(tmp) |
11 | 3 |
ymax <- max(tmp) |
... | ... |
@@ -510,3 +502,11 @@ shiny::runApp('inst/shiny') |
510 | 502 |
library(vsclust) |
511 | 503 |
library(vsclust) |
512 | 504 |
shiny::runApp('inst/shiny') |
505 |
+devtools::load_all() |
|
506 |
+data("protein_expressions") |
|
507 |
+BiocStyle::markdown() |
|
508 |
+BiocStyle::markdown() |
|
509 |
+if (!require("BiocManager", quietly = TRUE)) |
|
510 |
+install.packages("BiocManager") |
|
511 |
+BiocManager::install("vsclust") |
|
512 |
+library(vsclust) |
... | ... |
@@ -1,11 +1,12 @@ |
1 | 1 |
Package: vsclust |
2 |
+Encoding: UTF-8 |
|
2 | 3 |
Type: Package |
3 | 4 |
Title: Feature-based variance-sensitive quantitative clustering |
4 |
-Version: 1.9.2 |
|
5 |
+Version: 1.9.3 |
|
5 | 6 |
Date: 2022-03-23 |
6 | 7 |
Authors@R: |
7 | 8 |
person( |
8 |
- "Veit", "Schwaemmle", |
|
9 |
+ "Veit", "Schwammle", |
|
9 | 10 |
email = "[email protected]", |
10 | 11 |
role = c("aut", "cre") |
11 | 12 |
) |
... | ... |
@@ -41,4 +42,4 @@ VignetteBuilder: knitr |
41 | 42 |
Depends: R (>= 4.2.0) |
42 | 43 |
Config/testthat/edition: 3 |
43 | 44 |
LazyData: false |
44 |
-RoxygenNote: 7.2.1 |
|
45 |
+RoxygenNote: 7.3.2 |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
# Generated by roxygen2: do not edit by hand |
2 | 2 |
|
3 |
+S3method(print,fclust) |
|
3 | 4 |
export(ClustComp) |
4 | 5 |
export(PrepareForVSClust) |
5 | 6 |
export(PrepareSEForVSClust) |
... | ... |
@@ -36,5 +37,4 @@ importFrom(shiny,getDefaultReactiveDomain) |
36 | 37 |
importFrom(shiny,incProgress) |
37 | 38 |
importFrom(shiny,need) |
38 | 39 |
importFrom(shiny,validate) |
39 |
-useDynLib("") |
|
40 |
-useDynLib(vsclust) |
|
40 |
+useDynLib(vsclust, .registration = TRUE) |
... | ... |
@@ -102,7 +102,7 @@ determine_fuzz <- function(dims, NClust, Sds = 1) { |
102 | 102 |
#' clres <- vsclust_algorithm(data, centers=5, m=1.5) |
103 | 103 |
#' head(clres$membership) |
104 | 104 |
#' @export |
105 |
-#' @useDynLib |
|
105 |
+#' @useDynLib vsclust, .registration = TRUE |
|
106 | 106 |
#' @references |
107 | 107 |
#' Schwaemmle V, Jensen ON. VSClust: feature-based variance-sensitive clustering |
108 | 108 |
#' of omics data. Bioinformatics. 2018 Sep 1;34(17):2965-2972. doi: |
... | ... |
@@ -1,11 +1,5 @@ |
1 |
-#' @section VSClust functions: |
|
2 | 1 |
#' Functions for running VSClust analysis |
3 | 2 |
#' |
4 |
-#' @docType package |
|
5 |
-#' @name vsclust |
|
6 |
-#' @useDynLib vsclust |
|
7 |
-NULL |
|
8 |
-#> NULL |
|
9 | 3 |
#' Wrapper for statistical analysis |
10 | 4 |
#' |
11 | 5 |
#' Prepare data for running vsclust clustering. |
... | ... |
@@ -569,7 +563,7 @@ runFuncEnrich <- |
569 | 563 |
#' |
570 | 564 |
#' @return The shiny app should open in a browser or in RStudio. |
571 | 565 |
#' @examples |
572 |
-#' \donttest{ |
|
566 |
+#' \dontrun{ |
|
573 | 567 |
#' runVSClustApp()} |
574 | 568 |
#' @export |
575 | 569 |
#' @references |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
% Please edit documentation in R/WrapperFuncs.R |
3 | 3 |
\name{PrepareForVSClust} |
4 | 4 |
\alias{PrepareForVSClust} |
5 |
-\title{Wrapper for statistical analysis} |
|
5 |
+\title{Functions for running VSClust analysis} |
|
6 | 6 |
\usage{ |
7 | 7 |
PrepareForVSClust(dat, NumReps, NumCond, isPaired = FALSE, isStat) |
8 | 8 |
} |
... | ... |
@@ -30,6 +30,9 @@ the statistical tests (each conditions versus the first), `StatFileOut` all |
30 | 30 |
of before for saving in file |
31 | 31 |
} |
32 | 32 |
\description{ |
33 |
+Wrapper for statistical analysis |
|
34 |
+} |
|
35 |
+\details{ |
|
33 | 36 |
Prepare data for running vsclust clustering. |
34 | 37 |
This includes visualization running the functions for the principal component |
35 | 38 |
analysis and its visualization, statistical testing with LIMMA, as well as |
... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
\alias{estimClustNum} |
5 | 5 |
\title{Wrapper for estimation of cluster number} |
6 | 6 |
\usage{ |
7 |
-estimClustNum(dat, maxClust = 25, cores = 1) |
|
7 |
+estimClustNum(dat, maxClust = 25, scaling = "standardize", cores = 1) |
|
8 | 8 |
} |
9 | 9 |
\arguments{ |
10 | 10 |
\item{dat}{matrix of features averaged over replicates. The last column |
... | ... |
@@ -12,6 +12,9 @@ contains their standard deviation} |
12 | 12 |
|
13 | 13 |
\item{maxClust}{Maximal number of cluster. The minimum is 3} |
14 | 14 |
|
15 |
+\item{scaling}{Either `standardize` (default), `center` or `none`. Standardized |
|
16 |
+features get mean 0 and standard deviation 1. Centered samples get mean 0.} |
|
17 |
+ |
|
15 | 18 |
\item{cores}{The number of threads to be used for parallelisation} |
16 | 19 |
} |
17 | 20 |
\value{ |
... | ... |
@@ -9,6 +9,7 @@ runClustWrapper( |
9 | 9 |
NClust, |
10 | 10 |
proteins = NULL, |
11 | 11 |
VSClust = TRUE, |
12 |
+ scaling = "standardize", |
|
12 | 13 |
cores, |
13 | 14 |
verbose = FALSE |
14 | 15 |
) |
... | ... |
@@ -24,6 +25,9 @@ to be added to the results} |
24 | 25 |
\item{VSClust}{boolean. TRUE for running the variance-sensitive clustering. |
25 | 26 |
Otherwise, the function will call standard fuzzy c-means clustering} |
26 | 27 |
|
28 |
+\item{scaling}{Either `standardize` (default), `center` or `none`. Standardized |
|
29 |
+features get mean 0 and standard deviation 1. Centered samples get mean 0.} |
|
30 |
+ |
|
27 | 31 |
\item{cores}{Number of threads for the parallelization} |
28 | 32 |
|
29 | 33 |
\item{verbose}{Show more information during execution} |
... | ... |
@@ -39,9 +39,10 @@ from Bioconductor, such as `QFeatures`, `SummarizedExperiment` and |
39 | 39 |
Use the common Bioconductor commands for installation: |
40 | 40 |
|
41 | 41 |
```{r eval=FALSE} |
42 |
-if (!require("BiocManager", quietly = TRUE)) |
|
43 |
- install.packages("BiocManager") |
|
44 |
-BiocManager::install("vsclust") |
|
42 |
+# uncomment in case you have not installed vsclust yet |
|
43 |
+#if (!require("BiocManager", quietly = TRUE)) |
|
44 |
+# install.packages("BiocManager") |
|
45 |
+#BiocManager::install("vsclust") |
|
45 | 46 |
``` |
46 | 47 |
The full functionality can be obtained by additionally installing and loading the |
47 | 48 |
packages `yaml`, `shiny`, `clusterProfiler`, and `matrixStats`. |
... | ... |
@@ -51,9 +51,10 @@ corresponding command line script. For the source code, see |
51 | 51 |
Use the common Bioconductor commands for installation: |
52 | 52 |
|
53 | 53 |
```{r eval=FALSE} |
54 |
-if (!require("BiocManager", quietly = TRUE)) |
|
55 |
- install.packages("BiocManager") |
|
56 |
-BiocManager::install("vsclust") |
|
54 |
+# Uncomment in case you have not installed vsclust yet |
|
55 |
+#if (!require("BiocManager", quietly = TRUE)) |
|
56 |
+# install.packages("BiocManager") |
|
57 |
+#BiocManager::install("vsclust") |
|
57 | 58 |
library(vsclust) |
58 | 59 |
``` |
59 | 60 |
|