Skip to content

Commit

Permalink
Add arg_match for the type
Browse files Browse the repository at this point in the history
  • Loading branch information
HediaTnani committed Jan 17, 2024
1 parent cbd915f commit 979bf08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/qSVA.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@
#'
qSVA <-
function(rse_tx,
type = "cell_component",
type = c("cell_component", "standard", "top1500"),
sig_transcripts = select_transcripts(type),
mod,
assayname) {
## We don't need to pass type to getDegTx() since it's not used internally
## once the sig_transcripts have been defined.

type = arg_match(type)

# Validate rse_tx is a RangedSummarizedExperiment object
if (!is(rse_tx, "RangedSummarizedExperiment")) {
stop("'rse_tx' must be a RangedSummarizedExperiment object.", call. = FALSE)
Expand Down

0 comments on commit 979bf08

Please sign in to comment.