-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
18 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
#' Coerce a NA-dropped HDF5Matrix back to regular matrix form where NAs are not dropped to 0. | ||
#' Coerce a NA-dropped HDF5 matrix back to regular matrix form where NAs are not dropped to 0. | ||
#' | ||
#' @param HDF5Matrix an HDF5Matrix (e.g. assay output from vmrseq::data.pool) | ||
#' with dropped NA values | ||
#' @param hdf5_assay an DelayedMatrix object with dropped NA values (e.g. an assay from HDF5SummarizedExpriment object saved by vmrseq::data.pool) | ||
#' | ||
#' @importFrom recommenderlab dropNA2matrix | ||
#' @return | ||
#' @export | ||
#' | ||
#' @examples | ||
HDF5NAdrop2matrix <- function(hdf5_matrix) { | ||
mat <- hdf5_matrix %>% as("sparseMatrix") %>% recommenderlab::dropNA2matrix() | ||
HDF5NAdrop2matrix <- function(hdf5_assay) { | ||
mat <- hdf5_assay |> as("matrix") |> as("sparseMatrix") |> recommenderlab::dropNA2matrix() | ||
return(mat) | ||
} |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters