Skip to content

Commit

Permalink
Add select_transcripts to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
HediaTnani committed Jan 8, 2024
1 parent f5a9682 commit a8ed21b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-getDegTx.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ test_that("No sig_transcripts are in rse_tx rownames", {

test_that("getDegTx works with original and altered row names", {
# Apply getDegTx to covComb_tx_deg
original_results <- getDegTx(covComb_tx_deg)
original_results <- getDegTx(covComb_tx_deg,select_transcripts("cell_component"))

# Alter the row names of covComb_tx_deg and apply getDegTx
altered_covComb_tx_deg <- covComb_tx_deg
rownames(altered_covComb_tx_deg) <- gsub("\\..*", "", rownames(covComb_tx_deg))
altered_results <- getDegTx(altered_covComb_tx_deg)
altered_results <- getDegTx(altered_covComb_tx_deg,select_transcripts("cell_component"))

# Test if the results are equivalent
expect_equivalent(original_results, altered_results)
Expand Down

0 comments on commit a8ed21b

Please sign in to comment.