Skip to content

Commit

Permalink
use sample_name as the colnames of resulting SummarizedExperiment object
Browse files Browse the repository at this point in the history
  • Loading branch information
hsiaoyi0504 committed Nov 28, 2024
1 parent a1260ca commit d0d1a65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/io.R
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ make_se_customized <- function(proteins_unique, columns, expdesign, log2transfor
)
}

colnames(raw)[matched] <- expdesign$label
rownames(expdesign) <- expdesign$sample_name
colnames(raw)[matched] <- expdesign$sample_name
raw <- raw[, !is.na(colnames(raw))][rownames(expdesign)]

# Select the rowData
Expand Down
2 changes: 1 addition & 1 deletion R/pca.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' @export
plot_pca <- function(dep, x = 1, y = 2, indicate = c("condition", "replicate"),
label = FALSE, n = 500, point_size = 8, label_size = 3, plot = TRUE, ID_col = "label", exp = NULL, scale=F, interactive = F) {
label = FALSE, n = 500, point_size = 8, label_size = 3, plot = TRUE, ID_col = "sample_name", exp = NULL, scale=F, interactive = F) {
if (is.null(exp)) {
exp <- metadata(dep)$exp
}
Expand Down

0 comments on commit d0d1a65

Please sign in to comment.