Skip to content

Commit

Permalink
bug in longFormat when rownames are numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
lgatto committed Jul 4, 2024
1 parent f857e08 commit 50612e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## QFeatures 1.15.2

- New API unit test (see issue
- Fix bug in `QFeatures::longFormat()` when rownames are numerical
(reported upstream https://github.com/waldronlab/MultiAssayExperiment/issues/331).
- Starting New API unit test (see issue
[#214](https://github.com/rformassspectrometry/QFeatures/issues/214).

## QFeatures 1.15.1
Expand Down
2 changes: 1 addition & 1 deletion R/QFeatures-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ longFormat <- function(object,
rds <- do.call(rbind, rds)
## Merge the rowData to the long table
cbind(longDataFrame,
rds[longDataFrame$rowname, , drop = FALSE])
rds[as.character(longDataFrame$rowname), , drop = FALSE])
} else {
## If rowvars is null, return the MAE longFormat output
MultiAssayExperiment::longFormat(object, colvars, index)
Expand Down

0 comments on commit 50612e6

Please sign in to comment.