Skip to content

Commit

Permalink
Remove unit test for mixed rownames
Browse files Browse the repository at this point in the history
  • Loading branch information
HediaTnani committed Jan 12, 2024
1 parent 3d8de17 commit 654fee2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/testthat/test-getDegTx.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,3 @@ test_that("getDegTx works with original and altered row names", {
expect_identical(original_results, altered_results)
})

# Test where we have mixed row names annotations (ENST and ENST.*?\.)
test_that("Mixed row names annotations throw an error", {
# For testing the error condition, altered manually rownames of covComb_tx_deg
altered_covComb_tx_deg <- covComb_tx_deg
rownames(altered_covComb_tx_deg)[1] <- "ENST00000442987" # Change the first rowname
rownames(altered_covComb_tx_deg)[2] <- "ENST00000623083" # Change the second rowname
expect_error({
# Check if mixed row names annotations (ENST and ENST.*?\.) throw an error
getDegTx(altered_covComb_tx_deg)

}, "Rownames must all be ENSEMBL or GENCODE transcript IDs.")
})

0 comments on commit 654fee2

Please sign in to comment.