Skip to content

Commit

Permalink
Style code (GHA)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokwee committed Dec 22, 2023
1 parent 6220dce commit 5ba90ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/compute2-extra.R
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ compute_drugActivityEnrichment <- function(pgx, libx.dir = NULL) {
rowid <- data.table::chmatch(rownames(X), pgx$genes$human_ortholog, nomatch = NA)
rownames(X) <- pgx$genes$gene_name[rowid]
X <- X[!is.na(rowid), , drop = FALSE]
}
}

xdrugs <- gsub("[_@].*$", "", colnames(X))
ndrugs <- length(table(xdrugs))
Expand Down
2 changes: 1 addition & 1 deletion R/pgx-contrasts.R
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ pgx.makeAutoContrastsStratified <- function(df, strata.var, mingrp = 3, max.leve
## sample-wise contrasts
rownames(ct.all) <- ct.all[, "sample"]
ct.all <- as.matrix(ct.all[, -1, drop = FALSE]) ## drop sample column
ct.all <- ct.all[match(rownames(df), rownames(ct.all)), , drop = FALSE ]
ct.all <- ct.all[match(rownames(df), rownames(ct.all)), , drop = FALSE]
rownames(ct.all) <- rownames(df)
ct.all[is.na(ct.all)] <- 0

Expand Down

0 comments on commit 5ba90ab

Please sign in to comment.