Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into new-bc
  • Loading branch information
mauromiguelm committed Feb 26, 2024
2 parents 1e1e654 + 5725768 commit 24ba0d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/board.upload/R/upload_module_outliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ upload_module_outliers_server <- function(id, r_X, r_samples, r_contrasts,
shiny::req( dim(normalizedX()) )

X <- normalizedX()
res <- playbase::detectOutlierSamples(X, plot=FALSE, y=NULL)
res <- playbase::detectOutlierSamples(X, plot=FALSE)
is.outlier <- ( res$z.outlier > input$outlier_threshold )
if(any(is.outlier) && !all(is.outlier) ) {
X <- X[, which(!is.outlier), drop = FALSE]
Expand Down Expand Up @@ -361,7 +361,7 @@ upload_module_outliers_server <- function(id, r_X, r_samples, r_contrasts,
shiny::validate( shiny::need(!is.null(nrow(X)), "no data. please upload."))

X <- head(X[order(-matrixStats::rowSds(X)),],1000)
out <- playbase::detectOutlierSamples(X, plot=FALSE, y=NULL)
out <- playbase::detectOutlierSamples(X, plot=FALSE)

nb <- min(30, dim(X)/5)
scaledX <- t(scale(t(scale(t(X), scale=FALSE))))
Expand Down

0 comments on commit 24ba0d5

Please sign in to comment.