Skip to content

Commit

Permalink
hopefully fixed GEE/GLMM sorting function
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-leary7 committed Apr 6, 2024
1 parent 4f44e1e commit cde9bf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/sortObservations.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@ sortObservations <- function(expr.mat = NULL,
PT)
# sort object by cells
expr.mat <- expr.mat[, subj_df$Cell]
if (!is.unsorted(colnames(expr.mat))) {
stop("Sorting has failed.")
}
return(expr.mat)
}

0 comments on commit cde9bf4

Please sign in to comment.