Skip to content

Commit

Permalink
Style code (GHA)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokwee committed Aug 24, 2024
1 parent 04a9fdf commit 239654a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/gset-meta.r
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ gset.fitContrastsWithAllMethods <- function(gmt,
## v.3.5.0 we use average relative expression instead of average
## expression.
ng <- Matrix::colSums(G != 0)
mX <- X - rowMeans(X, na.rm=TRUE) ## see note above
mX <- X - rowMeans(X, na.rm = TRUE) ## see note above
meta.matrix <- as.matrix(Matrix::t(G != 0) %*% mX) / ng

m[["meta"]] <- meta.matrix
Expand Down
6 changes: 3 additions & 3 deletions R/pgx-read.R
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ read_samples <- function(file) {
is_valid <- validate_samples(df)
if (!is_valid) {
message("[read_samples] ERROR: Samples file is not valid.")
return(NULL)
return(NULL)
}
df <- as.data.frame(df)
return(df)
Expand All @@ -333,7 +333,7 @@ read_contrasts <- function(file) {
is_valid <- validate_contrasts(df)
if (!is_valid) {
message("[read_contrasts] ERROR: Contrasts file is not valid.")
return(NULL)
return(NULL)
}

df
Expand All @@ -351,7 +351,7 @@ read_annot <- function(file, unique = TRUE) {
df <- file
} else {
message("[read_annot] ERROR: Annot file is not valid.")
return(NULL)
return(NULL)
}

## add column title
Expand Down

0 comments on commit 239654a

Please sign in to comment.