Skip to content

Commit

Permalink
Merge pull request #84 from myushen/master
Browse files Browse the repository at this point in the history
rename assay names for consistency
  • Loading branch information
stemangiola authored Nov 14, 2024
2 parents dfb080d + f61b7aa commit 476f692
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ importFrom(SingleCellExperiment,SingleCellExperiment)
importFrom(SingleCellExperiment,altExp)
importFrom(SingleR,SingleR)
importFrom(SummarizedExperiment,"assay<-")
importFrom(SummarizedExperiment,"assays<-")
importFrom(SummarizedExperiment,"colData<-")
importFrom(SummarizedExperiment,"rowData<-")
importFrom(SummarizedExperiment,SummarizedExperiment)
Expand Down
5 changes: 4 additions & 1 deletion R/tranform_assay.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ transform_assay.HPCell = function(
#'
#' @importFrom SummarizedExperiment assay
#' @importFrom SummarizedExperiment assay<-
#' @importFrom SummarizedExperiment assays
#' @importFrom SummarizedExperiment assays assays<-
#' @importFrom SummarizedExperiment rowData
#' @importFrom SummarizedExperiment rowData<-
#' @importFrom SingleCellExperiment reducedDim<-
Expand All @@ -75,6 +75,9 @@ transform_utility = function(input_read_RNA_assay, transform_fx, external_path,

if(ncol(input_read_RNA_assay) == 0) return(NULL)

# Rename assay names to for consistency
if (names(assays(input_read_RNA_assay)) != "X") names(assays(input_read_RNA_assay)) <- "X"

# strip metadata that we don't need
input_read_RNA_assay =
input_read_RNA_assay |>
Expand Down

0 comments on commit 476f692

Please sign in to comment.