Skip to content

Commit

Permalink
Add check for assayname in assayNames
Browse files Browse the repository at this point in the history
  • Loading branch information
HediaTnani committed Jan 12, 2024
1 parent 0ef284c commit 786e091
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/getDegTx.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ getDegTx <- function(rse_tx, type = c("cell_component", "standard", "top1500"),

type = arg_match(type)

# Check if assayname is in assayNames
stopifnot(assayname %in% assayNames(rse_tx))

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

0 comments on commit 786e091

Please sign in to comment.