Skip to content

Commit

Permalink
[r] Remove two more tiledb::schema callsites (#3160)
Browse files Browse the repository at this point in the history
* [r] Remove two more `tiledb::schema` callsites

* DESCRIPTION NEWS.md [skip ci]
  • Loading branch information
johnkerl authored Oct 10, 2024
1 parent 01aba35 commit cced6ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apis/r/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Description: Interface for working with 'TileDB'-based Stack of Matrices,
like those commonly used for single cell data analysis. It is documented at
<https://github.com/single-cell-data>; a formal specification available is at
<https://github.com/single-cell-data/SOMA/blob/main/abstract_specification.md>.
Version: 1.15.99.1
Version: 1.15.99.2
Authors@R: c(
person(given = "Aaron", family = "Wolen",
role = c("cre", "aut"), email = "aaron@tiledb.com",
Expand Down
9 changes: 5 additions & 4 deletions apis/r/NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

## Changes

* Push `schema` accessor down to `libtiledbsoma` [#3079](https://github.com/single-cell-data/TileDB-SOMA/pull/3079)
* Push `attrnames` down to C++ [#3121](https://github.com/single-cell-data/TileDB-SOMA/pull/3121)
* Use `libtiledbsoma` for R schema evolution [#3100](https://github.com/single-cell-data/TileDB-SOMA/pull/3100)
* Implement missing `domain` argument to `SOMADataFrame` `create` [#3032](https://github.com/single-cell-data/TileDB-SOMA/pull/3032)
* Remove unused `fragment_count` accessor [#3054](https://github.com/single-cell-data/TileDB-SOMA/pull/3054)
* Implement missing `domain` argument to `SOMADataFrame` `create` [#3032](https://github.com/single-cell-data/TileDB-SOMA/pull/3032)
* Use `libtiledbsoma` for R schema evolution [#3100](https://github.com/single-cell-data/TileDB-SOMA/pull/3100)
* Push `attrnames` down to C++ [#3121](https://github.com/single-cell-data/TileDB-SOMA/pull/3121)
* Push `schema` accessor down to `libtiledbsoma` [#3079](https://github.com/single-cell-data/TileDB-SOMA/pull/3079)
* Handle `numeric` coords properly when reading arrays
* Remove two more `tiledb::schema` callsites [#3160](https://github.com/single-cell-data/TileDB-SOMA/pull/3160)

# tiledbsoma 1.14.1

Expand Down
5 changes: 1 addition & 4 deletions apis/r/R/SOMADenseNDArray.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ SOMADenseNDArray <- R6::R6Class(

## the 'soma_data' data type may not have been cached, and if so we need to fetch it
if (is.null(private$.type)) {
## TODO: replace with a libtiledbsoma accessor as discussed
tpstr <- tiledb::datatype(tiledb::attrs(tiledb::schema(self$uri))[["soma_data"]])
arstr <- arrow_type_from_tiledb_type(tpstr)
private$.type <- arstr
private$.type <- self$schema()[["soma_data"]]$type
}

arr <- self$object
Expand Down
5 changes: 1 addition & 4 deletions apis/r/R/SOMASparseNDArray.R
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,7 @@ SOMASparseNDArray <- R6::R6Class(

## the 'soma_data' data type may not have been cached, and if so we need to fetch it
if (is.null(private$.type)) {
## TODO: replace with a libtiledbsoma accessor as discussed
tpstr <- tiledb::datatype(tiledb::attrs(tiledb::schema(self$uri))[["soma_data"]])
arstr <- arrow_type_from_tiledb_type(tpstr)
private$.type <- arstr
private$.type <- self$schema()[["soma_data"]]$type
}

arrsch <- arrow::schema(arrow::field(nms[1], arrow::int64()),
Expand Down

0 comments on commit cced6ea

Please sign in to comment.