Skip to content

Commit

Permalink
Add a line of code to adjust the rownames in original_results
Browse files Browse the repository at this point in the history
  • Loading branch information
HediaTnani committed Jan 8, 2024
1 parent e23a839 commit 4948bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-getDegTx.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ test_that("getDegTx works with original and altered row names", {
altered_covComb_tx_deg <- covComb_tx_deg
rownames(altered_covComb_tx_deg) <- gsub("\\..*", "", rownames(covComb_tx_deg))
altered_results <- getDegTx(altered_covComb_tx_deg,sig_transcripts =select_transcripts("cell_component"))

rownames(altered_results) <- rownames(original_results)
# Test if two objects equal
expect_equal(original_results, altered_results)
})

0 comments on commit 4948bfa

Please sign in to comment.