Skip to content

Commit

Permalink
Make factors a data.frame
Browse files Browse the repository at this point in the history
  • Loading branch information
pcm32 committed Sep 27, 2023
1 parent c310dae commit 4b3d765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/edger/edger.R
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ if (!is.null(opt$filesPath)) {
}
# order samples as in counts matrix
factordata <- factordata[match(colnames(counts), factordata[, 1]), ]
factors <- sapply(factordata[, -1, drop = FALSE], make.names)
factors <- data.frame(sapply(factordata[, -1, drop = FALSE], make.names))
} else {
factors <- unlist(strsplit(opt$factInput, "|", fixed = TRUE))
factordata <- list()
Expand Down

0 comments on commit 4b3d765

Please sign in to comment.