From 6a460cedda93b65563b597cd6b873eadc046db87 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Tue, 23 Apr 2024 10:21:13 -0400 Subject: [PATCH] more --- apis/r/R/SOMAExperimentAxisQuery.R | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/apis/r/R/SOMAExperimentAxisQuery.R b/apis/r/R/SOMAExperimentAxisQuery.R index 281148e5be..a25abe78ed 100644 --- a/apis/r/R/SOMAExperimentAxisQuery.R +++ b/apis/r/R/SOMAExperimentAxisQuery.R @@ -431,24 +431,24 @@ SOMAExperimentAxisQuery <- R6::R6Class( # reindex the coordinates. mat_coords <- switch(collection, X = list( - i = self$indexer$by_obs(tbl$soma_dim_0), # XXX UPDATE HERE FOR DENSE - j = self$indexer$by_var(tbl$soma_dim_1) # XXX UPDATE HERE FOR DENSE + i = self$indexer$by_obs(coords$X$soma_dim_0), + j = self$indexer$by_var(coords$X$soma_dim_1) ), obsm = list( - i = self$indexer$by_obs(tbl$soma_dim_0), # XXX UPDATE HERE FOR DENSE - j = tbl$soma_dim_1 + i = self$indexer$by_obs(coords$obsm$soma_dim_0), + j = coords$obsm$soma_dim_1 # XXX UPDATE HERE FOR DENSE ), varm = list( - i = self$indexer$by_var(tbl$soma_dim_0), # XXX UPDATE HERE FOR DENSE - j = tbl$soma_dim_1 + i = self$indexer$by_var(coords$varm$soma_dim_0), + j = coords$varm$soma_dim_1 # XXX UPDATE HERE FOR DENSE ), obsp = list( - i = self$indexer$by_obs(tbl$soma_dim_0), # XXX UPDATE HERE FOR DENSE - j = self$indexer$by_obs(tbl$soma_dim_1) # XXX UPDATE HERE FOR DENSE + i = self$indexer$by_obs(coords$obsp$soma_dim_0), + j = self$indexer$by_obs(coords$obsp$soma_dim_1) ), varp = list( - i = self$indexer$by_var(tbl$soma_dim_0), # XXX UPDATE HERE FOR DENSE - j = self$indexer$by_var(tbl$soma_dim_1) # XXX UPDATE HERE FOR DENSE + i = self$indexer$by_var(coords$varp$soma_dim_0), + j = self$indexer$by_var(coords$varp$soma_dim_1) ) )