From e9994762651b52a01bfa712cf4266d8f5b05c182 Mon Sep 17 00:00:00 2001 From: Ed2uiz <32622519+Ed2uiz@users.noreply.github.com> Date: Wed, 18 Sep 2024 15:13:02 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20drieslab?= =?UTF-8?q?/dbMatrix@e56e052353d57eba82b69b5c9a72cba6a56d720b=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- GPL-3.html | 2 +- LICENSE-text.html | 2 +- articles/arithmetic.html | 25 ++- articles/index.html | 2 +- articles/operations.html | 188 +++++++++++------- articles/overview.html | 2 +- authors.html | 2 +- index.html | 2 +- news/index.html | 2 +- pkgdown.js | 8 + pkgdown.yml | 4 +- reference/as.matrix-dbMatrix-method.html | 100 ++++++++++ reference/colMeans,dbDenseMatrix-method.html | 4 +- reference/colMeans,dbSparseMatrix-method.html | 4 +- reference/colSums,dbDenseMatrix-method.html | 4 +- reference/colSums,dbSparseMatrix-method.html | 4 +- reference/colnames,dbMatrix-method.html | 4 +- reference/dbList-DBIConnection-method.html | 93 +++++++++ reference/dbMatrix.html | 10 +- reference/dbMatrix_from_tbl.html | 4 +- reference/dim-dbMatrix-method.html | 17 +- reference/dimnames,dbMatrix-method.html | 4 +- reference/dot-check_con.html | 2 +- reference/dot-check_name.html | 2 +- reference/dot-check_overwrite.html | 4 +- reference/dot-check_value.html | 2 +- reference/get_MM_dim.html | 4 +- reference/get_MM_dimnames.html | 2 +- reference/get_con.html | 2 +- reference/get_dbdir.html | 2 +- reference/get_tblName.html | 2 +- reference/head_tail.html | 43 +++- reference/index.html | 73 +++++-- reference/log-dbMatrix-method.html | 51 ++++- reference/map_ijx_dimnames.html | 15 +- reference/matrix_props.html | 119 +++++++++++ reference/mean.html | 26 ++- reference/nrow_ncol.html | 22 +- reference/precompute.html | 2 +- reference/print_array.html | 2 +- reference/rowMeans,dbSparseMatrix-method.html | 4 +- reference/rowSums,dbSparseMatrix-method.html | 4 +- reference/row_col_means.html | 115 +++++++++++ reference/row_col_sums.html | 115 +++++++++++ reference/sds.html | 60 ++++-- reference/simulate_objects.html | 2 +- reference/sum-dbMatrix-method.html | 94 +++++++++ reference/t-dbMatrix-method.html | 21 +- reference/to_ijx_disk.html | 2 +- search.json | 2 +- sitemap.xml | 9 +- 52 files changed, 1081 insertions(+), 211 deletions(-) create mode 100644 reference/as.matrix-dbMatrix-method.html create mode 100644 reference/dbList-DBIConnection-method.html create mode 100644 reference/matrix_props.html create mode 100644 reference/row_col_means.html create mode 100644 reference/row_col_sums.html create mode 100644 reference/sum-dbMatrix-method.html diff --git a/404.html b/404.html index fc53298..8bc0404 100644 --- a/404.html +++ b/404.html @@ -77,7 +77,7 @@

Page not found (404)

diff --git a/GPL-3.html b/GPL-3.html index c07183c..cddca32 100644 --- a/GPL-3.html +++ b/GPL-3.html @@ -250,7 +250,7 @@

How to Apply These Terms diff --git a/LICENSE-text.html b/LICENSE-text.html index 9fba562..c69f781 100644 --- a/LICENSE-text.html +++ b/LICENSE-text.html @@ -58,7 +58,7 @@

License

diff --git a/articles/arithmetic.html b/articles/arithmetic.html index 5ab8ce7..63c089a 100644 --- a/articles/arithmetic.html +++ b/articles/arithmetic.html @@ -76,7 +76,12 @@

Arithmetic

-library(dbMatrix)
+library(dbMatrix) +#> +#> Attaching package: 'dbMatrix' +#> The following object is masked from 'package:base': +#> +#> load

dbMatrix arithmetic

@@ -234,7 +239,7 @@

Session InfosessionInfo() #> R version 4.4.1 (2024-06-14) #> Platform: x86_64-pc-linux-gnu -#> Running under: Ubuntu 22.04.4 LTS +#> Running under: Ubuntu 22.04.5 LTS #> #> Matrix products: default #> BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 @@ -264,14 +269,14 @@

Session Info#> [16] knitr_1.48 tibble_3.2.1 desc_1.4.3 #> [19] MatrixGenerics_1.16.0 DBI_1.2.3 bslib_0.8.0 #> [22] pillar_1.9.0 rlang_1.1.4 utf8_1.2.4 -#> [25] cachem_1.1.0 xfun_0.46 fs_1.6.4 +#> [25] cachem_1.1.0 xfun_0.47 fs_1.6.4 #> [28] sass_0.4.9 bit64_4.0.5 cli_3.6.3 -#> [31] withr_3.0.1 pkgdown_2.1.0 magrittr_2.0.3 -#> [34] digest_0.6.36 grid_4.4.1 dbplyr_2.5.0 -#> [37] lifecycle_1.0.4 vctrs_0.6.5 evaluate_0.24.0 -#> [40] glue_1.7.0 data.table_1.15.4 duckdb_1.0.0-2 -#> [43] ragg_1.3.2 fansi_1.0.6 purrr_1.0.2 -#> [46] rmarkdown_2.27 matrixStats_1.3.0 tools_4.4.1 +#> [31] withr_3.0.1 pkgdown_2.1.1 magrittr_2.0.3 +#> [34] digest_0.6.37 grid_4.4.1 dbplyr_2.5.0 +#> [37] lifecycle_1.0.4 vctrs_0.6.5 evaluate_1.0.0 +#> [40] glue_1.7.0 data.table_1.16.0 duckdb_1.0.0-2 +#> [43] ragg_1.3.3 fansi_1.0.6 purrr_1.0.2 +#> [46] rmarkdown_2.28 matrixStats_1.4.1 tools_4.4.1 #> [49] pkgconfig_2.0.3 htmltools_0.5.8.1

@@ -286,7 +291,7 @@

Session Info -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/articles/index.html b/articles/index.html index da9ab14..6d6f045 100644 --- a/articles/index.html +++ b/articles/index.html @@ -62,7 +62,7 @@

All vignettes

diff --git a/articles/operations.html b/articles/operations.html index e0d9912..a33728c 100644 --- a/articles/operations.html +++ b/articles/operations.html @@ -68,7 +68,7 @@

Operations

-

2024-08-15

+

2024-09-18

Source: vignettes/operations.Rmd
operations.Rmd
@@ -240,56 +240,66 @@

colMeans
 dbMatrix::colMeans(sparse)
-
## AAAGGGATGTAGCAAG-1 AAATGGCATGTCTTGT-1 AAATGGTCAATGTGCC-1 AAATTAACGGGTAGCT-1 
-##          0.7413249          1.3296530          1.1435331          0.8343849 
-## AACAACTGGTAGTTGC-1 AACAGGAAATCGAATA-1 AACAGGATGGGCCGCG-1 AACCATGGGATCGCTA-1 
-##          1.6135647          2.2129338          1.7223975          1.9022082 
-## AACCCAGAGACGGAGA-1 AACCGAGCTTGGTCAT-1 
-##          0.7397476          0.9258675 
-##  [ reached getOption("max.print") -- omitted 614 entries ]
+
## 1 x 624  matrix of class "dbDenseMatrix"
+
## [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]]
+
##                                                                            
+## row1 0.74132 1.32965 1.14353 0.83438 1.61356 2.21293 1.7224 1.90221 0.73975
+##             
+## row1 0.92587

colSums

-
+
 dbMatrix::colSums(sparse)
-
## AAAGGGATGTAGCAAG-1 AAATGGCATGTCTTGT-1 AAATGGTCAATGTGCC-1 AAATTAACGGGTAGCT-1 
-##                470                843                725                529 
-## AACAACTGGTAGTTGC-1 AACAGGAAATCGAATA-1 AACAGGATGGGCCGCG-1 AACCATGGGATCGCTA-1 
-##               1023               1403               1092               1206 
-## AACCCAGAGACGGAGA-1 AACCGAGCTTGGTCAT-1 
-##                469                587 
-##  [ reached getOption("max.print") -- omitted 614 entries ]
+
## 1 x 624  matrix of class "dbDenseMatrix"
+
## [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]]
+
##                                                 
+## row1 470 843 725 529 1023 1403 1092 1206 469 587

rowMeans

-
+
 dbMatrix::rowMeans(sparse)
-
##     Gna12     Ccnd2    Btbd17      Sox9      Sez6  Serpinf1    S100a6    Col1a1 
-## 2.7179487 1.7323718 0.5528846 0.8766026 4.4679487 0.3092949 1.6522436 0.1185897 
-##       Vwf      Esam 
-## 0.6346154 0.4391026 
-##  [ reached getOption("max.print") -- omitted 624 entries ]
+
## 634 x 1  matrix of class "dbDenseMatrix"
+
## [[ Colnames: 'col1' ]]
+
##                      
+## Gna12         2.71795
+## Ccnd2         1.73237
+## Btbd17        0.55288
+## 
+## ......suppressing 628 rows
+## 
+## Gm19935       0.20833
+## 9630013A20Rik 0.17147
+## 2900040C04Rik 0.15545

rowSums

-
+
 dbMatrix::rowSums(sparse)
-
##    Gna12    Ccnd2   Btbd17     Sox9     Sez6 Serpinf1   S100a6   Col1a1 
-##     1696     1081      345      547     2788      193     1031       74 
-##      Vwf     Esam 
-##      396      274 
-##  [ reached getOption("max.print") -- omitted 624 entries ]
+
## 634 x 1  matrix of class "dbDenseMatrix"
+
## [[ Colnames: 'col1' ]]
+
##                   
+## Gna12         1696
+## Ccnd2         1081
+## Btbd17         345
+## 
+## ......suppressing 628 rows
+## 
+## Gm19935        130
+## 9630013A20Rik  107
+## 2900040C04Rik   97

dim

-
+
 dim(sparse)
## [1] 634 624
-
+
 dim(dgc)
## [1] 634 624
@@ -298,32 +308,48 @@

Check results are equivalent
+
   all.equal(dbMatrix::colMeans(sparse), Matrix::colMeans(dgc))
-
  ## [1] TRUE
-
+
  ## [1] "Modes: S4, numeric"                                               
+  ## [2] "Lengths: 1, 624"                                                  
+  ## [3] "names for current but not for target"                             
+  ## [4] "Attributes: < names for target but not for current >"             
+  ## [5] "Attributes: < Length mismatch: comparison on first 0 components >"
+
   all.equal(dbMatrix::colSums(sparse), Matrix::colSums(dgc))
-
  ## [1] TRUE
-
+
  ## [1] "Modes: S4, numeric"                                               
+  ## [2] "Lengths: 1, 624"                                                  
+  ## [3] "names for current but not for target"                             
+  ## [4] "Attributes: < names for target but not for current >"             
+  ## [5] "Attributes: < Length mismatch: comparison on first 0 components >"
+
   all.equal(dbMatrix::rowMeans(sparse), Matrix::rowMeans(dgc))
-
  ## [1] TRUE
-
+
  ## [1] "Modes: S4, numeric"                                               
+  ## [2] "Lengths: 1, 634"                                                  
+  ## [3] "names for current but not for target"                             
+  ## [4] "Attributes: < names for target but not for current >"             
+  ## [5] "Attributes: < Length mismatch: comparison on first 0 components >"
+
   all.equal(dbMatrix::rowSums(sparse), Matrix::rowSums(dgc))
-
  ## [1] TRUE
+
  ## [1] "Modes: S4, numeric"                                               
+  ## [2] "Lengths: 1, 634"                                                  
+  ## [3] "names for current but not for target"                             
+  ## [4] "Attributes: < names for target but not for current >"             
+  ## [5] "Attributes: < Length mismatch: comparison on first 0 components >"

dbDenseMatrix Operations

-
+
 # below is a convenience function to simulate a dbDenseMatrix
 dense = dbMatrix::sim_dbDenseMatrix()
 
 # preview
 dense
-
## 50 x 50  matrix of class "dbDenseMatrix"
-##                                                                              
+
## 50 x 50  matrix of class "dbDenseMatrix"
+
##                                                                              
 ## row1   1.37096  0.32193  1.20097  -0.0407 -2.00093 -1.09616 -0.00462  0.72417
 ##                        
 ## row1   1.33491 -1.30382
@@ -336,7 +362,7 @@ 

dbDenseMatrix Operations

transpose

-
+
 dbMatrix::t(dense)
## 50 x 50  matrix of class "dbDenseMatrix"
## [[ Colnames 'row1', 'row2', 'row3' ... suppressing 44 ...'row48', 'row49', 'row50' ]]
@@ -354,58 +380,76 @@

transpose

colMeans

-
+
 dbMatrix::colMeans(dense)
-
##         col1         col2         col3         col4         col5         col6 
-## -0.035671782  0.100701413 -0.151251089 -0.023716326  0.007939877 -0.028676220 
-##         col7         col8         col9        col10 
-## -0.061541347  0.127414276 -0.119421148 -0.116239863 
-##  [ reached getOption("max.print") -- omitted 40 entries ]
+
## 1 x 50  matrix of class "dbDenseMatrix"
+
## [[ Colnames 'col1', 'col2', 'col3' ... suppressing 44 ...'col48', 'col49', 'col50' ]]
+
##                                                                          
+## row1 -0.03562 0.10074 -0.15122 -0.02372 0.00794 -0.02862 -0.06156 0.12742
+##                       
+## row1 -0.11944 -0.11622

colSums

-
+
 dbMatrix::colSums(dense)
-
##       col1       col2       col3       col4       col5       col6       col7 
-## -1.7835891  5.0350707 -7.5625544 -1.1858163  0.3969938 -1.4338110 -3.0770674 
-##       col8       col9      col10 
-##  6.3707138 -5.9710574 -5.8119931 
-##  [ reached getOption("max.print") -- omitted 40 entries ]
+
## 1 x 50  matrix of class "dbDenseMatrix"
+
## [[ Colnames 'col1', 'col2', 'col3' ... suppressing 44 ...'col48', 'col49', 'col50' ]]
+
## Warning: ORDER BY is ignored in subqueries without LIMIT
+##  Do you need to move arrange() later in the pipeline or use window_order() instead?
+
##                                                                        
+## row1 -1.781 5.037 -7.561 -1.186 0.397 -1.431 -3.078 6.371 -5.972 -5.811

rowMeans

-
+
 dbMatrix::rowMeans(dense)
-
##         row1         row2         row3         row4         row5         row6 
-##  0.053643638  0.002494642  0.031334034  0.093889009 -0.048311439 -0.047287825 
-##         row7         row8         row9        row10 
-##  0.092209664 -0.023069981  0.096433464 -0.093495713 
-##  [ reached getOption("max.print") -- omitted 40 entries ]
+
## 50 x 1  matrix of class "dbDenseMatrix"
+
## [[ Colnames: 'col1' ]]
+
##               
+## row1   0.05362
+## row2   0.00246
+## row3   0.03132
+## 
+## ......suppressing 44 rows
+## 
+## row48 -0.10104
+## row49  0.05928
+## row50  0.02156

rowSums

-
+
 dbMatrix::rowSums(dense)
-
##       row1       row2       row3       row4       row5       row6       row7 
-##  2.6821819  0.1247321  1.5667017  4.6944505 -2.4155720 -2.3643912  4.6104832 
-##       row8       row9      row10 
-## -1.1534990  4.8216732 -4.6747857 
-##  [ reached getOption("max.print") -- omitted 40 entries ]
+
## 50 x 1  matrix of class "dbDenseMatrix"
+
## [[ Colnames: 'col1' ]]
+
## Warning: ORDER BY is ignored in subqueries without LIMIT
+##  Do you need to move arrange() later in the pipeline or use window_order() instead?
+
##             
+## row1   2.681
+## row2   0.123
+## row3   1.566
+## 
+## ......suppressing 44 rows
+## 
+## row48 -5.052
+## row49  2.964
+## row50  1.078

mean

-
+
 dbMatrix::mean(dense)
-
## [1] -0.009673541
+
## [1] -0.0096724

dim

-
+
 dim(dense)
## [1] 50 50
@@ -413,11 +457,11 @@

dim

Session Info

-
+
 
## R version 4.4.1 (2024-06-14)
 ## Platform: x86_64-pc-linux-gnu
-## Running under: Ubuntu 22.04.4 LTS
+## Running under: Ubuntu 22.04.5 LTS
 ## 
 ## Matrix products: default
 ## BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
@@ -456,7 +500,7 @@ 

Session Info -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/articles/overview.html b/articles/overview.html index a7f169b..5057a52 100644 --- a/articles/overview.html +++ b/articles/overview.html @@ -129,7 +129,7 @@

dbDenseMatrix -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/authors.html b/authors.html index e9b661a..da260a9 100644 --- a/authors.html +++ b/authors.html @@ -86,7 +86,7 @@

Citation

diff --git a/index.html b/index.html index 51706ef..337a229 100644 --- a/index.html +++ b/index.html @@ -131,7 +131,7 @@

Dev status

diff --git a/news/index.html b/news/index.html index b33e20e..18e55dd 100644 --- a/news/index.html +++ b/news/index.html @@ -367,7 +367,7 @@

Chore -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/pkgdown.js b/pkgdown.js index 9757bf9..1a99c65 100644 --- a/pkgdown.js +++ b/pkgdown.js @@ -152,3 +152,11 @@ async function searchFuse(query, callback) { }); }); })(window.jQuery || window.$) + +document.addEventListener('keydown', function(event) { + // Check if the pressed key is '/' + if (event.key === '/') { + event.preventDefault(); // Prevent any default action associated with the '/' key + document.getElementById('search-input').focus(); // Set focus to the search input + } +}); diff --git a/pkgdown.yml b/pkgdown.yml index 7b76cb7..99d7a14 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -1,11 +1,11 @@ pandoc: 3.1.11 -pkgdown: 2.1.0 +pkgdown: 2.1.1 pkgdown_sha: ~ articles: arithmetic: arithmetic.html operations: operations.html overview: overview.html -last_built: 2024-08-15T17:06Z +last_built: 2024-09-18T15:12Z urls: reference: https://drieslab.github.io/dbMatrix/reference article: https://drieslab.github.io/dbMatrix/articles diff --git a/reference/as.matrix-dbMatrix-method.html b/reference/as.matrix-dbMatrix-method.html new file mode 100644 index 0000000..9f09749 --- /dev/null +++ b/reference/as.matrix-dbMatrix-method.html @@ -0,0 +1,100 @@ + +Convert dbMatrix to in-memory matrix — as.matrix,dbMatrix-method • dbMatrix + Skip to contents + + +
+
+
+ +
+

Converts a dbMatrix object into an in-memory matrix or sparse matrix.

+
+ +
+

Usage

+
# S4 method for class 'dbMatrix'
+as.matrix(x, ...)
+
+ +
+

Arguments

+ + +
x
+

A dbMatrix object (dbSparseMatrix or dbDenseMatrix)

+ + +
...
+

Additional arguments (not used)

+ +
+
+

Value

+

A Matrix::dgCMatrix or base R matrix

+
+
+

Details

+

This method converts a dbMatrix object (dbSparseMatrix or dbDenseMatrix) to an in-memory +Matrix::dgCMatrix (for sparse) or base R matrix (for dense). +Warning: This can cause memory issues if the input matrix is large.

+
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/reference/colMeans,dbDenseMatrix-method.html b/reference/colMeans,dbDenseMatrix-method.html index 572409f..62203c5 100644 --- a/reference/colMeans,dbDenseMatrix-method.html +++ b/reference/colMeans,dbDenseMatrix-method.html @@ -1,8 +1,8 @@ - + - + diff --git a/reference/colMeans,dbSparseMatrix-method.html b/reference/colMeans,dbSparseMatrix-method.html index 572409f..62203c5 100644 --- a/reference/colMeans,dbSparseMatrix-method.html +++ b/reference/colMeans,dbSparseMatrix-method.html @@ -1,8 +1,8 @@ - + - + diff --git a/reference/colSums,dbDenseMatrix-method.html b/reference/colSums,dbDenseMatrix-method.html index 572409f..761c674 100644 --- a/reference/colSums,dbDenseMatrix-method.html +++ b/reference/colSums,dbDenseMatrix-method.html @@ -1,8 +1,8 @@ - + - + diff --git a/reference/colSums,dbSparseMatrix-method.html b/reference/colSums,dbSparseMatrix-method.html index 572409f..761c674 100644 --- a/reference/colSums,dbSparseMatrix-method.html +++ b/reference/colSums,dbSparseMatrix-method.html @@ -1,8 +1,8 @@ - + - + diff --git a/reference/colnames,dbMatrix-method.html b/reference/colnames,dbMatrix-method.html index 331b63c..d9cbb20 100644 --- a/reference/colnames,dbMatrix-method.html +++ b/reference/colnames,dbMatrix-method.html @@ -1,8 +1,8 @@ - + - + diff --git a/reference/dbList-DBIConnection-method.html b/reference/dbList-DBIConnection-method.html new file mode 100644 index 0000000..9660afd --- /dev/null +++ b/reference/dbList-DBIConnection-method.html @@ -0,0 +1,93 @@ + +List remote tables, temporary tables, and views — dbList,DBIConnection-method • dbMatrix + Skip to contents + + +
+
+
+ +
+

Pretty prints tables, temporary tables, and views in the database.

+
+ +
+

Usage

+
# S4 method for class 'DBIConnection'
+dbList(conn)
+
+ +
+

Arguments

+ + +
conn
+

A DBIConnection object, as returned by +dbConnect().

+ +
+
+

Details

+

Similar to DBI::dbListTables, but categorizes tables into three categories:

  • Tables

  • +
  • Temporary Tables (these will be removed when the connection is closed)

  • +
  • Views (these may be removed when the connection is closed)

  • +
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/reference/dbMatrix.html b/reference/dbMatrix.html index bf59700..fc79974 100644 --- a/reference/dbMatrix.html +++ b/reference/dbMatrix.html @@ -1,5 +1,5 @@ -Create a sparse or dense dbMatrix objects — dbMatrix • dbMatrix +Create a dbSparseMatrix or dbDenseMatrix object — dbMatrix • dbMatrix Skip to contents @@ -40,7 +40,7 @@

diff --git a/reference/dbMatrix_from_tbl.html b/reference/dbMatrix_from_tbl.html index d0be204..e63ca72 100644 --- a/reference/dbMatrix_from_tbl.html +++ b/reference/dbMatrix_from_tbl.html @@ -90,7 +90,7 @@

Arguments

Value

-

`dbMatrix` object

+

dbMatrix object

Details

@@ -106,7 +106,7 @@

Details

diff --git a/reference/dim-dbMatrix-method.html b/reference/dim-dbMatrix-method.html index 89a1100..151a1d7 100644 --- a/reference/dim-dbMatrix-method.html +++ b/reference/dim-dbMatrix-method.html @@ -1,5 +1,5 @@ -Dimensions of an Object — dim,dbMatrix-method • dbMatrix +Dimensions of an Object — dim,dbMatrix-method • dbMatrix Skip to contents @@ -46,7 +46,7 @@

Dimensions of an Object

-

See ?base::dim for more details.

+

Retrieve the dimension of an object.

@@ -55,8 +55,17 @@

Usage dim(x)

+
+

Arguments

+ + +
x
+

dbMatrix object

+ +
-
+
diff --git a/reference/dimnames,dbMatrix-method.html b/reference/dimnames,dbMatrix-method.html index 331b63c..d9cbb20 100644 --- a/reference/dimnames,dbMatrix-method.html +++ b/reference/dimnames,dbMatrix-method.html @@ -1,8 +1,8 @@ - + - + diff --git a/reference/dot-check_con.html b/reference/dot-check_con.html index 89de440..cd2dcea 100644 --- a/reference/dot-check_con.html +++ b/reference/dot-check_con.html @@ -72,7 +72,7 @@

Arguments -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/reference/dot-check_name.html b/reference/dot-check_name.html index f7b4a9c..37c06c5 100644 --- a/reference/dot-check_name.html +++ b/reference/dot-check_name.html @@ -63,7 +63,7 @@

Usage diff --git a/reference/dot-check_overwrite.html b/reference/dot-check_overwrite.html index 7bf2639..0cb6c23 100644 --- a/reference/dot-check_overwrite.html +++ b/reference/dot-check_overwrite.html @@ -51,7 +51,7 @@

Input validation for overwrite arg

Usage

-
.check_overwrite(conn, overwrite, name, skip_value_check)
+
.check_overwrite(conn, overwrite, name, skip_value_check = FALSE)
@@ -63,7 +63,7 @@

Usage diff --git a/reference/dot-check_value.html b/reference/dot-check_value.html index c967a01..1afab23 100644 --- a/reference/dot-check_value.html +++ b/reference/dot-check_value.html @@ -72,7 +72,7 @@

Arguments -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/reference/get_MM_dim.html b/reference/get_MM_dim.html index 818c38d..55389be 100644 --- a/reference/get_MM_dim.html +++ b/reference/get_MM_dim.html @@ -68,7 +68,7 @@

Value

Details

-

Scans for the header of an mtx file (starting with +

Scans for the header of an mtx file (starting with %) and takes one more line representing the dimensions and number of nonzero values.

Note: the header size can vary depending on the .mtx file.

@@ -82,7 +82,7 @@

Details diff --git a/reference/get_MM_dimnames.html b/reference/get_MM_dimnames.html index ed2500b..161e8eb 100644 --- a/reference/get_MM_dimnames.html +++ b/reference/get_MM_dimnames.html @@ -114,7 +114,7 @@

Details diff --git a/reference/get_con.html b/reference/get_con.html index 32bbc49..dddff41 100644 --- a/reference/get_con.html +++ b/reference/get_con.html @@ -72,7 +72,7 @@

Arguments -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/reference/get_dbdir.html b/reference/get_dbdir.html index 5986d58..f1f663b 100644 --- a/reference/get_dbdir.html +++ b/reference/get_dbdir.html @@ -72,7 +72,7 @@

Arguments -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/reference/get_tblName.html b/reference/get_tblName.html index f045689..cbc775d 100644 --- a/reference/get_tblName.html +++ b/reference/get_tblName.html @@ -72,7 +72,7 @@

Arguments -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/reference/head_tail.html b/reference/head_tail.html index 9940976..203aa7d 100644 --- a/reference/head_tail.html +++ b/reference/head_tail.html @@ -1,7 +1,9 @@ -Return the First or Last Parts of an Object — head,dbMatrix-method • dbMatrix +Return the First or Last Parts of an Object — head,dbMatrix-method • dbMatrix Skip to contents @@ -48,8 +50,9 @@

Return the First or Last Parts of an Object

-

See ?utils::head for more details.

-

See ?utils::tail for more details.

+

Returns the first or last parts of a vector, matrix, table, data frame + or function. Since head() and tail() are generic + functions, they may also have been extended to other classes.

@@ -61,8 +64,34 @@

Usage tail(x, n = 6L, ...)

+
+

Arguments

+ + +
x
+

an object

+ + +
n
+

an integer vector of length up to dim(x) (or 1, + for non-dimensioned objects). A logical is silently coerced to + integer. Values specify the indices to be + selected in the corresponding dimension (or along the length) of the + object. A positive value of n[i] includes the first/last + n[i] indices in that dimension, while a negative value + excludes the last/first abs(n[i]), including all remaining + indices. NA or non-specified values (when length(n) < + length(dim(x))) select all indices in that dimension. Must + contain at least one non-missing value.

+ + +
...
+

arguments to be passed to or from other methods.

+ +
- + diff --git a/reference/index.html b/reference/index.html index ef9c72b..3652ced 100644 --- a/reference/index.html +++ b/reference/index.html @@ -44,9 +44,9 @@

Package index

-

dbMatrix objects

+

Constructor

-

Functions for dbMatrix objects

+

Function for creating dbMatrix objects

@@ -59,11 +59,11 @@

dbMatrix objectsdbMatrix() -
Create a sparse or dense dbMatrix objects
+
Create a dbSparseMatrix or dbDenseMatrix object

-

Matrix Summary Statistics

+

Matrix Summary Operations

-

Functions/methods to compute summary statistics for dbMatrix objects

+

Methods to compute summary statistics for dbMatrix objects

@@ -76,23 +76,35 @@

Matrix Summary Statisticsmean(<dbDenseMatrix>) mean(<dbSparseMatrix>) -
Arithmetic Mean
+
Arithmetic Mean for dbMatrix objects
- rowSums(<dbDenseMatrix>) rowSums(<dbSparseMatrix>) colSums(<dbDenseMatrix>) colSums(<dbSparseMatrix>) rowMeans(<dbDenseMatrix>) rowMeans(<dbSparseMatrix>) colMeans(<dbDenseMatrix>) colMeans(<dbSparseMatrix>) + rowMeans(<dbDenseMatrix>) rowMeans(<dbSparseMatrix>) colMeans(<dbDenseMatrix>) colMeans(<dbSparseMatrix>)
-
Form Row and Column Sums and Means
+
Row (column) means for dbMatrix objects
+
+ + rowSums(<dbDenseMatrix>) rowSums(<dbSparseMatrix>) colSums(<dbDenseMatrix>) colSums(<dbSparseMatrix>) + +
+
Row (column) sums for dbMatrix objects
colSds(<dbDenseMatrix>) colSds(<dbSparseMatrix>) rowSds(<dbDenseMatrix>) rowSds(<dbSparseMatrix>)
-
Calculates the standard deviation for each row (column) of a matrix-like object
+
Row (column) standard deviations for dbMatrix objects
+
+ + sum(<dbMatrix>) + +
+
Sum of Vector Elements in dbMatrix objects

Matrix Transformations

-

Functions/methods for transforming dbMatrix objects

+

Methods for transforming dbMatrix objects

@@ -102,6 +114,12 @@

Matrix Transformations
+ as.matrix(<dbMatrix>) + +
+
Convert dbMatrix to in-memory matrix
+
+ log(<dbMatrix>)
@@ -115,7 +133,7 @@

Matrix Transformations

Matrix Properties

-

Functions/methods to get basic properties of dbMatrix objects

+

Methods to retrieve basic properties of dbMatrix objects

@@ -125,12 +143,6 @@

Matrix PropertiescolTypes(<dbMatrix>) - - -
Return the column types of a `dbMatrix` object
-
- dim(<dbMatrix>)
@@ -143,10 +155,33 @@

Matrix Propertiesrownames(<dbMatrix>) `rownames<-`(<dbMatrix>) colnames(<dbMatrix>) `colnames<-`(<dbMatrix>) dimnames(<dbMatrix>) `dimnames<-`(<dbMatrix>,<list>) + + +
Retrieve and Set Row (Column) Dimension Names of dbMatrix Objects
+

+ nrow(<dbMatrix>) ncol(<dbMatrix>)
-
The Number of Rows/Columns of an Array
+
The Number of Rows/Columns of a dbMatrix Object
+

+

dbData objects

+ +

Convenience methods for dbData objects

+ + +
+ + + + +
+ + dbList(<DBIConnection>) + +
+
List remote tables, temporary tables, and views
@@ -157,7 +192,7 @@

Matrix Properties -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/reference/log-dbMatrix-method.html b/reference/log-dbMatrix-method.html index 8bbf55d..7a170c1 100644 --- a/reference/log-dbMatrix-method.html +++ b/reference/log-dbMatrix-method.html @@ -1,5 +1,23 @@ -Logarithms and Exponentials — log,dbMatrix-method • dbMatrix +Logarithms and Exponentials — log,dbMatrix-method • dbMatrix Skip to contents @@ -46,17 +64,40 @@

Logarithms and Exponentials

-

See ?base::log for more details.

+

log computes logarithms, by default natural logarithms, + log10 computes common (i.e., base 10) logarithms, and + log2 computes binary (i.e., base 2) logarithms. + The general form log(x, base) computes logarithms with base + base.

+

log1p(x) computes \(\log(1+x)\) accurately also for + \(|x| \ll 1\).

+

exp computes the exponential function.

+

expm1(x) computes \(\exp(x) - 1\) accurately also for + \(|x| \ll 1\).

Usage

# S4 method for class 'dbMatrix'
-log(x, ...)
+log(x, base = exp(1))
+
+

Arguments

+ + +
x
+

a numeric or complex vector.

+ + +
base
+

a positive or complex number: the base with respect to which + logarithms are computed. Defaults to \(e\)=exp(1).

+ +
- + diff --git a/reference/map_ijx_dimnames.html b/reference/map_ijx_dimnames.html index a548999..bfec4e7 100644 --- a/reference/map_ijx_dimnames.html +++ b/reference/map_ijx_dimnames.html @@ -74,13 +74,12 @@

Arguments

Details

Constructs a table in a database that contains the accompanying dimnames -for a dbMatrix. The resulting columns in the table: -* i (row index) -* colName_i (rownames), -* j (col index) -* j_names (colnames) -* x (counts of i,j occcurences)

- +for a dbMatrix. The resulting columns in the table:

@@ -91,7 +90,7 @@

Details diff --git a/reference/matrix_props.html b/reference/matrix_props.html new file mode 100644 index 0000000..d3ccdd9 --- /dev/null +++ b/reference/matrix_props.html @@ -0,0 +1,119 @@ + +Retrieve and Set Row (Column) Dimension Names of dbMatrix Objects — rownames,dbMatrix-method • dbMatrix + Skip to contents + + +
+
+
+ +
+

Retrieve and Set Row (Column) Dimension Names of dbMatrix Objects

+
+ +
+

Usage

+
# S4 method for class 'dbMatrix'
+rownames(x)
+
+# S4 method for class 'dbMatrix'
+rownames(x) <- value
+
+# S4 method for class 'dbMatrix'
+colnames(x)
+
+# S4 method for class 'dbMatrix'
+colnames(x) <- value
+
+# S4 method for class 'dbMatrix'
+dimnames(x)
+
+# S4 method for class 'dbMatrix,list'
+dimnames(x) <- value
+
+ +
+

Arguments

+ + +
x
+

a matrix-like R object, with at least two dimensions for + colnames.

+ + +
value
+

a valid value for that component of + dimnames(x). For a matrix or array this is either + NULL or a character vector of non-zero length equal to the + appropriate dimension.

+ + +
do.NULL
+

Not used for this method. Included for compatibility with the +generic.

+ + +
prefix
+

Not used for this method. Included for compatibility with the +generic.

+ +
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/reference/mean.html b/reference/mean.html index 4ff2a7b..fe78b35 100644 --- a/reference/mean.html +++ b/reference/mean.html @@ -1,7 +1,5 @@ -Arithmetic Mean — mean,dbDenseMatrix-method • dbMatrix +Arithmetic Mean for dbMatrix objects — mean,dbDenseMatrix-method • dbMatrix Skip to contents @@ -42,14 +40,13 @@
-

See ?base::mean for more details.

-

See ?base::mean for more details.

+

Generic function for the (trimmed) arithmetic mean.

@@ -61,8 +58,21 @@

Usage mean(x, ...)

+
+

Arguments

+ + +
x
+

dbMatrix object

+ + +
...
+

further arguments passed to or from other methods.

+ +
- + diff --git a/reference/nrow_ncol.html b/reference/nrow_ncol.html index a98b525..3f95ac9 100644 --- a/reference/nrow_ncol.html +++ b/reference/nrow_ncol.html @@ -1,7 +1,5 @@ -The Number of Rows/Columns of an Array — nrow,dbMatrix-method • dbMatrix +The Number of Rows/Columns of a dbMatrix Object — nrow,dbMatrix-method • dbMatrix Skip to contents @@ -42,14 +40,13 @@
-

See ?base::nrow for more details.

-

See ?base::ncol for more details.

+

nrow and ncol return the number of rows or columns present in x.

@@ -61,8 +58,17 @@

Usage ncol(x)

+
+

Arguments

+ + +
x
+

dbMatrix object

+ +
- + diff --git a/reference/precompute.html b/reference/precompute.html index ab447aa..de51a9a 100644 --- a/reference/precompute.html +++ b/reference/precompute.html @@ -121,7 +121,7 @@

Examples -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/reference/print_array.html b/reference/print_array.html index b182840..6cbeb4b 100644 --- a/reference/print_array.html +++ b/reference/print_array.html @@ -92,7 +92,7 @@

Arguments -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/reference/rowMeans,dbSparseMatrix-method.html b/reference/rowMeans,dbSparseMatrix-method.html index 572409f..62203c5 100644 --- a/reference/rowMeans,dbSparseMatrix-method.html +++ b/reference/rowMeans,dbSparseMatrix-method.html @@ -1,8 +1,8 @@ - + - + diff --git a/reference/rowSums,dbSparseMatrix-method.html b/reference/rowSums,dbSparseMatrix-method.html index 572409f..761c674 100644 --- a/reference/rowSums,dbSparseMatrix-method.html +++ b/reference/rowSums,dbSparseMatrix-method.html @@ -1,8 +1,8 @@ - + - + diff --git a/reference/row_col_means.html b/reference/row_col_means.html new file mode 100644 index 0000000..bc58e0d --- /dev/null +++ b/reference/row_col_means.html @@ -0,0 +1,115 @@ + +Row (column) means for dbMatrix objects — rowMeans,dbDenseMatrix-method • dbMatrix + Skip to contents + + +
+
+
+ +
+

Calculates the mean for each row (column) of a matrix-like object.

+
+ +
+

Usage

+
# S4 method for class 'dbDenseMatrix'
+rowMeans(x, ..., memory = FALSE)
+
+# S4 method for class 'dbSparseMatrix'
+rowMeans(x, ..., memory = FALSE)
+
+# S4 method for class 'dbDenseMatrix'
+colMeans(x, ..., memory = FALSE)
+
+# S4 method for class 'dbSparseMatrix'
+colMeans(x, ..., memory = FALSE)
+
+ +
+

Arguments

+ + +
x
+

An NxK matrix-like object, a numeric data frame, or an array-like +object of two or more dimensions.

+ + +
...
+

Additional arguments passed to specific methods.

+ + +
memory
+

logical. If FALSE (default), results returned as dbDenseMatrix. This is recommended +for large computations. Set to TRUE to return the results as a vector.

+ + +
na.rm
+

Always TRUE for dbMatrix queries. Included for compatibility +with the generic.

+ + +
dims
+

Always 1 for dbMatrix queries. Included for compatibility with +the generic.

+ +
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/reference/row_col_sums.html b/reference/row_col_sums.html new file mode 100644 index 0000000..1a57a2d --- /dev/null +++ b/reference/row_col_sums.html @@ -0,0 +1,115 @@ + +Row (column) sums for dbMatrix objects — rowSums,dbDenseMatrix-method • dbMatrix + Skip to contents + + +
+
+
+ +
+

Calculates the sum for each row (column) of a matrix-like object.

+
+ +
+

Usage

+
# S4 method for class 'dbDenseMatrix'
+rowSums(x, ..., memory = FALSE)
+
+# S4 method for class 'dbSparseMatrix'
+rowSums(x, ..., memory = FALSE)
+
+# S4 method for class 'dbDenseMatrix'
+colSums(x, ..., memory = FALSE)
+
+# S4 method for class 'dbSparseMatrix'
+colSums(x, ..., memory = FALSE)
+
+ +
+

Arguments

+ + +
x
+

An NxK matrix-like object, a numeric data frame, or an array-like +object of two or more dimensions.

+ + +
...
+

Additional arguments passed to specific methods.

+ + +
memory
+

logical. If FALSE (default), results returned as dbDenseMatrix. This is recommended +for large computations. Set to TRUE to return the results as a vector.

+ + +
na.rm
+

Always TRUE for dbMatrix queries. Included for compatibility +with the generic.

+ + +
dims
+

Always 1 for dbMatrix queries. Included for compatibility with +the generic.

+ +
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/reference/sds.html b/reference/sds.html index e976c84..ec72e10 100644 --- a/reference/sds.html +++ b/reference/sds.html @@ -1,11 +1,7 @@ -Calculates the standard deviation for each row (column) of a matrix-like object — colSds,dbDenseMatrix-method • dbMatrix +Row (column) standard deviations for dbMatrix objects — colSds,dbDenseMatrix-method • dbMatrix Skip to contents @@ -46,16 +42,14 @@
-

See ?MatrixGenerics::colSds for more details.

-

See ?MatrixGenerics::colSds for more details.

-

See ?MatrixGenerics::rowSds for more details.

-

See ?MatrixGenerics::rowSds for more details.

+

Calculates the standard deviation for each row (column) of a matrix-like +object.

@@ -105,8 +99,46 @@

Usage )

+
+

Arguments

+ + +
x
+

An NxK matrix-like object.

+ + +
rows, cols
+

Always NULL for dbMatrix queries. Included for compatibility +with the generic.

+ + +
na.rm
+

Always TRUE for dbMatrix queries. Included for compatibility +with the generic.

+ + +
center
+

Always NULL for dbMatrix queries. Included for compatibility +with the generic.

+ + +
...
+

Additional arguments passed to specific methods.

+ + +
useNames
+

Always TRUE for dbMatrix queries. Included for compatibility +with the generic.

+ + +
dim
+

Always NULL for dbMatrix queries. Included for compatibility with +the generic.

+ +
- + diff --git a/reference/simulate_objects.html b/reference/simulate_objects.html index 027eb6f..02e5d3c 100644 --- a/reference/simulate_objects.html +++ b/reference/simulate_objects.html @@ -136,7 +136,7 @@

Examples -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/reference/sum-dbMatrix-method.html b/reference/sum-dbMatrix-method.html new file mode 100644 index 0000000..486eac2 --- /dev/null +++ b/reference/sum-dbMatrix-method.html @@ -0,0 +1,94 @@ + +Sum of Vector Elements in dbMatrix objects — sum,dbMatrix-method • dbMatrix + Skip to contents + + +
+
+
+ +
+

sum returns the sum of all the values + present in its arguments.

+
+ +
+

Usage

+
# S4 method for class 'dbMatrix'
+sum(x, na.rm = TRUE)
+
+ +
+

Arguments

+ + +
x
+

dbMatrix object

+ + +
na.rm
+

Always TRUE for dbMatrix queries. Included for compatibility +with the generic.

+ +
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/reference/t-dbMatrix-method.html b/reference/t-dbMatrix-method.html index 1c9aeca..f493ca4 100644 --- a/reference/t-dbMatrix-method.html +++ b/reference/t-dbMatrix-method.html @@ -1,5 +1,5 @@ -Matrix Transpose — t,dbMatrix-method • dbMatrix +Matrix Transpose — t,dbMatrix-method • dbMatrix Skip to contents @@ -46,7 +46,7 @@

Matrix Transpose

-

See ?base::t for more details.

+

Given a dbMatrix x, t returns the transpose of x.

@@ -55,8 +55,21 @@

Usage t(x)

+
+

Arguments

+ + +
x
+

dbMatrix object

+ +
+
+

Value

+

dbMatrix object

+
- + diff --git a/reference/to_ijx_disk.html b/reference/to_ijx_disk.html index 03f128a..89c65c2 100644 --- a/reference/to_ijx_disk.html +++ b/reference/to_ijx_disk.html @@ -80,7 +80,7 @@

Value

diff --git a/search.json b/search.json index a81793e..917c914 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":null,"dir":"","previous_headings":"","what":"GNU General Public License","title":"GNU General Public License","text":"Version 3, 29 June 2007Copyright © 2007 Free Software Foundation, Inc.  Everyone permitted copy distribute verbatim copies license document, changing allowed.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"preamble","dir":"","previous_headings":"","what":"Preamble","title":"GNU General Public License","text":"GNU General Public License free, copyleft license software kinds works. licenses software practical works designed take away freedom share change works. contrast, GNU General Public License intended guarantee freedom share change versions program–make sure remains free software users. , Free Software Foundation, use GNU General Public License software; applies also work released way authors. can apply programs, . speak free software, referring freedom, price. General Public Licenses designed make sure freedom distribute copies free software (charge wish), receive source code can get want , can change software use pieces new free programs, know can things. protect rights, need prevent others denying rights asking surrender rights. Therefore, certain responsibilities distribute copies software, modify : responsibilities respect freedom others. example, distribute copies program, whether gratis fee, must pass recipients freedoms received. must make sure , , receive can get source code. must show terms know rights. Developers use GNU GPL protect rights two steps: (1) assert copyright software, (2) offer License giving legal permission copy, distribute /modify . developers’ authors’ protection, GPL clearly explains warranty free software. users’ authors’ sake, GPL requires modified versions marked changed, problems attributed erroneously authors previous versions. devices designed deny users access install run modified versions software inside , although manufacturer can . fundamentally incompatible aim protecting users’ freedom change software. systematic pattern abuse occurs area products individuals use, precisely unacceptable. Therefore, designed version GPL prohibit practice products. problems arise substantially domains, stand ready extend provision domains future versions GPL, needed protect freedom users. Finally, every program threatened constantly software patents. States allow patents restrict development use software general-purpose computers, , wish avoid special danger patents applied free program make effectively proprietary. prevent , GPL assures patents used render program non-free. precise terms conditions copying, distribution modification follow.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_0-definitions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"0. Definitions","title":"GNU General Public License","text":"“License” refers version 3 GNU General Public License. “Copyright” also means copyright-like laws apply kinds works, semiconductor masks. “Program” refers copyrightable work licensed License. licensee addressed “”. “Licensees” “recipients” may individuals organizations. “modify” work means copy adapt part work fashion requiring copyright permission, making exact copy. resulting work called “modified version” earlier work work “based ” earlier work. “covered work” means either unmodified Program work based Program. “propagate” work means anything , without permission, make directly secondarily liable infringement applicable copyright law, except executing computer modifying private copy. Propagation includes copying, distribution (without modification), making available public, countries activities well. “convey” work means kind propagation enables parties make receive copies. Mere interaction user computer network, transfer copy, conveying. interactive user interface displays “Appropriate Legal Notices” extent includes convenient prominently visible feature (1) displays appropriate copyright notice, (2) tells user warranty work (except extent warranties provided), licensees may convey work License, view copy License. interface presents list user commands options, menu, prominent item list meets criterion.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_1-source-code","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"1. Source Code","title":"GNU General Public License","text":"“source code” work means preferred form work making modifications . “Object code” means non-source form work. “Standard Interface” means interface either official standard defined recognized standards body, , case interfaces specified particular programming language, one widely used among developers working language. “System Libraries” executable work include anything, work whole, () included normal form packaging Major Component, part Major Component, (b) serves enable use work Major Component, implement Standard Interface implementation available public source code form. “Major Component”, context, means major essential component (kernel, window system, ) specific operating system () executable work runs, compiler used produce work, object code interpreter used run . “Corresponding Source” work object code form means source code needed generate, install, (executable work) run object code modify work, including scripts control activities. However, include work’s System Libraries, general-purpose tools generally available free programs used unmodified performing activities part work. example, Corresponding Source includes interface definition files associated source files work, source code shared libraries dynamically linked subprograms work specifically designed require, intimate data communication control flow subprograms parts work. Corresponding Source need include anything users can regenerate automatically parts Corresponding Source. Corresponding Source work source code form work.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_2-basic-permissions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"2. Basic Permissions","title":"GNU General Public License","text":"rights granted License granted term copyright Program, irrevocable provided stated conditions met. License explicitly affirms unlimited permission run unmodified Program. output running covered work covered License output, given content, constitutes covered work. License acknowledges rights fair use equivalent, provided copyright law. may make, run propagate covered works convey, without conditions long license otherwise remains force. may convey covered works others sole purpose make modifications exclusively , provide facilities running works, provided comply terms License conveying material control copyright. thus making running covered works must exclusively behalf, direction control, terms prohibit making copies copyrighted material outside relationship . Conveying circumstances permitted solely conditions stated . Sublicensing allowed; section 10 makes unnecessary.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_3-protecting-users-legal-rights-from-anti-circumvention-law","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"3. Protecting Users’ Legal Rights From Anti-Circumvention Law","title":"GNU General Public License","text":"covered work shall deemed part effective technological measure applicable law fulfilling obligations article 11 WIPO copyright treaty adopted 20 December 1996, similar laws prohibiting restricting circumvention measures. convey covered work, waive legal power forbid circumvention technological measures extent circumvention effected exercising rights License respect covered work, disclaim intention limit operation modification work means enforcing, work’s users, third parties’ legal rights forbid circumvention technological measures.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_4-conveying-verbatim-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"4. Conveying Verbatim Copies","title":"GNU General Public License","text":"may convey verbatim copies Program’s source code receive , medium, provided conspicuously appropriately publish copy appropriate copyright notice; keep intact notices stating License non-permissive terms added accord section 7 apply code; keep intact notices absence warranty; give recipients copy License along Program. may charge price price copy convey, may offer support warranty protection fee.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_5-conveying-modified-source-versions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"5. Conveying Modified Source Versions","title":"GNU General Public License","text":"may convey work based Program, modifications produce Program, form source code terms section 4, provided also meet conditions: ) work must carry prominent notices stating modified , giving relevant date. b) work must carry prominent notices stating released License conditions added section 7. requirement modifies requirement section 4 “keep intact notices”. c) must license entire work, whole, License anyone comes possession copy. License therefore apply, along applicable section 7 additional terms, whole work, parts, regardless packaged. License gives permission license work way, invalidate permission separately received . d) work interactive user interfaces, must display Appropriate Legal Notices; however, Program interactive interfaces display Appropriate Legal Notices, work need make . compilation covered work separate independent works, nature extensions covered work, combined form larger program, volume storage distribution medium, called “aggregate” compilation resulting copyright used limit access legal rights compilation’s users beyond individual works permit. Inclusion covered work aggregate cause License apply parts aggregate.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_6-conveying-non-source-forms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"6. Conveying Non-Source Forms","title":"GNU General Public License","text":"may convey covered work object code form terms sections 4 5, provided also convey machine-readable Corresponding Source terms License, one ways: ) Convey object code , embodied , physical product (including physical distribution medium), accompanied Corresponding Source fixed durable physical medium customarily used software interchange. b) Convey object code , embodied , physical product (including physical distribution medium), accompanied written offer, valid least three years valid long offer spare parts customer support product model, give anyone possesses object code either (1) copy Corresponding Source software product covered License, durable physical medium customarily used software interchange, price reasonable cost physically performing conveying source, (2) access copy Corresponding Source network server charge. c) Convey individual copies object code copy written offer provide Corresponding Source. alternative allowed occasionally noncommercially, received object code offer, accord subsection 6b. d) Convey object code offering access designated place (gratis charge), offer equivalent access Corresponding Source way place charge. need require recipients copy Corresponding Source along object code. place copy object code network server, Corresponding Source may different server (operated third party) supports equivalent copying facilities, provided maintain clear directions next object code saying find Corresponding Source. Regardless server hosts Corresponding Source, remain obligated ensure available long needed satisfy requirements. e) Convey object code using peer--peer transmission, provided inform peers object code Corresponding Source work offered general public charge subsection 6d. separable portion object code, whose source code excluded Corresponding Source System Library, need included conveying object code work. “User Product” either (1) “consumer product”, means tangible personal property normally used personal, family, household purposes, (2) anything designed sold incorporation dwelling. determining whether product consumer product, doubtful cases shall resolved favor coverage. particular product received particular user, “normally used” refers typical common use class product, regardless status particular user way particular user actually uses, expects expected use, product. product consumer product regardless whether product substantial commercial, industrial non-consumer uses, unless uses represent significant mode use product. “Installation Information” User Product means methods, procedures, authorization keys, information required install execute modified versions covered work User Product modified version Corresponding Source. information must suffice ensure continued functioning modified object code case prevented interfered solely modification made. convey object code work section , , specifically use , User Product, conveying occurs part transaction right possession use User Product transferred recipient perpetuity fixed term (regardless transaction characterized), Corresponding Source conveyed section must accompanied Installation Information. requirement apply neither third party retains ability install modified object code User Product (example, work installed ROM). requirement provide Installation Information include requirement continue provide support service, warranty, updates work modified installed recipient, User Product modified installed. Access network may denied modification materially adversely affects operation network violates rules protocols communication across network. Corresponding Source conveyed, Installation Information provided, accord section must format publicly documented (implementation available public source code form), must require special password key unpacking, reading copying.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_7-additional-terms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"7. Additional Terms","title":"GNU General Public License","text":"“Additional permissions” terms supplement terms License making exceptions one conditions. Additional permissions applicable entire Program shall treated though included License, extent valid applicable law. additional permissions apply part Program, part may used separately permissions, entire Program remains governed License without regard additional permissions. convey copy covered work, may option remove additional permissions copy, part . (Additional permissions may written require removal certain cases modify work.) may place additional permissions material, added covered work, can give appropriate copyright permission. Notwithstanding provision License, material add covered work, may (authorized copyright holders material) supplement terms License terms: ) Disclaiming warranty limiting liability differently terms sections 15 16 License; b) Requiring preservation specified reasonable legal notices author attributions material Appropriate Legal Notices displayed works containing ; c) Prohibiting misrepresentation origin material, requiring modified versions material marked reasonable ways different original version; d) Limiting use publicity purposes names licensors authors material; e) Declining grant rights trademark law use trade names, trademarks, service marks; f) Requiring indemnification licensors authors material anyone conveys material (modified versions ) contractual assumptions liability recipient, liability contractual assumptions directly impose licensors authors. non-permissive additional terms considered “restrictions” within meaning section 10. Program received , part , contains notice stating governed License along term restriction, may remove term. license document contains restriction permits relicensing conveying License, may add covered work material governed terms license document, provided restriction survive relicensing conveying. add terms covered work accord section, must place, relevant source files, statement additional terms apply files, notice indicating find applicable terms. Additional terms, permissive non-permissive, may stated form separately written license, stated exceptions; requirements apply either way.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_8-termination","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"8. Termination","title":"GNU General Public License","text":"may propagate modify covered work except expressly provided License. attempt otherwise propagate modify void, automatically terminate rights License (including patent licenses granted third paragraph section 11). However, cease violation License, license particular copyright holder reinstated () provisionally, unless copyright holder explicitly finally terminates license, (b) permanently, copyright holder fails notify violation reasonable means prior 60 days cessation. Moreover, license particular copyright holder reinstated permanently copyright holder notifies violation reasonable means, first time received notice violation License (work) copyright holder, cure violation prior 30 days receipt notice. Termination rights section terminate licenses parties received copies rights License. rights terminated permanently reinstated, qualify receive new licenses material section 10.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_9-acceptance-not-required-for-having-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"9. Acceptance Not Required for Having Copies","title":"GNU General Public License","text":"required accept License order receive run copy Program. Ancillary propagation covered work occurring solely consequence using peer--peer transmission receive copy likewise require acceptance. However, nothing License grants permission propagate modify covered work. actions infringe copyright accept License. Therefore, modifying propagating covered work, indicate acceptance License .","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_10-automatic-licensing-of-downstream-recipients","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"10. Automatic Licensing of Downstream Recipients","title":"GNU General Public License","text":"time convey covered work, recipient automatically receives license original licensors, run, modify propagate work, subject License. responsible enforcing compliance third parties License. “entity transaction” transaction transferring control organization, substantially assets one, subdividing organization, merging organizations. propagation covered work results entity transaction, party transaction receives copy work also receives whatever licenses work party’s predecessor interest give previous paragraph, plus right possession Corresponding Source work predecessor interest, predecessor can get reasonable efforts. may impose restrictions exercise rights granted affirmed License. example, may impose license fee, royalty, charge exercise rights granted License, may initiate litigation (including cross-claim counterclaim lawsuit) alleging patent claim infringed making, using, selling, offering sale, importing Program portion .","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_11-patents","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"11. Patents","title":"GNU General Public License","text":"“contributor” copyright holder authorizes use License Program work Program based. work thus licensed called contributor’s “contributor version”. contributor’s “essential patent claims” patent claims owned controlled contributor, whether already acquired hereafter acquired, infringed manner, permitted License, making, using, selling contributor version, include claims infringed consequence modification contributor version. purposes definition, “control” includes right grant patent sublicenses manner consistent requirements License. contributor grants non-exclusive, worldwide, royalty-free patent license contributor’s essential patent claims, make, use, sell, offer sale, import otherwise run, modify propagate contents contributor version. following three paragraphs, “patent license” express agreement commitment, however denominated, enforce patent (express permission practice patent covenant sue patent infringement). “grant” patent license party means make agreement commitment enforce patent party. convey covered work, knowingly relying patent license, Corresponding Source work available anyone copy, free charge terms License, publicly available network server readily accessible means, must either (1) cause Corresponding Source available, (2) arrange deprive benefit patent license particular work, (3) arrange, manner consistent requirements License, extend patent license downstream recipients. “Knowingly relying” means actual knowledge , patent license, conveying covered work country, recipient’s use covered work country, infringe one identifiable patents country reason believe valid. , pursuant connection single transaction arrangement, convey, propagate procuring conveyance , covered work, grant patent license parties receiving covered work authorizing use, propagate, modify convey specific copy covered work, patent license grant automatically extended recipients covered work works based . patent license “discriminatory” include within scope coverage, prohibits exercise , conditioned non-exercise one rights specifically granted License. may convey covered work party arrangement third party business distributing software, make payment third party based extent activity conveying work, third party grants, parties receive covered work , discriminatory patent license () connection copies covered work conveyed (copies made copies), (b) primarily connection specific products compilations contain covered work, unless entered arrangement, patent license granted, prior 28 March 2007. Nothing License shall construed excluding limiting implied license defenses infringement may otherwise available applicable patent law.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_12-no-surrender-of-others-freedom","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"12. No Surrender of Others’ Freedom","title":"GNU General Public License","text":"conditions imposed (whether court order, agreement otherwise) contradict conditions License, excuse conditions License. convey covered work satisfy simultaneously obligations License pertinent obligations, consequence may convey . example, agree terms obligate collect royalty conveying convey Program, way satisfy terms License refrain entirely conveying Program.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_13-use-with-the-gnu-affero-general-public-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"13. Use with the GNU Affero General Public License","title":"GNU General Public License","text":"Notwithstanding provision License, permission link combine covered work work licensed version 3 GNU Affero General Public License single combined work, convey resulting work. terms License continue apply part covered work, special requirements GNU Affero General Public License, section 13, concerning interaction network apply combination .","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_14-revised-versions-of-this-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"14. Revised Versions of this License","title":"GNU General Public License","text":"Free Software Foundation may publish revised /new versions GNU General Public License time time. new versions similar spirit present version, may differ detail address new problems concerns. version given distinguishing version number. Program specifies certain numbered version GNU General Public License “later version” applies , option following terms conditions either numbered version later version published Free Software Foundation. Program specify version number GNU General Public License, may choose version ever published Free Software Foundation. Program specifies proxy can decide future versions GNU General Public License can used, proxy’s public statement acceptance version permanently authorizes choose version Program. Later license versions may give additional different permissions. However, additional obligations imposed author copyright holder result choosing follow later version.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_15-disclaimer-of-warranty","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"15. Disclaimer of Warranty","title":"GNU General Public License","text":"WARRANTY PROGRAM, EXTENT PERMITTED APPLICABLE LAW. EXCEPT OTHERWISE STATED WRITING COPYRIGHT HOLDERS /PARTIES PROVIDE PROGRAM “” WITHOUT WARRANTY KIND, EITHER EXPRESSED IMPLIED, INCLUDING, LIMITED , IMPLIED WARRANTIES MERCHANTABILITY FITNESS PARTICULAR PURPOSE. ENTIRE RISK QUALITY PERFORMANCE PROGRAM . PROGRAM PROVE DEFECTIVE, ASSUME COST NECESSARY SERVICING, REPAIR CORRECTION.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_16-limitation-of-liability","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"16. Limitation of Liability","title":"GNU General Public License","text":"EVENT UNLESS REQUIRED APPLICABLE LAW AGREED WRITING COPYRIGHT HOLDER, PARTY MODIFIES /CONVEYS PROGRAM PERMITTED , LIABLE DAMAGES, INCLUDING GENERAL, SPECIAL, INCIDENTAL CONSEQUENTIAL DAMAGES ARISING USE INABILITY USE PROGRAM (INCLUDING LIMITED LOSS DATA DATA RENDERED INACCURATE LOSSES SUSTAINED THIRD PARTIES FAILURE PROGRAM OPERATE PROGRAMS), EVEN HOLDER PARTY ADVISED POSSIBILITY DAMAGES.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_17-interpretation-of-sections-15-and-16","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"17. Interpretation of Sections 15 and 16","title":"GNU General Public License","text":"disclaimer warranty limitation liability provided given local legal effect according terms, reviewing courts shall apply local law closely approximates absolute waiver civil liability connection Program, unless warranty assumption liability accompanies copy Program return fee. END TERMS CONDITIONS","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"how-to-apply-these-terms-to-your-new-programs","dir":"","previous_headings":"","what":"How to Apply These Terms to Your New Programs","title":"GNU General Public License","text":"develop new program, want greatest possible use public, best way achieve make free software everyone can redistribute change terms. , attach following notices program. safest attach start source file effectively state exclusion warranty; file least “copyright” line pointer full notice found. Also add information contact electronic paper mail. program terminal interaction, make output short notice like starts interactive mode: hypothetical commands show w show c show appropriate parts General Public License. course, program’s commands might different; GUI interface, use “box”. also get employer (work programmer) school, , sign “copyright disclaimer” program, necessary. information , apply follow GNU GPL, see . GNU General Public License permit incorporating program proprietary programs. program subroutine library, may consider useful permit linking proprietary applications library. want , use GNU Lesser General Public License instead License. first, please read .","code":" Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free software, and you are welcome to redistribute it under certain conditions; type 'show c' for details."},{"path":"https://drieslab.github.io/dbMatrix/LICENSE-text.html","id":null,"dir":"","previous_headings":"","what":"License","title":"License","text":"dbMatrix dual-licensed GNU General Public License version 3 (GPLv3) MIT License. Copyright (c) [2024] [dbMatrix authors]","code":""},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"dbmatrix-arithmetic","dir":"Articles","previous_headings":"","what":"dbMatrix arithmetic","title":"Arithmetic","text":"dbMatrix objects support Arith Ops operations. demonstrate perform arithmetic operations dbSparseMatrix objects. Note: operations zero values yet supported dbMatrix objects. addition, certain arithmetic operations dbMatrix objects also yet supported. welcome user feedback reporting issues Github page.","code":""},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"get-test-data","dir":"Articles","previous_headings":"dbMatrix arithmetic","what":"Get test data","title":"Arithmetic","text":"test file dgCMatrixor compressed sparse column matrix representing single cell gene expression matrix. file data directory package. Let’s load .rds file preview object. file contains 634 rows 624 columns. rows represent gene names columns represent cell names. values integers represent number times gene detected cell. Like single-cell RNA-seq data, matrix sparse.","code":"dgc <- readRDS(\"../data/dgc.rds\") dplyr::glimpse(dgc) #> Loading required package: Matrix #> Formal class 'dgCMatrix' [package \"Matrix\"] with 6 slots #> ..@ i : int [1:170625] 0 6 10 17 21 22 25 31 33 35 ... #> ..@ p : int [1:625] 0 227 510 758 980 1293 1631 1976 2223 2434 ... #> ..@ Dim : int [1:2] 634 624 #> ..@ Dimnames:List of 2 #> .. ..$ : chr [1:634] \"Gna12\" \"Ccnd2\" \"Btbd17\" \"Sox9\" ... #> .. ..$ : chr [1:624] \"AAAGGGATGTAGCAAG-1\" \"AAATGGCATGTCTTGT-1\" \"AAATGGTCAATGTGCC-1\" \"AAATTAACGGGTAGCT-1\" ... #> ..@ x : num [1:170625] 1 1 1 1 1 1 6 2 1 1 ... #> ..@ factors : list()"},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"create-a-dbmatrix-object","dir":"Articles","previous_headings":"dbMatrix arithmetic","what":"Create a dbMatrix object","title":"Arithmetic","text":"Let’s create dbSparseMatrix object dgc object.","code":"# Note: by default the constructor creates a dbMatrix object in-memory con <- DBI::dbConnect(duckdb::duckdb(), \":memory:\") dbsm <- dbMatrix(value = dgc, con = con, name = 'visium', class = \"dbSparseMatrix\", overwrite = TRUE) # preview the object dbsm #> 634 x 624 matrix of class \"dbSparseMatrix\" #> [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] #> #> Gna12 1 2 1 1 9 1 3 5 3 . #> Ccnd2 . 1 1 . . 1 . 1 1 . #> Btbd17 . 1 1 1 . . 2 . . . #> #> ......suppressing 614 columns and 628 rows #> #> Gm19935 . 1 . . . . . . . . #> 9630013A20Rik . . . . . . . . . . #> 2900040C04Rik 1 . . . . . . . . 1"},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"scalar-arithmetic","dir":"Articles","previous_headings":"dbMatrix arithmetic","what":"Scalar Arithmetic","title":"Arithmetic","text":"dbMatrix emulates scalar arithmetic Matrix package. Note: Addition subtraction non-zero addends dbSparseMatrix results dbDenseMatrix.","code":"dbsm + 1 #> ℹ Densifying 'dbSparseMatrix' on the fly... #> 634 x 624 matrix of class \"dbDenseMatrix\" #> [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] #> #> Gna12 2 3 2 2 10 2 4 6 4 1 #> Ccnd2 1 2 2 1 1 2 1 2 2 1 #> Btbd17 1 2 2 2 1 1 3 1 1 1 #> #> ......suppressing 614 columns and 628 rows #> #> Gm19935 1 2 1 1 1 1 1 1 1 1 #> 9630013A20Rik 1 1 1 1 1 1 1 1 1 1 #> 2900040C04Rik 2 1 1 1 1 1 1 1 1 2 dbsm * 100 #> 634 x 624 matrix of class \"dbSparseMatrix\" #> [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] #> #> Gna12 100 200 100 100 900 100 300 500 300 . #> Ccnd2 . 100 100 . . 100 . 100 100 . #> Btbd17 . 100 100 100 . . 200 . . . #> #> ......suppressing 614 columns and 628 rows #> #> Gm19935 . 100 . . . . . . . . #> 9630013A20Rik . . . . . . . . . . #> 2900040C04Rik 100 . . . . . . . . 100"},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"matrix-arithmetic","dir":"Articles","previous_headings":"dbMatrix arithmetic","what":"Matrix Arithmetic","title":"Arithmetic","text":"dbMatrix also supports matrix arithmetic dbMatrix objects conformable.","code":"dbsm + dbsm #> 634 x 624 matrix of class \"dbSparseMatrix\" #> [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] #> #> Gna12 2 4 2 2 18 2 6 10 6 . #> Ccnd2 . 2 2 . . 2 . 2 2 . #> Btbd17 . 2 2 2 . . 4 . . . #> #> ......suppressing 614 columns and 628 rows #> #> Gm19935 . 2 . . . . . . . . #> 9630013A20Rik . . . . . . . . . . #> 2900040C04Rik 2 . . . . . . . . 2"},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"hadamard-product","dir":"Articles","previous_headings":"dbMatrix arithmetic > Matrix Multiplication","what":"Hadamard product","title":"Arithmetic","text":"","code":"dbsm * dbsm #> 634 x 624 matrix of class \"dbSparseMatrix\" #> [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] #> #> Gna12 1 4 1 1 81 1 9 25 9 . #> Ccnd2 . 1 1 . . 1 . 1 1 . #> Btbd17 . 1 1 1 . . 4 . . . #> #> ......suppressing 614 columns and 628 rows #> #> Gm19935 . 1 . . . . . . . . #> 9630013A20Rik . . . . . . . . . . #> 2900040C04Rik 1 . . . . . . . . 1"},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"matrix-product","dir":"Articles","previous_headings":"dbMatrix arithmetic > Matrix Multiplication","what":"Matrix product","title":"Arithmetic","text":"TODO","code":""},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"session-info","dir":"Articles","previous_headings":"dbMatrix arithmetic","what":"Session Info","title":"Arithmetic","text":"","code":"sessionInfo() #> R version 4.4.1 (2024-06-14) #> Platform: x86_64-pc-linux-gnu #> Running under: Ubuntu 22.04.4 LTS #> #> Matrix products: default #> BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 #> LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so; LAPACK version 3.10.0 #> #> locale: #> [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8 #> [4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8 #> [7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C #> [10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C #> #> time zone: UTC #> tzcode source: system (glibc) #> #> attached base packages: #> [1] stats graphics grDevices utils datasets methods base #> #> other attached packages: #> [1] Matrix_1.7-0 dbMatrix_0.0.0.9022 #> #> loaded via a namespace (and not attached): #> [1] bit_4.0.5 jsonlite_1.8.8 crayon_1.5.3 #> [4] dplyr_1.1.4 compiler_4.4.1 tidyselect_1.2.1 #> [7] blob_1.2.4 jquerylib_0.1.4 systemfonts_1.1.0 #> [10] textshaping_0.4.0 yaml_2.3.10 fastmap_1.2.0 #> [13] lattice_0.22-6 R6_2.5.1 generics_0.1.3 #> [16] knitr_1.48 tibble_3.2.1 desc_1.4.3 #> [19] MatrixGenerics_1.16.0 DBI_1.2.3 bslib_0.8.0 #> [22] pillar_1.9.0 rlang_1.1.4 utf8_1.2.4 #> [25] cachem_1.1.0 xfun_0.46 fs_1.6.4 #> [28] sass_0.4.9 bit64_4.0.5 cli_3.6.3 #> [31] withr_3.0.1 pkgdown_2.1.0 magrittr_2.0.3 #> [34] digest_0.6.36 grid_4.4.1 dbplyr_2.5.0 #> [37] lifecycle_1.0.4 vctrs_0.6.5 evaluate_0.24.0 #> [40] glue_1.7.0 data.table_1.15.4 duckdb_1.0.0-2 #> [43] ragg_1.3.2 fansi_1.0.6 purrr_1.0.2 #> [46] rmarkdown_2.27 matrixStats_1.3.0 tools_4.4.1 #> [49] pkgconfig_2.0.3 htmltools_0.5.8.1"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Operations","text":"vignette introduces generic functions operations supported dbMatrix.","code":""},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"loading-library","dir":"Articles","previous_headings":"","what":"Loading library","title":"Operations","text":"","code":"library(dbMatrix) library(Matrix)"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"dbmatrix-generics","dir":"Articles","previous_headings":"","what":"dbMatrix generics","title":"Operations","text":"dbMatrix objects currently support several statistical matrix operations listed support coming soon. ✅ - implemented 🟧 - yet implemented","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"get-test-data","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"Get test data","title":"Operations","text":"test file dgCMatrixor compressed sparse column matrix representing single cell gene expression matrix. file data directory package. Let’s load .rds file preview object.","code":"dgc <- readRDS(\"../data/dgc.rds\") dplyr::glimpse(dgc) ## Formal class 'dgCMatrix' [package \"Matrix\"] with 6 slots ## ..@ i : int [1:170625] 0 6 10 17 21 22 25 31 33 35 ... ## ..@ p : int [1:625] 0 227 510 758 980 1293 1631 1976 2223 2434 ... ## ..@ Dim : int [1:2] 634 624 ## ..@ Dimnames:List of 2 ## .. ..$ : chr [1:634] \"Gna12\" \"Ccnd2\" \"Btbd17\" \"Sox9\" ... ## .. ..$ : chr [1:624] \"AAAGGGATGTAGCAAG-1\" \"AAATGGCATGTCTTGT-1\" \"AAATGGTCAATGTGCC-1\" \"AAATTAACGGGTAGCT-1\" ... ## ..@ x : num [1:170625] 1 1 1 1 1 1 6 2 1 1 ... ## ..@ factors : list() # create dbSparseMatrix from the same dgc con <- DBI::dbConnect(duckdb::duckdb(), \":memory:\") sparse <- dbMatrix(value = dgc, con = con, name = 'visium', class = \"dbSparseMatrix\", overwrite = TRUE) # preview # show function aims to emulate the show method for dgCMatrix head(sparse) ## 6 x 624 matrix of class \"dbSparseMatrix\" ## [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] ## ## Gna12 1 2 1 1 9 1 3 5 3 . ## [ reached getOption(\"max.print\") -- omitted 633 rows ]"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"transpose","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"transpose","title":"Operations","text":"","code":"dbMatrix::t(sparse) ## 624 x 634 matrix of class \"dbSparseMatrix\" ## [[ Colnames 'Gna12', 'Ccnd2', 'Btbd17' ... suppressing 628 ...'Gm19935', '9630013A20Rik', '2900040C04Rik' ]] ## ## AAAGGGATGTAGCAAG-1 1 . . . . . 1 . . . ## [ reached getOption(\"max.print\") -- omitted 5 rows ] ## NA ## ## ......suppressing 624 columns and 618 rows ## ## NA ## NA ## NA"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"colmeans","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"colMeans","title":"Operations","text":"","code":"dbMatrix::colMeans(sparse) ## AAAGGGATGTAGCAAG-1 AAATGGCATGTCTTGT-1 AAATGGTCAATGTGCC-1 AAATTAACGGGTAGCT-1 ## 0.7413249 1.3296530 1.1435331 0.8343849 ## AACAACTGGTAGTTGC-1 AACAGGAAATCGAATA-1 AACAGGATGGGCCGCG-1 AACCATGGGATCGCTA-1 ## 1.6135647 2.2129338 1.7223975 1.9022082 ## AACCCAGAGACGGAGA-1 AACCGAGCTTGGTCAT-1 ## 0.7397476 0.9258675 ## [ reached getOption(\"max.print\") -- omitted 614 entries ]"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"colsums","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"colSums","title":"Operations","text":"","code":"dbMatrix::colSums(sparse) ## AAAGGGATGTAGCAAG-1 AAATGGCATGTCTTGT-1 AAATGGTCAATGTGCC-1 AAATTAACGGGTAGCT-1 ## 470 843 725 529 ## AACAACTGGTAGTTGC-1 AACAGGAAATCGAATA-1 AACAGGATGGGCCGCG-1 AACCATGGGATCGCTA-1 ## 1023 1403 1092 1206 ## AACCCAGAGACGGAGA-1 AACCGAGCTTGGTCAT-1 ## 469 587 ## [ reached getOption(\"max.print\") -- omitted 614 entries ]"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"rowmeans","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"rowMeans","title":"Operations","text":"","code":"dbMatrix::rowMeans(sparse) ## Gna12 Ccnd2 Btbd17 Sox9 Sez6 Serpinf1 S100a6 Col1a1 ## 2.7179487 1.7323718 0.5528846 0.8766026 4.4679487 0.3092949 1.6522436 0.1185897 ## Vwf Esam ## 0.6346154 0.4391026 ## [ reached getOption(\"max.print\") -- omitted 624 entries ]"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"rowsums","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"rowSums","title":"Operations","text":"","code":"dbMatrix::rowSums(sparse) ## Gna12 Ccnd2 Btbd17 Sox9 Sez6 Serpinf1 S100a6 Col1a1 ## 1696 1081 345 547 2788 193 1031 74 ## Vwf Esam ## 396 274 ## [ reached getOption(\"max.print\") -- omitted 624 entries ]"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"dim","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"dim","title":"Operations","text":"","code":"dim(sparse) ## [1] 634 624 dim(dgc) ## [1] 634 624"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"check-results-are-equivalent","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"Check results are equivalent","title":"Operations","text":"","code":"all.equal(dbMatrix::colMeans(sparse), Matrix::colMeans(dgc)) ## [1] TRUE all.equal(dbMatrix::colSums(sparse), Matrix::colSums(dgc)) ## [1] TRUE all.equal(dbMatrix::rowMeans(sparse), Matrix::rowMeans(dgc)) ## [1] TRUE all.equal(dbMatrix::rowSums(sparse), Matrix::rowSums(dgc)) ## [1] TRUE"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"dbdensematrix-operations","dir":"Articles","previous_headings":"","what":"dbDenseMatrix Operations","title":"Operations","text":"","code":"# below is a convenience function to simulate a dbDenseMatrix dense = dbMatrix::sim_dbDenseMatrix() # preview dense ## 50 x 50 matrix of class \"dbDenseMatrix\" ## ## row1 1.37096 0.32193 1.20097 -0.0407 -2.00093 -1.09616 -0.00462 0.72417 ## ## row1 1.33491 -1.30382 ## ## ......suppressing 40 columns and 44 rows ## ## [ reached getOption(\"max.print\") -- omitted 5 rows ] ## NA ## NA"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"transpose-1","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"transpose","title":"Operations","text":"","code":"dbMatrix::t(dense) ## 50 x 50 matrix of class \"dbDenseMatrix\" ## [[ Colnames 'row1', 'row2', 'row3' ... suppressing 44 ...'row48', 'row49', 'row50' ]] ## ## col1 1.37096 -0.5647 0.36313 0.63286 0.40427 -0.10612 1.51152 -0.09466 ## ## col1 2.01842 -0.06271 ## ## ......suppressing 40 columns and 44 rows ## ## [ reached getOption(\"max.print\") -- omitted 5 rows ] ## NA ## NA"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"colmeans-1","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"colMeans","title":"Operations","text":"","code":"dbMatrix::colMeans(dense) ## col1 col2 col3 col4 col5 col6 ## -0.035671782 0.100701413 -0.151251089 -0.023716326 0.007939877 -0.028676220 ## col7 col8 col9 col10 ## -0.061541347 0.127414276 -0.119421148 -0.116239863 ## [ reached getOption(\"max.print\") -- omitted 40 entries ]"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"colsums-1","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"colSums","title":"Operations","text":"","code":"dbMatrix::colSums(dense) ## col1 col2 col3 col4 col5 col6 col7 ## -1.7835891 5.0350707 -7.5625544 -1.1858163 0.3969938 -1.4338110 -3.0770674 ## col8 col9 col10 ## 6.3707138 -5.9710574 -5.8119931 ## [ reached getOption(\"max.print\") -- omitted 40 entries ]"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"rowmeans-1","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"rowMeans","title":"Operations","text":"","code":"dbMatrix::rowMeans(dense) ## row1 row2 row3 row4 row5 row6 ## 0.053643638 0.002494642 0.031334034 0.093889009 -0.048311439 -0.047287825 ## row7 row8 row9 row10 ## 0.092209664 -0.023069981 0.096433464 -0.093495713 ## [ reached getOption(\"max.print\") -- omitted 40 entries ]"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"rowsums-1","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"rowSums","title":"Operations","text":"","code":"dbMatrix::rowSums(dense) ## row1 row2 row3 row4 row5 row6 row7 ## 2.6821819 0.1247321 1.5667017 4.6944505 -2.4155720 -2.3643912 4.6104832 ## row8 row9 row10 ## -1.1534990 4.8216732 -4.6747857 ## [ reached getOption(\"max.print\") -- omitted 40 entries ]"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"mean","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"mean","title":"Operations","text":"","code":"dbMatrix::mean(dense) ## [1] -0.009673541"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"dim-1","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"dim","title":"Operations","text":"","code":"dim(dense) ## [1] 50 50"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"session-info","dir":"Articles","previous_headings":"","what":"Session Info","title":"Operations","text":"","code":"sessionInfo() ## R version 4.4.1 (2024-06-14) ## Platform: x86_64-pc-linux-gnu ## Running under: Ubuntu 22.04.4 LTS ## ## Matrix products: default ## BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 ## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so; LAPACK version 3.10.0 ## ## locale: ## [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8 ## [4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8 ## [7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C ## [10] LC_TELEPHONE=C ## [ reached getOption(\"max.print\") -- omitted 2 entries ] ## ## time zone: UTC ## tzcode source: system (glibc) ## ## attached base packages: ## [1] stats graphics grDevices utils datasets methods base ## ## other attached packages: ## [1] Matrix_1.7-0 dbMatrix_0.0.0.9022 ## ## loaded via a namespace (and not attached): ## [1] jsonlite_1.8.8 crayon_1.5.3 dplyr_1.1.4 compiler_4.4.1 ## [5] tidyselect_1.2.1 blob_1.2.4 jquerylib_0.1.4 systemfonts_1.1.0 ## [9] textshaping_0.4.0 yaml_2.3.10 ## [ reached getOption(\"max.print\") -- omitted 38 entries ]"},{"path":"https://drieslab.github.io/dbMatrix/articles/overview.html","id":"dbmatrix","dir":"Articles","previous_headings":"","what":"dbMatrix","title":"Overview","text":"dbMatrix core package dbverse library inherits dbData base class consists two subclasses, dbSparseMatrix dbDenseMatrix. dbMatrix objects emulate -memory dense sparse matrices embedded database powered DuckDB.","code":""},{"path":"https://drieslab.github.io/dbMatrix/articles/overview.html","id":"dbsparsematrix","dir":"Articles","previous_headings":"","what":"dbSparseMatrix","title":"Overview","text":"Sparse matrices represented triplet vectors , j, x numerical vectors. j refer row column indices, respectively, specific x values counts. Note: j vectors one-based following conventions Matrix R package TSparseMatrix class. dbSparseMatrix class stores triplet vector representation associated dimension names dimensions available. none provided, automatically generated factors (enums) row# col# labels rownames colnames, respectively. dbSparseMatrix class contain zeros triplet vector representation. Zero values inferred based provided dimensions. Support compressed sparse column matrices dgCMatrix class Matrix R package currently implemented. information sparse matrices, see wiki article .","code":""},{"path":"https://drieslab.github.io/dbMatrix/articles/overview.html","id":"dbdensematrix","dir":"Articles","previous_headings":"","what":"dbDenseMatrix","title":"Overview","text":"use approach dbSparseMatrix represent dense matrix triplet , j, x vector. difference dbDenseMatrix class consists values matrix, including zeros.","code":""},{"path":"https://drieslab.github.io/dbMatrix/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Edward C. Ruiz. Author, maintainer. Jiaji George Chen. Author. Ruben Dries. Author.","code":""},{"path":"https://drieslab.github.io/dbMatrix/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"C. Ruiz E, George Chen J, Dries R (2024). dbMatrix: dbMatrix. R package version 0.0.0.9022, https://drieslab.github.io/dbMatrix/.","code":"@Manual{, title = {dbMatrix: dbMatrix}, author = {Edward {C. Ruiz} and Jiaji {George Chen} and Ruben Dries}, year = {2024}, note = {R package version 0.0.0.9022}, url = {https://drieslab.github.io/dbMatrix/}, }"},{"path":"https://drieslab.github.io/dbMatrix/index.html","id":"dbmatrix","dir":"","previous_headings":"","what":"dbMatrix","title":"dbMatrix","text":"dbMatrix core package dbverse library. goal dbMatrix support larger--memory matrix computations. Note: Work progress! Bugs unexpected behavior likely occur. welcome user feedback reporting issues Github page.","code":""},{"path":"https://drieslab.github.io/dbMatrix/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"dbMatrix","text":"can install development version dbMatrix Github like :","code":"# install.packages(\"pak\", repos = sprintf(\"https://r-lib.github.io/p/pak/stable/%s/%s/%s\", .Platform$pkgType, R.Version()$os, R.Version()$arch)) pak::pak(\"drieslab/dbMatrix\")"},{"path":"https://drieslab.github.io/dbMatrix/reference/colTypes.html","id":null,"dir":"Reference","previous_headings":"","what":"Return the column types of a `dbMatrix` object — colTypes,dbMatrix-method","title":"Return the column types of a `dbMatrix` object — colTypes,dbMatrix-method","text":"Return column types `dbMatrix` object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/colTypes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return the column types of a `dbMatrix` object — colTypes,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' colTypes(x, ...)"},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a sparse or dense dbMatrix objects — dbMatrix","title":"Create a sparse or dense dbMatrix objects — dbMatrix","text":"Create S4 dbMatrix object sparse dense triplet vector format.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a sparse or dense dbMatrix objects — dbMatrix","text":"","code":"dbMatrix( value, class = NULL, con = NULL, overwrite = FALSE, name = \"dbMatrix\", dims = NULL, dim_names = NULL, mtx_rowname_file_path, mtx_rowname_col_idx = 1, mtx_colname_file_path, mtx_colname_col_idx = 1, ... )"},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a sparse or dense dbMatrix objects — dbMatrix","text":"value data added database. See details supported data types (required) class class dbMatrix: dbDenseMatrix dbSparseMatrix (required) con DBI duckdb connection object (required) overwrite whether overwrite table already exists database (required) name table name assign within database (required, default: \"dbMatrix\") dims dimensions matrix (optional: [int, int]) dim_names dimension names matrix (optional: list(enum, enum)) mtx_rowname_file_path path .mtx rowname file read (optional) database. default, header assumed. mtx_rowname_col_idx column index row name file (optional) mtx_colname_file_path path .mtx colname file read database. default, header assumed. (optional) mtx_colname_col_idx column index column name file (optional) ... additional params pass","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a sparse or dense dbMatrix objects — dbMatrix","text":"function reads data pre-existing DuckDB database. Supported value data types: dgCMatrix -memory sparse matrix Matrix package dgTMatrix -memory triplet vector COO matrix matrix -memory dense matrix base R .mtx Path .mtx file .csv Path .csv file tbl_duckdb_connection Table DuckDB database ijx format existing dbMatrix object. dims dim_names must specified value tbl_duckdb_connection.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a sparse or dense dbMatrix objects — dbMatrix","text":"","code":"dgc = readRDS(system.file(\"data\", \"dgc.rds\", package = \"dbMatrix\")) #> Loading required package: Matrix con <- DBI::dbConnect(duckdb::duckdb(), \":memory:\") dbSparse <- dbMatrix( value = dgc, con = con, name = \"sparse_matrix\", class = \"dbSparseMatrix\", overwrite = TRUE ) dbSparse #> 634 x 624 matrix of class \"dbSparseMatrix\" #> [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] #> #> Gna12 1 2 1 1 9 1 3 5 3 . #> Ccnd2 . 1 1 . . 1 . 1 1 . #> Btbd17 . 1 1 1 . . 2 . . . #> #> ......suppressing 614 columns and 628 rows #> #> Gm19935 . 1 . . . . . . . . #> 9630013A20Rik . . . . . . . . . . #> 2900040C04Rik 1 . . . . . . . . 1"},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix_from_tbl.html","id":null,"dir":"Reference","previous_headings":"","what":"dbMatrix_from_tbl — dbMatrix_from_tbl","title":"dbMatrix_from_tbl — dbMatrix_from_tbl","text":"Construcst dbSparseMatrix object tbl_duckdb_connection object.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix_from_tbl.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"dbMatrix_from_tbl — dbMatrix_from_tbl","text":"","code":"dbMatrix_from_tbl( tbl, rownames_colName, colnames_colName, name = \"dbMatrix\", overwrite = FALSE )"},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix_from_tbl.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"dbMatrix_from_tbl — dbMatrix_from_tbl","text":"tbl tbl_duckdb_connection table DuckDB database long format rownames_colName character column name rownames tbl (required) colnames_colName character column name colnames tbl (required) name table name assign within database (required, default: \"dbMatrix\") overwrite whether overwrite table already exists database (required) con DBI duckdb connection object (required)","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix_from_tbl.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"dbMatrix_from_tbl — dbMatrix_from_tbl","text":"`dbMatrix` object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix_from_tbl.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"dbMatrix_from_tbl — dbMatrix_from_tbl","text":"tbl_duckdb_connection object must contain dimension names.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dim-dbMatrix-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Dimensions of an Object — dim,dbMatrix-method","title":"Dimensions of an Object — dim,dbMatrix-method","text":"See ?base::dim details.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dim-dbMatrix-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Dimensions of an Object — dim,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' dim(x)"},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_con.html","id":null,"dir":"Reference","previous_headings":"","what":"Input validation for conn arg — .check_con","title":"Input validation for conn arg — .check_con","text":"Input validation conn arg","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_con.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Input validation for conn arg — .check_con","text":"","code":".check_con(conn)"},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_con.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Input validation for conn arg — .check_con","text":"conn tbl_duckdb_connection object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_name.html","id":null,"dir":"Reference","previous_headings":"","what":"Input validation for name arg — .check_name","title":"Input validation for name arg — .check_name","text":"Input validation name arg","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_name.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Input validation for name arg — .check_name","text":"","code":".check_name(name)"},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_overwrite.html","id":null,"dir":"Reference","previous_headings":"","what":"Input validation for overwrite arg — .check_overwrite","title":"Input validation for overwrite arg — .check_overwrite","text":"Input validation overwrite arg","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_overwrite.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Input validation for overwrite arg — .check_overwrite","text":"","code":".check_overwrite(conn, overwrite, name, skip_value_check)"},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_value.html","id":null,"dir":"Reference","previous_headings":"","what":"Input validation for data arg — .check_value","title":"Input validation for data arg — .check_value","text":"Input validation data arg","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_value.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Input validation for data arg — .check_value","text":"","code":".check_value(value)"},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_value.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Input validation for data arg — .check_value","text":"x Matrix, matrix, tbl_duckdb_connection object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dim.html","id":null,"dir":"Reference","previous_headings":"","what":"get_MM_dim — get_MM_dim","title":"get_MM_dim — get_MM_dim","text":"Internal function read dimensions .mtx file","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dim.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"get_MM_dim — get_MM_dim","text":"","code":"get_MM_dim(mtx_file_path)"},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dim.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"get_MM_dim — get_MM_dim","text":"mtx_file_path path .mtx file read database","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dim.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"get_MM_dim — get_MM_dim","text":"integer vector dimensions","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dim.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"get_MM_dim — get_MM_dim","text":"Scans header mtx file (starting representing dimensions number nonzero values. Note: header size can vary depending .mtx file.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dimnames.html","id":null,"dir":"Reference","previous_headings":"","what":"get_MM_dimnames — get_MM_dimnames","title":"get_MM_dimnames — get_MM_dimnames","text":"Internal function read row column names .mtx file","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dimnames.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"get_MM_dimnames — get_MM_dimnames","text":"","code":"get_MM_dimnames( mtx_file_path, mtx_rowname_file_path, mtx_rowname_col_idx = 1, mtx_colname_file_path, mtx_colname_col_idx = 1, ... )"},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dimnames.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"get_MM_dimnames — get_MM_dimnames","text":"mtx_file_path path .mtx file read database mtx_rowname_file_path path .mtx rowname file read database. default, header assumed. mtx_rowname_col_idx column index row name file mtx_colname_file_path path .mtx colname file read database. default, header assumed. mtx_colname_col_idx column index column name file ... additional params pass data.table::fread","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dimnames.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"get_MM_dimnames — get_MM_dimnames","text":"list row column name character vectors","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dimnames.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"get_MM_dimnames — get_MM_dimnames","text":"Can used read row column names .mtx files. Note: files must contain header (colnames). mtx_rowname_col_idx mtx_colname_col_idx can used specify column index row column name files, respectively. default, first column used . TODO: Support reading rownames colnames.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_con.html","id":null,"dir":"Reference","previous_headings":"","what":"get_con — get_con","title":"get_con — get_con","text":"get_con","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_con.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"get_con — get_con","text":"","code":"get_con(dbMatrix)"},{"path":"https://drieslab.github.io/dbMatrix/reference/get_con.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"get_con — get_con","text":"dbMatrix","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_dbdir.html","id":null,"dir":"Reference","previous_headings":"","what":"get_dbdir — get_dbdir","title":"get_dbdir — get_dbdir","text":"get_dbdir","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_dbdir.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"get_dbdir — get_dbdir","text":"","code":"get_dbdir(dbMatrix)"},{"path":"https://drieslab.github.io/dbMatrix/reference/get_dbdir.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"get_dbdir — get_dbdir","text":"dbMatrix","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_tblName.html","id":null,"dir":"Reference","previous_headings":"","what":"get_tblName — get_tblName","title":"get_tblName — get_tblName","text":"get_tblName","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_tblName.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"get_tblName — get_tblName","text":"","code":"get_tblName(dbMatrix)"},{"path":"https://drieslab.github.io/dbMatrix/reference/get_tblName.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"get_tblName — get_tblName","text":"dbMatrix","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/head_tail.html","id":null,"dir":"Reference","previous_headings":"","what":"Return the First or Last Parts of an Object — head,dbMatrix-method","title":"Return the First or Last Parts of an Object — head,dbMatrix-method","text":"See ?utils::head details. See ?utils::tail details.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/head_tail.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return the First or Last Parts of an Object — head,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' head(x, n = 6L, ...) # S4 method for class 'dbMatrix' tail(x, n = 6L, ...)"},{"path":"https://drieslab.github.io/dbMatrix/reference/log-dbMatrix-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Logarithms and Exponentials — log,dbMatrix-method","title":"Logarithms and Exponentials — log,dbMatrix-method","text":"See ?base::log details.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/log-dbMatrix-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Logarithms and Exponentials — log,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' log(x, ...)"},{"path":"https://drieslab.github.io/dbMatrix/reference/map_ijx_dimnames.html","id":null,"dir":"Reference","previous_headings":"","what":"Map dimnames to i,j indices — map_ijx_dimnames","title":"Map dimnames to i,j indices — map_ijx_dimnames","text":"Map dimnames ,j indices","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/map_ijx_dimnames.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Map dimnames to i,j indices — map_ijx_dimnames","text":"","code":"map_ijx_dimnames(dbMatrix, colName_i, colName_j)"},{"path":"https://drieslab.github.io/dbMatrix/reference/map_ijx_dimnames.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Map dimnames to i,j indices — map_ijx_dimnames","text":"dbMatrix dbMatrix object colName_i name column rownames add database colName_j name column colnames add database default: 'FALSE'.'","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/map_ijx_dimnames.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Map dimnames to i,j indices — map_ijx_dimnames","text":"Constructs table database contains accompanying dimnames dbMatrix. resulting columns table: * (row index) * colName_i (rownames), * j (col index) * j_names (colnames) * x (counts ,j occcurences)","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/mean.html","id":null,"dir":"Reference","previous_headings":"","what":"Arithmetic Mean — mean,dbDenseMatrix-method","title":"Arithmetic Mean — mean,dbDenseMatrix-method","text":"See ?base::mean details. See ?base::mean details.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/mean.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Arithmetic Mean — mean,dbDenseMatrix-method","text":"","code":"# S4 method for class 'dbDenseMatrix' mean(x, ...) # S4 method for class 'dbSparseMatrix' mean(x, ...)"},{"path":"https://drieslab.github.io/dbMatrix/reference/nrow_ncol.html","id":null,"dir":"Reference","previous_headings":"","what":"The Number of Rows/Columns of an Array — nrow,dbMatrix-method","title":"The Number of Rows/Columns of an Array — nrow,dbMatrix-method","text":"See ?base::nrow details. See ?base::ncol details.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/nrow_ncol.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Number of Rows/Columns of an Array — nrow,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' nrow(x) # S4 method for class 'dbMatrix' ncol(x)"},{"path":"https://drieslab.github.io/dbMatrix/reference/precompute.html","id":null,"dir":"Reference","previous_headings":"","what":"Precompute a dbMatrix table in a database — precompute","title":"Precompute a dbMatrix table in a database — precompute","text":"Precomputes dbMatrix table specificied database connection. can speed operations involve breaking sparsity dbSparseMatrix, cases performing + - arithmetic operations. Need run .","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/precompute.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Precompute a dbMatrix table in a database — precompute","text":"","code":"precompute(conn, m, n, name, verbose = TRUE)"},{"path":"https://drieslab.github.io/dbMatrix/reference/precompute.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Precompute a dbMatrix table in a database — precompute","text":"conn duckdb database connection m number rows precomputed dbMatrix table n number columns precomputed dbMatrix table name name precomputed dbMatrix table created verbose logical, print progress messages. default: TRUE.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/precompute.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Precompute a dbMatrix table in a database — precompute","text":"tbl_dbi","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/precompute.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Precompute a dbMatrix table in a database — precompute","text":"num_rows num_cols parameters must exceed maximum row column indices dbMatrix order used densifying dbMatrix. params less maximum row column indices precomputed densification process fail. cases, run function larger n_rows num_cols, manually remove precomputed table set options(dbMatrix.precomp = NULL) R console.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/precompute.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Precompute a dbMatrix table in a database — precompute","text":"","code":"con = DBI::dbConnect(duckdb::duckdb(), \":memory:\") precompute(con = con , m = 100, n = 100, name = \"precomputed_table\") #> Error in precompute(con = con, m = 100, n = 100, name = \"precomputed_table\"): could not find function \"precompute\""},{"path":"https://drieslab.github.io/dbMatrix/reference/print_array.html","id":null,"dir":"Reference","previous_headings":"","what":"Generate array for pretty printing of matrix values — print_array","title":"Generate array for pretty printing of matrix values — print_array","text":"Generate array pretty printing matrix values","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/print_array.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Generate array for pretty printing of matrix values — print_array","text":"","code":"print_array( i = NULL, j = NULL, x = NULL, dims, rownames = rep(\"\", dims[1]), fill = \".\", digits = 5L )"},{"path":"https://drieslab.github.io/dbMatrix/reference/print_array.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Generate array for pretty printing of matrix values — print_array","text":", j, x matched vectors integers j, value x dims dimensions array (integer vector 2) fill fill character digits default = 5. numeric, round number digits","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/row_col_sums_means.html","id":null,"dir":"Reference","previous_headings":"","what":"Form Row and Column Sums and Means — rowSums,dbDenseMatrix-method","title":"Form Row and Column Sums and Means — rowSums,dbDenseMatrix-method","text":"See ?base::rowSums details. See ?base::rowSums details. See ?base::colSums details. See ?base::colSums details. See ?base::rowMeans details. See ?base::rowMeans details. See ?base::colMeans details. See ?base::colMeans details.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/row_col_sums_means.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Form Row and Column Sums and Means — rowSums,dbDenseMatrix-method","text":"","code":"# S4 method for class 'dbDenseMatrix' rowSums(x, na.rm = FALSE, dims = 1, ...) # S4 method for class 'dbSparseMatrix' rowSums(x, na.rm = FALSE, dims = 1, ...) # S4 method for class 'dbDenseMatrix' colSums(x, na.rm = FALSE, dims = 1, ...) # S4 method for class 'dbSparseMatrix' colSums(x, na.rm = FALSE, dims = 1, ...) # S4 method for class 'dbDenseMatrix' rowMeans(x, na.rm = FALSE, dims = 1, ...) # S4 method for class 'dbSparseMatrix' rowMeans(x, na.rm = FALSE, dims = 1, ...) # S4 method for class 'dbDenseMatrix' colMeans(x, na.rm = FALSE, dims = 1, ...) # S4 method for class 'dbSparseMatrix' colMeans(x, na.rm = FALSE, dims = 1, ...)"},{"path":"https://drieslab.github.io/dbMatrix/reference/save.html","id":null,"dir":"Reference","previous_headings":"","what":"Compute or save a dbMatrix to disk — save","title":"Compute or save a dbMatrix to disk — save","text":"Compute save dbMatrix disk","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/save.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Compute or save a dbMatrix to disk — save","text":"","code":"save(dbMatrix, name = \"\", overwrite = FALSE, ...)"},{"path":"https://drieslab.github.io/dbMatrix/reference/save.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Compute or save a dbMatrix to disk — save","text":"dbMatrix dbMatrix object name name table save disk overwrite whether overwrite table already exists database ... additional params pass description Saves dbMatrix table specified name dbMatrix connection. Note: Computing persist database \":memory:\".","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/save.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Compute or save a dbMatrix to disk — save","text":"may break functions rely existing table. TODO: sync dbMatrix constructor compute","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/save.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Compute or save a dbMatrix to disk — save","text":"","code":"dbm <- sim_dbSparseMatrix() compute(dbm, \"new_table\", overwrite = TRUE) #> Error in compute(dbm, \"new_table\", overwrite = TRUE): could not find function \"compute\""},{"path":"https://drieslab.github.io/dbMatrix/reference/sds.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculates the standard deviation for each row (column) of a matrix-like object — colSds,dbDenseMatrix-method","title":"Calculates the standard deviation for each row (column) of a matrix-like object — colSds,dbDenseMatrix-method","text":"See ?MatrixGenerics::colSds details. See ?MatrixGenerics::colSds details. See ?MatrixGenerics::rowSds details. See ?MatrixGenerics::rowSds details.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/sds.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculates the standard deviation for each row (column) of a matrix-like object — colSds,dbDenseMatrix-method","text":"","code":"# S4 method for class 'dbDenseMatrix' colSds( x, rows = NULL, cols = NULL, na.rm = FALSE, center = NULL, ..., useNames = TRUE ) # S4 method for class 'dbSparseMatrix' colSds( x, rows = NULL, cols = NULL, na.rm = FALSE, center = NULL, ..., useNames = TRUE ) # S4 method for class 'dbDenseMatrix' rowSds( x, rows = NULL, cols = NULL, na.rm = FALSE, center = NULL, ..., useNames = TRUE ) # S4 method for class 'dbSparseMatrix' rowSds( x, rows = NULL, cols = NULL, na.rm = FALSE, center = NULL, ..., useNames = TRUE )"},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":null,"dir":"Reference","previous_headings":"","what":"sim_dgc — sim_duckdb","title":"sim_dgc — sim_duckdb","text":"Simulate dbSparseMatrix memory Simulate dbDenseMatrix memory.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"sim_dgc — sim_duckdb","text":"","code":"sim_duckdb(value = datasets::iris, name = \"test\", con = NULL, memory = TRUE) sim_dgc(num_rows = 50, num_cols = 50, n_vals = 50) sim_denseMat(num_rows = 50, num_cols = 50) sim_ijx_matrix(mat_type = NULL, num_rows = 50, num_cols = 50, seed_num = 42) sim_dbSparseMatrix( num_rows = 50, num_cols = 50, seed_num = 42, name = \"sparse_test\", memory = FALSE ) sim_dbDenseMatrix( num_rows = 50, num_cols = 50, seed_num = 42, name = \"dense_test\", memory = FALSE )"},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"sim_dgc — sim_duckdb","text":"num_rows number rows matrix (default: 50) num_cols number columns matrix (default: 50) seed_num seed number reproducibility (default: 42)","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"sim_dgc — sim_duckdb","text":"dgCMatrix object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"sim_dgc — sim_duckdb","text":"function generates simulated sparse matrix (dgCMatrix) number rows columns sets n_vals random values non-zero value. function generates simulated dense matrix object specified number rows columns. function generates ijx representation simulated dgCMatrix object specified number rows columns sets 50 random values non-zero value.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":"functions","dir":"Reference","previous_headings":"","what":"Functions","title":"sim_dgc — sim_duckdb","text":"sim_duckdb(): Simulate duckdb connection dplyr tbl_Pool memory sim_dgc(): Simulate dgcMatrix sim_denseMat(): Simulate dense matrix sim_ijx_matrix(): Simulate duckdb connection dplyr tbl_Pool memory sim_dbSparseMatrix(): Simulate dbSparseMatrix memory sim_dbDenseMatrix(): Simulate dbDenseMatrix memory","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"sim_dgc — sim_duckdb","text":"","code":"sim_ijx_matrix() #> Error in sim_ijx_matrix(): could not find function \"sim_ijx_matrix\""},{"path":"https://drieslab.github.io/dbMatrix/reference/t-dbMatrix-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Matrix Transpose — t,dbMatrix-method","title":"Matrix Transpose — t,dbMatrix-method","text":"See ?base::t details.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/t-dbMatrix-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Matrix Transpose — t,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' t(x)"},{"path":"https://drieslab.github.io/dbMatrix/reference/to_ijx_disk.html","id":null,"dir":"Reference","previous_headings":"","what":"to_ijx_disk — to_ijx_disk","title":"to_ijx_disk — to_ijx_disk","text":"to_ijx_disk","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/to_ijx_disk.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"to_ijx_disk — to_ijx_disk","text":"","code":"to_ijx_disk(con, name)"},{"path":"https://drieslab.github.io/dbMatrix/reference/to_ijx_disk.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"to_ijx_disk — to_ijx_disk","text":"con duckdb connection name name table convert ijx disk","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/to_ijx_disk.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"to_ijx_disk — to_ijx_disk","text":"remote table long format unpivoted wide format matrix","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"breaking-changes-0-0-0-9022","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"dbMatrix 0.0.0.9022 (2024-08-14)","text":"Rename dbMatrix constructor dbMatrix::dbMatrix().","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9022","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9022 (2024-08-14)","text":"Add tests dbMatrix dbDenseMatrix. Add internal function map_ijx_dimnames. Add internal function dbMatrix_from_tbl. Extract now constructs unique temporary virtual tables arrow schema.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9022","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9022 (2024-08-14)","text":"Document pkgdown website. Add cli imports. Update generics.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9022","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9022 (2024-08-14)","text":"explicit non-supported Arith Ops operations. Fix show() method dbDenseMatrix objects.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9021","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9021 (2024-07-05)","text":"Improve show function dbDenseMatrix. Updated simulate functions include overwrite param. Update .check_overwrite() internal function avoid bug overwritting passed table.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9020","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9020 (2024-07-05)","text":"Add initial support reading .mtx files creating dbMatrix objects.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9020","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9020 (2024-07-05)","text":"Update check_overwrite input validation","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9020","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9020 (2024-07-05)","text":"Update Royxgen","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9019","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9019 (2024-03-18)","text":"Add new precompute function speed matrix densification. Add new show function dbDenseMatrix pretty color better spacing. Add new save function save dbMatrix. Add new input validation functions.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9019","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9019 (2024-03-18)","text":"Update docs. Update imports include glue, bit64 crayon.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9018","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9018 (2024-02-12)","text":"Update constructor calls sim functions. Remove redundant con constructor. Remove db_path constructor. Constructor db_path arg change con object.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9018","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9018 (2024-02-12)","text":"Add dgTMatrix -memory matrix types supported dbMatrix constructor.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9018","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9018 (2024-02-12)","text":"Set :memory: default db_path constructor. Update createDBMatrix docs.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"documentation-0-0-0-9018","dir":"Changelog","previous_headings":"","what":"Documentation","title":"dbMatrix 0.0.0.9018 (2024-02-12)","text":"Spacing. Update constructor fix. Remove :temp: place :memory:.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9017","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9017 (2024-02-07)","text":"Remove “:temp:” tests. Replace ‘:temp:’ ‘:memory:’. Add matrix addition dgCMatrix as_ijx().","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9017","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9017 (2024-02-07)","text":"Add unit tests scalar arith. Add unit tests names.R.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9017","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9017 (2024-02-07)","text":"Remove random browser() call. Add MatrixGenerics deps. Update gitignore.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9016","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9016 (2024-01-23)","text":"Add boolean indexing tests test-extract.R. Add as_ijx() convenience function. Update createDBMatrix() use dplyr::copy_to(). Update as_matrix() convenience function. Add unit tests extract methods.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9015","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9015 (2024-01-22)","text":"Add log(). Update toDbDense use dplyr instead SQL.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9015","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9015 (2024-01-22)","text":"Update DESCRIPTION include testthat. Update docs.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9014","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9014 (2024-01-19)","text":"update dbIndex superclass update as_matrix()","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9013","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9013 (2024-01-18)","text":"Rename update dbIndex superclass fix indexing bugs.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9013","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9013 (2024-01-18)","text":"Add experimental as_matrix() convenience function.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9013","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9013 (2024-01-18)","text":"Update docs. Migrate site link drieslab. Move {Matrix} Imports.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"documentation-0-0-0-9013","dir":"Changelog","previous_headings":"","what":"Documentation","title":"dbMatrix 0.0.0.9013 (2024-01-18)","text":"Update overview.Rmd. Update operations vignette.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9012","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9012 (2023-12-08)","text":"densify necessary. != 0, +/-. toDbDense() previously updated table value. change update reference via VIEW creation table named ‘dense’.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9012","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9012 (2023-12-08)","text":"Add dbListTables().","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9012","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9012 (2023-12-08)","text":"Update docs. Update gitignore.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9011","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9011 (2023-12-08)","text":"Fix incorrect aggregate operations. Fixes con slot removal.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9011","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9011 (2023-12-08)","text":"Add get_con(). Add dbDisconnect() generic. Update accessors.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9011","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9011 (2023-12-08)","text":"Update vignettes. Update README. Update gitignore. Update docs. Update NEWS.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"breaking-changes-0-0-0-9010","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"dbMatrix 0.0.0.9010 (2023-11-25)","text":"migrate |> pipe, remove %>%, update deps.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9010","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9010 (2023-11-25)","text":"Update docs.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9009","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9009 (2023-11-20)","text":"Mean generic dbDenseMatrix.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9009","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9009 (2023-11-20)","text":"Update docs. Update site. Update gitignore.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9008","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9008 (2023-11-17)","text":"Updates dbSparseMatrix rowMeans, colMeans. Updates colSums rowSums dbSparseMatrix. Update dbMatrix constructor dimnames issues.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9008","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9008 (2023-11-17)","text":"Update DESCRIPTION, remove redundant Matrix import, dep. Update docs. Update roxygen operations.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9007","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9007 (2023-11-09)","text":"Add Matrix dep.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9006","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9006 (2023-11-09)","text":"Methods::scope correction.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9006","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9006 (2023-11-09)","text":"Add methods deps.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9006","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9006 (2023-11-09)","text":"Update .gitignore.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"feat-0-0-0-9005","dir":"Changelog","previous_headings":"","what":"Feat","title":"dbMatrix 0.0.0.9005 (2023-11-09)","text":"Add Matrix pkg dep","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9004","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9004 (2023-11-09)","text":"Missing Matrix:: scope call.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9004","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9004 (2023-11-09)","text":"Update docs.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"fix-0-0-0-9003","dir":"Changelog","previous_headings":"","what":"Fix","title":"dbMatrix 0.0.0.9003 (2023-11-07)","text":"dims dim_names createDBMatrix() retained -memory matrix Matrix object","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9003","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9003 (2023-11-07)","text":"Update docs dbMatrix input checks","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"feat-0-0-0-9002","dir":"Changelog","previous_headings":"","what":"Feat","title":"dbMatrix 0.0.0.9002 (2023-11-07)","text":"Specify checks ‘name’ param createDBMatrix()","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9002","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9002 (2023-11-07)","text":"Update docs. Add docs.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9001","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9001 (2023-11-04)","text":"Update docs DESCRIPTION. Migration dbMatrix.","code":""}] +[{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":null,"dir":"","previous_headings":"","what":"GNU General Public License","title":"GNU General Public License","text":"Version 3, 29 June 2007Copyright © 2007 Free Software Foundation, Inc.  Everyone permitted copy distribute verbatim copies license document, changing allowed.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"preamble","dir":"","previous_headings":"","what":"Preamble","title":"GNU General Public License","text":"GNU General Public License free, copyleft license software kinds works. licenses software practical works designed take away freedom share change works. contrast, GNU General Public License intended guarantee freedom share change versions program–make sure remains free software users. , Free Software Foundation, use GNU General Public License software; applies also work released way authors. can apply programs, . speak free software, referring freedom, price. General Public Licenses designed make sure freedom distribute copies free software (charge wish), receive source code can get want , can change software use pieces new free programs, know can things. protect rights, need prevent others denying rights asking surrender rights. Therefore, certain responsibilities distribute copies software, modify : responsibilities respect freedom others. example, distribute copies program, whether gratis fee, must pass recipients freedoms received. must make sure , , receive can get source code. must show terms know rights. Developers use GNU GPL protect rights two steps: (1) assert copyright software, (2) offer License giving legal permission copy, distribute /modify . developers’ authors’ protection, GPL clearly explains warranty free software. users’ authors’ sake, GPL requires modified versions marked changed, problems attributed erroneously authors previous versions. devices designed deny users access install run modified versions software inside , although manufacturer can . fundamentally incompatible aim protecting users’ freedom change software. systematic pattern abuse occurs area products individuals use, precisely unacceptable. Therefore, designed version GPL prohibit practice products. problems arise substantially domains, stand ready extend provision domains future versions GPL, needed protect freedom users. Finally, every program threatened constantly software patents. States allow patents restrict development use software general-purpose computers, , wish avoid special danger patents applied free program make effectively proprietary. prevent , GPL assures patents used render program non-free. precise terms conditions copying, distribution modification follow.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_0-definitions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"0. Definitions","title":"GNU General Public License","text":"“License” refers version 3 GNU General Public License. “Copyright” also means copyright-like laws apply kinds works, semiconductor masks. “Program” refers copyrightable work licensed License. licensee addressed “”. “Licensees” “recipients” may individuals organizations. “modify” work means copy adapt part work fashion requiring copyright permission, making exact copy. resulting work called “modified version” earlier work work “based ” earlier work. “covered work” means either unmodified Program work based Program. “propagate” work means anything , without permission, make directly secondarily liable infringement applicable copyright law, except executing computer modifying private copy. Propagation includes copying, distribution (without modification), making available public, countries activities well. “convey” work means kind propagation enables parties make receive copies. Mere interaction user computer network, transfer copy, conveying. interactive user interface displays “Appropriate Legal Notices” extent includes convenient prominently visible feature (1) displays appropriate copyright notice, (2) tells user warranty work (except extent warranties provided), licensees may convey work License, view copy License. interface presents list user commands options, menu, prominent item list meets criterion.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_1-source-code","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"1. Source Code","title":"GNU General Public License","text":"“source code” work means preferred form work making modifications . “Object code” means non-source form work. “Standard Interface” means interface either official standard defined recognized standards body, , case interfaces specified particular programming language, one widely used among developers working language. “System Libraries” executable work include anything, work whole, () included normal form packaging Major Component, part Major Component, (b) serves enable use work Major Component, implement Standard Interface implementation available public source code form. “Major Component”, context, means major essential component (kernel, window system, ) specific operating system () executable work runs, compiler used produce work, object code interpreter used run . “Corresponding Source” work object code form means source code needed generate, install, (executable work) run object code modify work, including scripts control activities. However, include work’s System Libraries, general-purpose tools generally available free programs used unmodified performing activities part work. example, Corresponding Source includes interface definition files associated source files work, source code shared libraries dynamically linked subprograms work specifically designed require, intimate data communication control flow subprograms parts work. Corresponding Source need include anything users can regenerate automatically parts Corresponding Source. Corresponding Source work source code form work.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_2-basic-permissions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"2. Basic Permissions","title":"GNU General Public License","text":"rights granted License granted term copyright Program, irrevocable provided stated conditions met. License explicitly affirms unlimited permission run unmodified Program. output running covered work covered License output, given content, constitutes covered work. License acknowledges rights fair use equivalent, provided copyright law. may make, run propagate covered works convey, without conditions long license otherwise remains force. may convey covered works others sole purpose make modifications exclusively , provide facilities running works, provided comply terms License conveying material control copyright. thus making running covered works must exclusively behalf, direction control, terms prohibit making copies copyrighted material outside relationship . Conveying circumstances permitted solely conditions stated . Sublicensing allowed; section 10 makes unnecessary.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_3-protecting-users-legal-rights-from-anti-circumvention-law","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"3. Protecting Users’ Legal Rights From Anti-Circumvention Law","title":"GNU General Public License","text":"covered work shall deemed part effective technological measure applicable law fulfilling obligations article 11 WIPO copyright treaty adopted 20 December 1996, similar laws prohibiting restricting circumvention measures. convey covered work, waive legal power forbid circumvention technological measures extent circumvention effected exercising rights License respect covered work, disclaim intention limit operation modification work means enforcing, work’s users, third parties’ legal rights forbid circumvention technological measures.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_4-conveying-verbatim-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"4. Conveying Verbatim Copies","title":"GNU General Public License","text":"may convey verbatim copies Program’s source code receive , medium, provided conspicuously appropriately publish copy appropriate copyright notice; keep intact notices stating License non-permissive terms added accord section 7 apply code; keep intact notices absence warranty; give recipients copy License along Program. may charge price price copy convey, may offer support warranty protection fee.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_5-conveying-modified-source-versions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"5. Conveying Modified Source Versions","title":"GNU General Public License","text":"may convey work based Program, modifications produce Program, form source code terms section 4, provided also meet conditions: ) work must carry prominent notices stating modified , giving relevant date. b) work must carry prominent notices stating released License conditions added section 7. requirement modifies requirement section 4 “keep intact notices”. c) must license entire work, whole, License anyone comes possession copy. License therefore apply, along applicable section 7 additional terms, whole work, parts, regardless packaged. License gives permission license work way, invalidate permission separately received . d) work interactive user interfaces, must display Appropriate Legal Notices; however, Program interactive interfaces display Appropriate Legal Notices, work need make . compilation covered work separate independent works, nature extensions covered work, combined form larger program, volume storage distribution medium, called “aggregate” compilation resulting copyright used limit access legal rights compilation’s users beyond individual works permit. Inclusion covered work aggregate cause License apply parts aggregate.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_6-conveying-non-source-forms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"6. Conveying Non-Source Forms","title":"GNU General Public License","text":"may convey covered work object code form terms sections 4 5, provided also convey machine-readable Corresponding Source terms License, one ways: ) Convey object code , embodied , physical product (including physical distribution medium), accompanied Corresponding Source fixed durable physical medium customarily used software interchange. b) Convey object code , embodied , physical product (including physical distribution medium), accompanied written offer, valid least three years valid long offer spare parts customer support product model, give anyone possesses object code either (1) copy Corresponding Source software product covered License, durable physical medium customarily used software interchange, price reasonable cost physically performing conveying source, (2) access copy Corresponding Source network server charge. c) Convey individual copies object code copy written offer provide Corresponding Source. alternative allowed occasionally noncommercially, received object code offer, accord subsection 6b. d) Convey object code offering access designated place (gratis charge), offer equivalent access Corresponding Source way place charge. need require recipients copy Corresponding Source along object code. place copy object code network server, Corresponding Source may different server (operated third party) supports equivalent copying facilities, provided maintain clear directions next object code saying find Corresponding Source. Regardless server hosts Corresponding Source, remain obligated ensure available long needed satisfy requirements. e) Convey object code using peer--peer transmission, provided inform peers object code Corresponding Source work offered general public charge subsection 6d. separable portion object code, whose source code excluded Corresponding Source System Library, need included conveying object code work. “User Product” either (1) “consumer product”, means tangible personal property normally used personal, family, household purposes, (2) anything designed sold incorporation dwelling. determining whether product consumer product, doubtful cases shall resolved favor coverage. particular product received particular user, “normally used” refers typical common use class product, regardless status particular user way particular user actually uses, expects expected use, product. product consumer product regardless whether product substantial commercial, industrial non-consumer uses, unless uses represent significant mode use product. “Installation Information” User Product means methods, procedures, authorization keys, information required install execute modified versions covered work User Product modified version Corresponding Source. information must suffice ensure continued functioning modified object code case prevented interfered solely modification made. convey object code work section , , specifically use , User Product, conveying occurs part transaction right possession use User Product transferred recipient perpetuity fixed term (regardless transaction characterized), Corresponding Source conveyed section must accompanied Installation Information. requirement apply neither third party retains ability install modified object code User Product (example, work installed ROM). requirement provide Installation Information include requirement continue provide support service, warranty, updates work modified installed recipient, User Product modified installed. Access network may denied modification materially adversely affects operation network violates rules protocols communication across network. Corresponding Source conveyed, Installation Information provided, accord section must format publicly documented (implementation available public source code form), must require special password key unpacking, reading copying.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_7-additional-terms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"7. Additional Terms","title":"GNU General Public License","text":"“Additional permissions” terms supplement terms License making exceptions one conditions. Additional permissions applicable entire Program shall treated though included License, extent valid applicable law. additional permissions apply part Program, part may used separately permissions, entire Program remains governed License without regard additional permissions. convey copy covered work, may option remove additional permissions copy, part . (Additional permissions may written require removal certain cases modify work.) may place additional permissions material, added covered work, can give appropriate copyright permission. Notwithstanding provision License, material add covered work, may (authorized copyright holders material) supplement terms License terms: ) Disclaiming warranty limiting liability differently terms sections 15 16 License; b) Requiring preservation specified reasonable legal notices author attributions material Appropriate Legal Notices displayed works containing ; c) Prohibiting misrepresentation origin material, requiring modified versions material marked reasonable ways different original version; d) Limiting use publicity purposes names licensors authors material; e) Declining grant rights trademark law use trade names, trademarks, service marks; f) Requiring indemnification licensors authors material anyone conveys material (modified versions ) contractual assumptions liability recipient, liability contractual assumptions directly impose licensors authors. non-permissive additional terms considered “restrictions” within meaning section 10. Program received , part , contains notice stating governed License along term restriction, may remove term. license document contains restriction permits relicensing conveying License, may add covered work material governed terms license document, provided restriction survive relicensing conveying. add terms covered work accord section, must place, relevant source files, statement additional terms apply files, notice indicating find applicable terms. Additional terms, permissive non-permissive, may stated form separately written license, stated exceptions; requirements apply either way.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_8-termination","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"8. Termination","title":"GNU General Public License","text":"may propagate modify covered work except expressly provided License. attempt otherwise propagate modify void, automatically terminate rights License (including patent licenses granted third paragraph section 11). However, cease violation License, license particular copyright holder reinstated () provisionally, unless copyright holder explicitly finally terminates license, (b) permanently, copyright holder fails notify violation reasonable means prior 60 days cessation. Moreover, license particular copyright holder reinstated permanently copyright holder notifies violation reasonable means, first time received notice violation License (work) copyright holder, cure violation prior 30 days receipt notice. Termination rights section terminate licenses parties received copies rights License. rights terminated permanently reinstated, qualify receive new licenses material section 10.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_9-acceptance-not-required-for-having-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"9. Acceptance Not Required for Having Copies","title":"GNU General Public License","text":"required accept License order receive run copy Program. Ancillary propagation covered work occurring solely consequence using peer--peer transmission receive copy likewise require acceptance. However, nothing License grants permission propagate modify covered work. actions infringe copyright accept License. Therefore, modifying propagating covered work, indicate acceptance License .","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_10-automatic-licensing-of-downstream-recipients","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"10. Automatic Licensing of Downstream Recipients","title":"GNU General Public License","text":"time convey covered work, recipient automatically receives license original licensors, run, modify propagate work, subject License. responsible enforcing compliance third parties License. “entity transaction” transaction transferring control organization, substantially assets one, subdividing organization, merging organizations. propagation covered work results entity transaction, party transaction receives copy work also receives whatever licenses work party’s predecessor interest give previous paragraph, plus right possession Corresponding Source work predecessor interest, predecessor can get reasonable efforts. may impose restrictions exercise rights granted affirmed License. example, may impose license fee, royalty, charge exercise rights granted License, may initiate litigation (including cross-claim counterclaim lawsuit) alleging patent claim infringed making, using, selling, offering sale, importing Program portion .","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_11-patents","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"11. Patents","title":"GNU General Public License","text":"“contributor” copyright holder authorizes use License Program work Program based. work thus licensed called contributor’s “contributor version”. contributor’s “essential patent claims” patent claims owned controlled contributor, whether already acquired hereafter acquired, infringed manner, permitted License, making, using, selling contributor version, include claims infringed consequence modification contributor version. purposes definition, “control” includes right grant patent sublicenses manner consistent requirements License. contributor grants non-exclusive, worldwide, royalty-free patent license contributor’s essential patent claims, make, use, sell, offer sale, import otherwise run, modify propagate contents contributor version. following three paragraphs, “patent license” express agreement commitment, however denominated, enforce patent (express permission practice patent covenant sue patent infringement). “grant” patent license party means make agreement commitment enforce patent party. convey covered work, knowingly relying patent license, Corresponding Source work available anyone copy, free charge terms License, publicly available network server readily accessible means, must either (1) cause Corresponding Source available, (2) arrange deprive benefit patent license particular work, (3) arrange, manner consistent requirements License, extend patent license downstream recipients. “Knowingly relying” means actual knowledge , patent license, conveying covered work country, recipient’s use covered work country, infringe one identifiable patents country reason believe valid. , pursuant connection single transaction arrangement, convey, propagate procuring conveyance , covered work, grant patent license parties receiving covered work authorizing use, propagate, modify convey specific copy covered work, patent license grant automatically extended recipients covered work works based . patent license “discriminatory” include within scope coverage, prohibits exercise , conditioned non-exercise one rights specifically granted License. may convey covered work party arrangement third party business distributing software, make payment third party based extent activity conveying work, third party grants, parties receive covered work , discriminatory patent license () connection copies covered work conveyed (copies made copies), (b) primarily connection specific products compilations contain covered work, unless entered arrangement, patent license granted, prior 28 March 2007. Nothing License shall construed excluding limiting implied license defenses infringement may otherwise available applicable patent law.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_12-no-surrender-of-others-freedom","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"12. No Surrender of Others’ Freedom","title":"GNU General Public License","text":"conditions imposed (whether court order, agreement otherwise) contradict conditions License, excuse conditions License. convey covered work satisfy simultaneously obligations License pertinent obligations, consequence may convey . example, agree terms obligate collect royalty conveying convey Program, way satisfy terms License refrain entirely conveying Program.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_13-use-with-the-gnu-affero-general-public-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"13. Use with the GNU Affero General Public License","title":"GNU General Public License","text":"Notwithstanding provision License, permission link combine covered work work licensed version 3 GNU Affero General Public License single combined work, convey resulting work. terms License continue apply part covered work, special requirements GNU Affero General Public License, section 13, concerning interaction network apply combination .","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_14-revised-versions-of-this-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"14. Revised Versions of this License","title":"GNU General Public License","text":"Free Software Foundation may publish revised /new versions GNU General Public License time time. new versions similar spirit present version, may differ detail address new problems concerns. version given distinguishing version number. Program specifies certain numbered version GNU General Public License “later version” applies , option following terms conditions either numbered version later version published Free Software Foundation. Program specify version number GNU General Public License, may choose version ever published Free Software Foundation. Program specifies proxy can decide future versions GNU General Public License can used, proxy’s public statement acceptance version permanently authorizes choose version Program. Later license versions may give additional different permissions. However, additional obligations imposed author copyright holder result choosing follow later version.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_15-disclaimer-of-warranty","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"15. Disclaimer of Warranty","title":"GNU General Public License","text":"WARRANTY PROGRAM, EXTENT PERMITTED APPLICABLE LAW. EXCEPT OTHERWISE STATED WRITING COPYRIGHT HOLDERS /PARTIES PROVIDE PROGRAM “” WITHOUT WARRANTY KIND, EITHER EXPRESSED IMPLIED, INCLUDING, LIMITED , IMPLIED WARRANTIES MERCHANTABILITY FITNESS PARTICULAR PURPOSE. ENTIRE RISK QUALITY PERFORMANCE PROGRAM . PROGRAM PROVE DEFECTIVE, ASSUME COST NECESSARY SERVICING, REPAIR CORRECTION.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_16-limitation-of-liability","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"16. Limitation of Liability","title":"GNU General Public License","text":"EVENT UNLESS REQUIRED APPLICABLE LAW AGREED WRITING COPYRIGHT HOLDER, PARTY MODIFIES /CONVEYS PROGRAM PERMITTED , LIABLE DAMAGES, INCLUDING GENERAL, SPECIAL, INCIDENTAL CONSEQUENTIAL DAMAGES ARISING USE INABILITY USE PROGRAM (INCLUDING LIMITED LOSS DATA DATA RENDERED INACCURATE LOSSES SUSTAINED THIRD PARTIES FAILURE PROGRAM OPERATE PROGRAMS), EVEN HOLDER PARTY ADVISED POSSIBILITY DAMAGES.","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"id_17-interpretation-of-sections-15-and-16","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"17. Interpretation of Sections 15 and 16","title":"GNU General Public License","text":"disclaimer warranty limitation liability provided given local legal effect according terms, reviewing courts shall apply local law closely approximates absolute waiver civil liability connection Program, unless warranty assumption liability accompanies copy Program return fee. END TERMS CONDITIONS","code":""},{"path":"https://drieslab.github.io/dbMatrix/GPL-3.html","id":"how-to-apply-these-terms-to-your-new-programs","dir":"","previous_headings":"","what":"How to Apply These Terms to Your New Programs","title":"GNU General Public License","text":"develop new program, want greatest possible use public, best way achieve make free software everyone can redistribute change terms. , attach following notices program. safest attach start source file effectively state exclusion warranty; file least “copyright” line pointer full notice found. Also add information contact electronic paper mail. program terminal interaction, make output short notice like starts interactive mode: hypothetical commands show w show c show appropriate parts General Public License. course, program’s commands might different; GUI interface, use “box”. also get employer (work programmer) school, , sign “copyright disclaimer” program, necessary. information , apply follow GNU GPL, see . GNU General Public License permit incorporating program proprietary programs. program subroutine library, may consider useful permit linking proprietary applications library. want , use GNU Lesser General Public License instead License. first, please read .","code":" Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free software, and you are welcome to redistribute it under certain conditions; type 'show c' for details."},{"path":"https://drieslab.github.io/dbMatrix/LICENSE-text.html","id":null,"dir":"","previous_headings":"","what":"License","title":"License","text":"dbMatrix dual-licensed GNU General Public License version 3 (GPLv3) MIT License. Copyright (c) [2024] [dbMatrix authors]","code":""},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"dbmatrix-arithmetic","dir":"Articles","previous_headings":"","what":"dbMatrix arithmetic","title":"Arithmetic","text":"dbMatrix objects support Arith Ops operations. demonstrate perform arithmetic operations dbSparseMatrix objects. Note: operations zero values yet supported dbMatrix objects. addition, certain arithmetic operations dbMatrix objects also yet supported. welcome user feedback reporting issues Github page.","code":""},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"get-test-data","dir":"Articles","previous_headings":"dbMatrix arithmetic","what":"Get test data","title":"Arithmetic","text":"test file dgCMatrixor compressed sparse column matrix representing single cell gene expression matrix. file data directory package. Let’s load .rds file preview object. file contains 634 rows 624 columns. rows represent gene names columns represent cell names. values integers represent number times gene detected cell. Like single-cell RNA-seq data, matrix sparse.","code":"dgc <- readRDS(\"../data/dgc.rds\") dplyr::glimpse(dgc) #> Loading required package: Matrix #> Formal class 'dgCMatrix' [package \"Matrix\"] with 6 slots #> ..@ i : int [1:170625] 0 6 10 17 21 22 25 31 33 35 ... #> ..@ p : int [1:625] 0 227 510 758 980 1293 1631 1976 2223 2434 ... #> ..@ Dim : int [1:2] 634 624 #> ..@ Dimnames:List of 2 #> .. ..$ : chr [1:634] \"Gna12\" \"Ccnd2\" \"Btbd17\" \"Sox9\" ... #> .. ..$ : chr [1:624] \"AAAGGGATGTAGCAAG-1\" \"AAATGGCATGTCTTGT-1\" \"AAATGGTCAATGTGCC-1\" \"AAATTAACGGGTAGCT-1\" ... #> ..@ x : num [1:170625] 1 1 1 1 1 1 6 2 1 1 ... #> ..@ factors : list()"},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"create-a-dbmatrix-object","dir":"Articles","previous_headings":"dbMatrix arithmetic","what":"Create a dbMatrix object","title":"Arithmetic","text":"Let’s create dbSparseMatrix object dgc object.","code":"# Note: by default the constructor creates a dbMatrix object in-memory con <- DBI::dbConnect(duckdb::duckdb(), \":memory:\") dbsm <- dbMatrix(value = dgc, con = con, name = 'visium', class = \"dbSparseMatrix\", overwrite = TRUE) # preview the object dbsm #> 634 x 624 matrix of class \"dbSparseMatrix\" #> [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] #> #> Gna12 1 2 1 1 9 1 3 5 3 . #> Ccnd2 . 1 1 . . 1 . 1 1 . #> Btbd17 . 1 1 1 . . 2 . . . #> #> ......suppressing 614 columns and 628 rows #> #> Gm19935 . 1 . . . . . . . . #> 9630013A20Rik . . . . . . . . . . #> 2900040C04Rik 1 . . . . . . . . 1"},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"scalar-arithmetic","dir":"Articles","previous_headings":"dbMatrix arithmetic","what":"Scalar Arithmetic","title":"Arithmetic","text":"dbMatrix emulates scalar arithmetic Matrix package. Note: Addition subtraction non-zero addends dbSparseMatrix results dbDenseMatrix.","code":"dbsm + 1 #> ℹ Densifying 'dbSparseMatrix' on the fly... #> 634 x 624 matrix of class \"dbDenseMatrix\" #> [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] #> #> Gna12 2 3 2 2 10 2 4 6 4 1 #> Ccnd2 1 2 2 1 1 2 1 2 2 1 #> Btbd17 1 2 2 2 1 1 3 1 1 1 #> #> ......suppressing 614 columns and 628 rows #> #> Gm19935 1 2 1 1 1 1 1 1 1 1 #> 9630013A20Rik 1 1 1 1 1 1 1 1 1 1 #> 2900040C04Rik 2 1 1 1 1 1 1 1 1 2 dbsm * 100 #> 634 x 624 matrix of class \"dbSparseMatrix\" #> [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] #> #> Gna12 100 200 100 100 900 100 300 500 300 . #> Ccnd2 . 100 100 . . 100 . 100 100 . #> Btbd17 . 100 100 100 . . 200 . . . #> #> ......suppressing 614 columns and 628 rows #> #> Gm19935 . 100 . . . . . . . . #> 9630013A20Rik . . . . . . . . . . #> 2900040C04Rik 100 . . . . . . . . 100"},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"matrix-arithmetic","dir":"Articles","previous_headings":"dbMatrix arithmetic","what":"Matrix Arithmetic","title":"Arithmetic","text":"dbMatrix also supports matrix arithmetic dbMatrix objects conformable.","code":"dbsm + dbsm #> 634 x 624 matrix of class \"dbSparseMatrix\" #> [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] #> #> Gna12 2 4 2 2 18 2 6 10 6 . #> Ccnd2 . 2 2 . . 2 . 2 2 . #> Btbd17 . 2 2 2 . . 4 . . . #> #> ......suppressing 614 columns and 628 rows #> #> Gm19935 . 2 . . . . . . . . #> 9630013A20Rik . . . . . . . . . . #> 2900040C04Rik 2 . . . . . . . . 2"},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"hadamard-product","dir":"Articles","previous_headings":"dbMatrix arithmetic > Matrix Multiplication","what":"Hadamard product","title":"Arithmetic","text":"","code":"dbsm * dbsm #> 634 x 624 matrix of class \"dbSparseMatrix\" #> [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] #> #> Gna12 1 4 1 1 81 1 9 25 9 . #> Ccnd2 . 1 1 . . 1 . 1 1 . #> Btbd17 . 1 1 1 . . 4 . . . #> #> ......suppressing 614 columns and 628 rows #> #> Gm19935 . 1 . . . . . . . . #> 9630013A20Rik . . . . . . . . . . #> 2900040C04Rik 1 . . . . . . . . 1"},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"matrix-product","dir":"Articles","previous_headings":"dbMatrix arithmetic > Matrix Multiplication","what":"Matrix product","title":"Arithmetic","text":"TODO","code":""},{"path":"https://drieslab.github.io/dbMatrix/articles/arithmetic.html","id":"session-info","dir":"Articles","previous_headings":"dbMatrix arithmetic","what":"Session Info","title":"Arithmetic","text":"","code":"sessionInfo() #> R version 4.4.1 (2024-06-14) #> Platform: x86_64-pc-linux-gnu #> Running under: Ubuntu 22.04.5 LTS #> #> Matrix products: default #> BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 #> LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so; LAPACK version 3.10.0 #> #> locale: #> [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8 #> [4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8 #> [7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C #> [10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C #> #> time zone: UTC #> tzcode source: system (glibc) #> #> attached base packages: #> [1] stats graphics grDevices utils datasets methods base #> #> other attached packages: #> [1] Matrix_1.7-0 dbMatrix_0.0.0.9022 #> #> loaded via a namespace (and not attached): #> [1] bit_4.0.5 jsonlite_1.8.8 crayon_1.5.3 #> [4] dplyr_1.1.4 compiler_4.4.1 tidyselect_1.2.1 #> [7] blob_1.2.4 jquerylib_0.1.4 systemfonts_1.1.0 #> [10] textshaping_0.4.0 yaml_2.3.10 fastmap_1.2.0 #> [13] lattice_0.22-6 R6_2.5.1 generics_0.1.3 #> [16] knitr_1.48 tibble_3.2.1 desc_1.4.3 #> [19] MatrixGenerics_1.16.0 DBI_1.2.3 bslib_0.8.0 #> [22] pillar_1.9.0 rlang_1.1.4 utf8_1.2.4 #> [25] cachem_1.1.0 xfun_0.47 fs_1.6.4 #> [28] sass_0.4.9 bit64_4.0.5 cli_3.6.3 #> [31] withr_3.0.1 pkgdown_2.1.1 magrittr_2.0.3 #> [34] digest_0.6.37 grid_4.4.1 dbplyr_2.5.0 #> [37] lifecycle_1.0.4 vctrs_0.6.5 evaluate_1.0.0 #> [40] glue_1.7.0 data.table_1.16.0 duckdb_1.0.0-2 #> [43] ragg_1.3.3 fansi_1.0.6 purrr_1.0.2 #> [46] rmarkdown_2.28 matrixStats_1.4.1 tools_4.4.1 #> [49] pkgconfig_2.0.3 htmltools_0.5.8.1"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Operations","text":"vignette introduces generic functions operations supported dbMatrix.","code":""},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"loading-library","dir":"Articles","previous_headings":"","what":"Loading library","title":"Operations","text":"","code":"library(dbMatrix) library(Matrix)"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"dbmatrix-generics","dir":"Articles","previous_headings":"","what":"dbMatrix generics","title":"Operations","text":"dbMatrix objects currently support several statistical matrix operations listed support coming soon. ✅ - implemented 🟧 - yet implemented","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"get-test-data","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"Get test data","title":"Operations","text":"test file dgCMatrixor compressed sparse column matrix representing single cell gene expression matrix. file data directory package. Let’s load .rds file preview object.","code":"dgc <- readRDS(\"../data/dgc.rds\") dplyr::glimpse(dgc) ## Formal class 'dgCMatrix' [package \"Matrix\"] with 6 slots ## ..@ i : int [1:170625] 0 6 10 17 21 22 25 31 33 35 ... ## ..@ p : int [1:625] 0 227 510 758 980 1293 1631 1976 2223 2434 ... ## ..@ Dim : int [1:2] 634 624 ## ..@ Dimnames:List of 2 ## .. ..$ : chr [1:634] \"Gna12\" \"Ccnd2\" \"Btbd17\" \"Sox9\" ... ## .. ..$ : chr [1:624] \"AAAGGGATGTAGCAAG-1\" \"AAATGGCATGTCTTGT-1\" \"AAATGGTCAATGTGCC-1\" \"AAATTAACGGGTAGCT-1\" ... ## ..@ x : num [1:170625] 1 1 1 1 1 1 6 2 1 1 ... ## ..@ factors : list() # create dbSparseMatrix from the same dgc con <- DBI::dbConnect(duckdb::duckdb(), \":memory:\") sparse <- dbMatrix(value = dgc, con = con, name = 'visium', class = \"dbSparseMatrix\", overwrite = TRUE) # preview # show function aims to emulate the show method for dgCMatrix head(sparse) ## 6 x 624 matrix of class \"dbSparseMatrix\" ## [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] ## ## Gna12 1 2 1 1 9 1 3 5 3 . ## [ reached getOption(\"max.print\") -- omitted 633 rows ]"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"transpose","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"transpose","title":"Operations","text":"","code":"dbMatrix::t(sparse) ## 624 x 634 matrix of class \"dbSparseMatrix\" ## [[ Colnames 'Gna12', 'Ccnd2', 'Btbd17' ... suppressing 628 ...'Gm19935', '9630013A20Rik', '2900040C04Rik' ]] ## ## AAAGGGATGTAGCAAG-1 1 . . . . . 1 . . . ## [ reached getOption(\"max.print\") -- omitted 5 rows ] ## NA ## ## ......suppressing 624 columns and 618 rows ## ## NA ## NA ## NA"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"colmeans","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"colMeans","title":"Operations","text":"","code":"dbMatrix::colMeans(sparse) ## 1 x 624 matrix of class \"dbDenseMatrix\" ## [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] ## ## row1 0.74132 1.32965 1.14353 0.83438 1.61356 2.21293 1.7224 1.90221 0.73975 ## ## row1 0.92587"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"colsums","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"colSums","title":"Operations","text":"","code":"dbMatrix::colSums(sparse) ## 1 x 624 matrix of class \"dbDenseMatrix\" ## [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] ## ## row1 470 843 725 529 1023 1403 1092 1206 469 587"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"rowmeans","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"rowMeans","title":"Operations","text":"","code":"dbMatrix::rowMeans(sparse) ## 634 x 1 matrix of class \"dbDenseMatrix\" ## [[ Colnames: 'col1' ]] ## ## Gna12 2.71795 ## Ccnd2 1.73237 ## Btbd17 0.55288 ## ## ......suppressing 628 rows ## ## Gm19935 0.20833 ## 9630013A20Rik 0.17147 ## 2900040C04Rik 0.15545"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"rowsums","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"rowSums","title":"Operations","text":"","code":"dbMatrix::rowSums(sparse) ## 634 x 1 matrix of class \"dbDenseMatrix\" ## [[ Colnames: 'col1' ]] ## ## Gna12 1696 ## Ccnd2 1081 ## Btbd17 345 ## ## ......suppressing 628 rows ## ## Gm19935 130 ## 9630013A20Rik 107 ## 2900040C04Rik 97"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"dim","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"dim","title":"Operations","text":"","code":"dim(sparse) ## [1] 634 624 dim(dgc) ## [1] 634 624"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"check-results-are-equivalent","dir":"Articles","previous_headings":"dbSparse Matrix Operations","what":"Check results are equivalent","title":"Operations","text":"","code":"all.equal(dbMatrix::colMeans(sparse), Matrix::colMeans(dgc)) ## [1] \"Modes: S4, numeric\" ## [2] \"Lengths: 1, 624\" ## [3] \"names for current but not for target\" ## [4] \"Attributes: < names for target but not for current >\" ## [5] \"Attributes: < Length mismatch: comparison on first 0 components >\" all.equal(dbMatrix::colSums(sparse), Matrix::colSums(dgc)) ## [1] \"Modes: S4, numeric\" ## [2] \"Lengths: 1, 624\" ## [3] \"names for current but not for target\" ## [4] \"Attributes: < names for target but not for current >\" ## [5] \"Attributes: < Length mismatch: comparison on first 0 components >\" all.equal(dbMatrix::rowMeans(sparse), Matrix::rowMeans(dgc)) ## [1] \"Modes: S4, numeric\" ## [2] \"Lengths: 1, 634\" ## [3] \"names for current but not for target\" ## [4] \"Attributes: < names for target but not for current >\" ## [5] \"Attributes: < Length mismatch: comparison on first 0 components >\" all.equal(dbMatrix::rowSums(sparse), Matrix::rowSums(dgc)) ## [1] \"Modes: S4, numeric\" ## [2] \"Lengths: 1, 634\" ## [3] \"names for current but not for target\" ## [4] \"Attributes: < names for target but not for current >\" ## [5] \"Attributes: < Length mismatch: comparison on first 0 components >\""},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"dbdensematrix-operations","dir":"Articles","previous_headings":"","what":"dbDenseMatrix Operations","title":"Operations","text":"","code":"# below is a convenience function to simulate a dbDenseMatrix dense = dbMatrix::sim_dbDenseMatrix() # preview dense ## 50 x 50 matrix of class \"dbDenseMatrix\" ## ## row1 1.37096 0.32193 1.20097 -0.0407 -2.00093 -1.09616 -0.00462 0.72417 ## ## row1 1.33491 -1.30382 ## ## ......suppressing 40 columns and 44 rows ## ## [ reached getOption(\"max.print\") -- omitted 5 rows ] ## NA ## NA"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"transpose-1","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"transpose","title":"Operations","text":"","code":"dbMatrix::t(dense) ## 50 x 50 matrix of class \"dbDenseMatrix\" ## [[ Colnames 'row1', 'row2', 'row3' ... suppressing 44 ...'row48', 'row49', 'row50' ]] ## ## col1 1.37096 -0.5647 0.36313 0.63286 0.40427 -0.10612 1.51152 -0.09466 ## ## col1 2.01842 -0.06271 ## ## ......suppressing 40 columns and 44 rows ## ## [ reached getOption(\"max.print\") -- omitted 5 rows ] ## NA ## NA"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"colmeans-1","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"colMeans","title":"Operations","text":"","code":"dbMatrix::colMeans(dense) ## 1 x 50 matrix of class \"dbDenseMatrix\" ## [[ Colnames 'col1', 'col2', 'col3' ... suppressing 44 ...'col48', 'col49', 'col50' ]] ## ## row1 -0.03562 0.10074 -0.15122 -0.02372 0.00794 -0.02862 -0.06156 0.12742 ## ## row1 -0.11944 -0.11622"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"colsums-1","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"colSums","title":"Operations","text":"","code":"dbMatrix::colSums(dense) ## 1 x 50 matrix of class \"dbDenseMatrix\" ## [[ Colnames 'col1', 'col2', 'col3' ... suppressing 44 ...'col48', 'col49', 'col50' ]] ## Warning: ORDER BY is ignored in subqueries without LIMIT ## ℹ Do you need to move arrange() later in the pipeline or use window_order() instead? ## ## row1 -1.781 5.037 -7.561 -1.186 0.397 -1.431 -3.078 6.371 -5.972 -5.811"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"rowmeans-1","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"rowMeans","title":"Operations","text":"","code":"dbMatrix::rowMeans(dense) ## 50 x 1 matrix of class \"dbDenseMatrix\" ## [[ Colnames: 'col1' ]] ## ## row1 0.05362 ## row2 0.00246 ## row3 0.03132 ## ## ......suppressing 44 rows ## ## row48 -0.10104 ## row49 0.05928 ## row50 0.02156"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"rowsums-1","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"rowSums","title":"Operations","text":"","code":"dbMatrix::rowSums(dense) ## 50 x 1 matrix of class \"dbDenseMatrix\" ## [[ Colnames: 'col1' ]] ## Warning: ORDER BY is ignored in subqueries without LIMIT ## ℹ Do you need to move arrange() later in the pipeline or use window_order() instead? ## ## row1 2.681 ## row2 0.123 ## row3 1.566 ## ## ......suppressing 44 rows ## ## row48 -5.052 ## row49 2.964 ## row50 1.078"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"mean","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"mean","title":"Operations","text":"","code":"dbMatrix::mean(dense) ## [1] -0.0096724"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"dim-1","dir":"Articles","previous_headings":"dbDenseMatrix Operations","what":"dim","title":"Operations","text":"","code":"dim(dense) ## [1] 50 50"},{"path":"https://drieslab.github.io/dbMatrix/articles/operations.html","id":"session-info","dir":"Articles","previous_headings":"","what":"Session Info","title":"Operations","text":"","code":"sessionInfo() ## R version 4.4.1 (2024-06-14) ## Platform: x86_64-pc-linux-gnu ## Running under: Ubuntu 22.04.5 LTS ## ## Matrix products: default ## BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 ## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so; LAPACK version 3.10.0 ## ## locale: ## [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8 ## [4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8 ## [7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C ## [10] LC_TELEPHONE=C ## [ reached getOption(\"max.print\") -- omitted 2 entries ] ## ## time zone: UTC ## tzcode source: system (glibc) ## ## attached base packages: ## [1] stats graphics grDevices utils datasets methods base ## ## other attached packages: ## [1] Matrix_1.7-0 dbMatrix_0.0.0.9022 ## ## loaded via a namespace (and not attached): ## [1] jsonlite_1.8.8 crayon_1.5.3 dplyr_1.1.4 compiler_4.4.1 ## [5] tidyselect_1.2.1 blob_1.2.4 jquerylib_0.1.4 systemfonts_1.1.0 ## [9] textshaping_0.4.0 yaml_2.3.10 ## [ reached getOption(\"max.print\") -- omitted 38 entries ]"},{"path":"https://drieslab.github.io/dbMatrix/articles/overview.html","id":"dbmatrix","dir":"Articles","previous_headings":"","what":"dbMatrix","title":"Overview","text":"dbMatrix core package dbverse library inherits dbData base class consists two subclasses, dbSparseMatrix dbDenseMatrix. dbMatrix objects emulate -memory dense sparse matrices embedded database powered DuckDB.","code":""},{"path":"https://drieslab.github.io/dbMatrix/articles/overview.html","id":"dbsparsematrix","dir":"Articles","previous_headings":"","what":"dbSparseMatrix","title":"Overview","text":"Sparse matrices represented triplet vectors , j, x numerical vectors. j refer row column indices, respectively, specific x values counts. Note: j vectors one-based following conventions Matrix R package TSparseMatrix class. dbSparseMatrix class stores triplet vector representation associated dimension names dimensions available. none provided, automatically generated factors (enums) row# col# labels rownames colnames, respectively. dbSparseMatrix class contain zeros triplet vector representation. Zero values inferred based provided dimensions. Support compressed sparse column matrices dgCMatrix class Matrix R package currently implemented. information sparse matrices, see wiki article .","code":""},{"path":"https://drieslab.github.io/dbMatrix/articles/overview.html","id":"dbdensematrix","dir":"Articles","previous_headings":"","what":"dbDenseMatrix","title":"Overview","text":"use approach dbSparseMatrix represent dense matrix triplet , j, x vector. difference dbDenseMatrix class consists values matrix, including zeros.","code":""},{"path":"https://drieslab.github.io/dbMatrix/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Edward C. Ruiz. Author, maintainer. Jiaji George Chen. Author. Ruben Dries. Author.","code":""},{"path":"https://drieslab.github.io/dbMatrix/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"C. Ruiz E, George Chen J, Dries R (2024). dbMatrix: dbMatrix. R package version 0.0.0.9022, https://drieslab.github.io/dbMatrix/.","code":"@Manual{, title = {dbMatrix: dbMatrix}, author = {Edward {C. Ruiz} and Jiaji {George Chen} and Ruben Dries}, year = {2024}, note = {R package version 0.0.0.9022}, url = {https://drieslab.github.io/dbMatrix/}, }"},{"path":"https://drieslab.github.io/dbMatrix/index.html","id":"dbmatrix","dir":"","previous_headings":"","what":"dbMatrix","title":"dbMatrix","text":"dbMatrix core package dbverse library. goal dbMatrix support larger--memory matrix computations. Note: Work progress! Bugs unexpected behavior likely occur. welcome user feedback reporting issues Github page.","code":""},{"path":"https://drieslab.github.io/dbMatrix/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"dbMatrix","text":"can install development version dbMatrix Github like :","code":"# install.packages(\"pak\", repos = sprintf(\"https://r-lib.github.io/p/pak/stable/%s/%s/%s\", .Platform$pkgType, R.Version()$os, R.Version()$arch)) pak::pak(\"drieslab/dbMatrix\")"},{"path":"https://drieslab.github.io/dbMatrix/reference/as.matrix-dbMatrix-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Convert dbMatrix to in-memory matrix — as.matrix,dbMatrix-method","title":"Convert dbMatrix to in-memory matrix — as.matrix,dbMatrix-method","text":"Converts dbMatrix object -memory matrix sparse matrix.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/as.matrix-dbMatrix-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Convert dbMatrix to in-memory matrix — as.matrix,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' as.matrix(x, ...)"},{"path":"https://drieslab.github.io/dbMatrix/reference/as.matrix-dbMatrix-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Convert dbMatrix to in-memory matrix — as.matrix,dbMatrix-method","text":"x dbMatrix object (dbSparseMatrix dbDenseMatrix) ... Additional arguments (used)","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/as.matrix-dbMatrix-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Convert dbMatrix to in-memory matrix — as.matrix,dbMatrix-method","text":"Matrix::dgCMatrix base R matrix","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/as.matrix-dbMatrix-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Convert dbMatrix to in-memory matrix — as.matrix,dbMatrix-method","text":"method converts dbMatrix object (dbSparseMatrix dbDenseMatrix) -memory Matrix::dgCMatrix (sparse) base R matrix (dense). Warning: can cause memory issues input matrix large.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbList-DBIConnection-method.html","id":null,"dir":"Reference","previous_headings":"","what":"List remote tables, temporary tables, and views — dbList,DBIConnection-method","title":"List remote tables, temporary tables, and views — dbList,DBIConnection-method","text":"Pretty prints tables, temporary tables, views database.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbList-DBIConnection-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"List remote tables, temporary tables, and views — dbList,DBIConnection-method","text":"","code":"# S4 method for class 'DBIConnection' dbList(conn)"},{"path":"https://drieslab.github.io/dbMatrix/reference/dbList-DBIConnection-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"List remote tables, temporary tables, and views — dbList,DBIConnection-method","text":"conn DBIConnection object, returned dbConnect().","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbList-DBIConnection-method.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"List remote tables, temporary tables, and views — dbList,DBIConnection-method","text":"Similar DBI::dbListTables, categorizes tables three categories: Tables Temporary Tables (removed connection closed) Views (may removed connection closed)","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a dbSparseMatrix or dbDenseMatrix object — dbMatrix","title":"Create a dbSparseMatrix or dbDenseMatrix object — dbMatrix","text":"Create S4 dbMatrix object sparse dense triplet vector format.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a dbSparseMatrix or dbDenseMatrix object — dbMatrix","text":"","code":"dbMatrix( value, class = NULL, con = NULL, overwrite = FALSE, name = \"dbMatrix\", dims = NULL, dim_names = NULL, mtx_rowname_file_path, mtx_rowname_col_idx = 1, mtx_colname_file_path, mtx_colname_col_idx = 1, ... )"},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a dbSparseMatrix or dbDenseMatrix object — dbMatrix","text":"value data added database. See details supported data types (required) class class dbMatrix: dbDenseMatrix dbSparseMatrix (required) con DBI duckdb connection object (required) overwrite whether overwrite table already exists database (required) name table name assign within database (required, default: \"dbMatrix\") dims dimensions matrix (optional: [int, int]) dim_names dimension names matrix (optional: list(enum, enum)) mtx_rowname_file_path path .mtx rowname file read (optional) database. default, header assumed. mtx_rowname_col_idx column index row name file (optional) mtx_colname_file_path path .mtx colname file read database. default, header assumed. (optional) mtx_colname_col_idx column index column name file (optional) ... additional params pass","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Create a dbSparseMatrix or dbDenseMatrix object — dbMatrix","text":"function reads data pre-existing DuckDB database. Supported value data types: dgCMatrix -memory sparse matrix Matrix package dgTMatrix -memory triplet vector COO matrix matrix -memory dense matrix base R .mtx Path .mtx file .csv Path .csv file tbl_duckdb_connection Table DuckDB database ijx format existing dbMatrix object. dims dim_names must specified value tbl_duckdb_connection.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a dbSparseMatrix or dbDenseMatrix object — dbMatrix","text":"","code":"dgc = readRDS(system.file(\"data\", \"dgc.rds\", package = \"dbMatrix\")) #> Loading required package: Matrix con <- DBI::dbConnect(duckdb::duckdb(), \":memory:\") dbSparse <- dbMatrix( value = dgc, con = con, name = \"sparse_matrix\", class = \"dbSparseMatrix\", overwrite = TRUE ) dbSparse #> 634 x 624 matrix of class \"dbSparseMatrix\" #> [[ Colnames 'AAAGGGATGTAGCAAG-1', 'AAATGGCATGTCTTGT-1', 'AAATGGTCAATGTGCC-1' ... suppressing 618 ...'TTGTCGTTCAGTTACC-1', 'TTGTGGCCCTGACAGT-1', 'TTGTTCAGTGTGCTAC-1' ]] #> #> Gna12 1 2 1 1 9 1 3 5 3 . #> Ccnd2 . 1 1 . . 1 . 1 1 . #> Btbd17 . 1 1 1 . . 2 . . . #> #> ......suppressing 614 columns and 628 rows #> #> Gm19935 . 1 . . . . . . . . #> 9630013A20Rik . . . . . . . . . . #> 2900040C04Rik 1 . . . . . . . . 1"},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix_from_tbl.html","id":null,"dir":"Reference","previous_headings":"","what":"dbMatrix_from_tbl — dbMatrix_from_tbl","title":"dbMatrix_from_tbl — dbMatrix_from_tbl","text":"Construcst dbSparseMatrix object tbl_duckdb_connection object.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix_from_tbl.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"dbMatrix_from_tbl — dbMatrix_from_tbl","text":"","code":"dbMatrix_from_tbl( tbl, rownames_colName, colnames_colName, name = \"dbMatrix\", overwrite = FALSE )"},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix_from_tbl.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"dbMatrix_from_tbl — dbMatrix_from_tbl","text":"tbl tbl_duckdb_connection table DuckDB database long format rownames_colName character column name rownames tbl (required) colnames_colName character column name colnames tbl (required) name table name assign within database (required, default: \"dbMatrix\") overwrite whether overwrite table already exists database (required) con DBI duckdb connection object (required)","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix_from_tbl.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"dbMatrix_from_tbl — dbMatrix_from_tbl","text":"dbMatrix object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dbMatrix_from_tbl.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"dbMatrix_from_tbl — dbMatrix_from_tbl","text":"tbl_duckdb_connection object must contain dimension names.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dim-dbMatrix-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Dimensions of an Object — dim,dbMatrix-method","title":"Dimensions of an Object — dim,dbMatrix-method","text":"Retrieve dimension object.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dim-dbMatrix-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Dimensions of an Object — dim,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' dim(x)"},{"path":"https://drieslab.github.io/dbMatrix/reference/dim-dbMatrix-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Dimensions of an Object — dim,dbMatrix-method","text":"x dbMatrix object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_con.html","id":null,"dir":"Reference","previous_headings":"","what":"Input validation for conn arg — .check_con","title":"Input validation for conn arg — .check_con","text":"Input validation conn arg","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_con.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Input validation for conn arg — .check_con","text":"","code":".check_con(conn)"},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_con.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Input validation for conn arg — .check_con","text":"conn tbl_duckdb_connection object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_name.html","id":null,"dir":"Reference","previous_headings":"","what":"Input validation for name arg — .check_name","title":"Input validation for name arg — .check_name","text":"Input validation name arg","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_name.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Input validation for name arg — .check_name","text":"","code":".check_name(name)"},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_overwrite.html","id":null,"dir":"Reference","previous_headings":"","what":"Input validation for overwrite arg — .check_overwrite","title":"Input validation for overwrite arg — .check_overwrite","text":"Input validation overwrite arg","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_overwrite.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Input validation for overwrite arg — .check_overwrite","text":"","code":".check_overwrite(conn, overwrite, name, skip_value_check = FALSE)"},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_value.html","id":null,"dir":"Reference","previous_headings":"","what":"Input validation for data arg — .check_value","title":"Input validation for data arg — .check_value","text":"Input validation data arg","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_value.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Input validation for data arg — .check_value","text":"","code":".check_value(value)"},{"path":"https://drieslab.github.io/dbMatrix/reference/dot-check_value.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Input validation for data arg — .check_value","text":"x Matrix, matrix, tbl_duckdb_connection object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dim.html","id":null,"dir":"Reference","previous_headings":"","what":"get_MM_dim — get_MM_dim","title":"get_MM_dim — get_MM_dim","text":"Internal function read dimensions .mtx file","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dim.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"get_MM_dim — get_MM_dim","text":"","code":"get_MM_dim(mtx_file_path)"},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dim.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"get_MM_dim — get_MM_dim","text":"mtx_file_path path .mtx file read database","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dim.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"get_MM_dim — get_MM_dim","text":"integer vector dimensions","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dim.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"get_MM_dim — get_MM_dim","text":"Scans header mtx file (starting %) takes one line representing dimensions number nonzero values. Note: header size can vary depending .mtx file.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dimnames.html","id":null,"dir":"Reference","previous_headings":"","what":"get_MM_dimnames — get_MM_dimnames","title":"get_MM_dimnames — get_MM_dimnames","text":"Internal function read row column names .mtx file","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dimnames.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"get_MM_dimnames — get_MM_dimnames","text":"","code":"get_MM_dimnames( mtx_file_path, mtx_rowname_file_path, mtx_rowname_col_idx = 1, mtx_colname_file_path, mtx_colname_col_idx = 1, ... )"},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dimnames.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"get_MM_dimnames — get_MM_dimnames","text":"mtx_file_path path .mtx file read database mtx_rowname_file_path path .mtx rowname file read database. default, header assumed. mtx_rowname_col_idx column index row name file mtx_colname_file_path path .mtx colname file read database. default, header assumed. mtx_colname_col_idx column index column name file ... additional params pass data.table::fread","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dimnames.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"get_MM_dimnames — get_MM_dimnames","text":"list row column name character vectors","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_MM_dimnames.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"get_MM_dimnames — get_MM_dimnames","text":"Can used read row column names .mtx files. Note: files must contain header (colnames). mtx_rowname_col_idx mtx_colname_col_idx can used specify column index row column name files, respectively. default, first column used . TODO: Support reading rownames colnames.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_con.html","id":null,"dir":"Reference","previous_headings":"","what":"get_con — get_con","title":"get_con — get_con","text":"get_con","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_con.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"get_con — get_con","text":"","code":"get_con(dbMatrix)"},{"path":"https://drieslab.github.io/dbMatrix/reference/get_con.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"get_con — get_con","text":"dbMatrix","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_dbdir.html","id":null,"dir":"Reference","previous_headings":"","what":"get_dbdir — get_dbdir","title":"get_dbdir — get_dbdir","text":"get_dbdir","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_dbdir.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"get_dbdir — get_dbdir","text":"","code":"get_dbdir(dbMatrix)"},{"path":"https://drieslab.github.io/dbMatrix/reference/get_dbdir.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"get_dbdir — get_dbdir","text":"dbMatrix","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_tblName.html","id":null,"dir":"Reference","previous_headings":"","what":"get_tblName — get_tblName","title":"get_tblName — get_tblName","text":"get_tblName","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/get_tblName.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"get_tblName — get_tblName","text":"","code":"get_tblName(dbMatrix)"},{"path":"https://drieslab.github.io/dbMatrix/reference/get_tblName.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"get_tblName — get_tblName","text":"dbMatrix","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/head_tail.html","id":null,"dir":"Reference","previous_headings":"","what":"Return the First or Last Parts of an Object — head,dbMatrix-method","title":"Return the First or Last Parts of an Object — head,dbMatrix-method","text":"Returns first last parts vector, matrix, table, data frame function. Since head() tail() generic functions, may also extended classes.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/head_tail.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return the First or Last Parts of an Object — head,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' head(x, n = 6L, ...) # S4 method for class 'dbMatrix' tail(x, n = 6L, ...)"},{"path":"https://drieslab.github.io/dbMatrix/reference/head_tail.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Return the First or Last Parts of an Object — head,dbMatrix-method","text":"x object n integer vector length dim(x) (1, non-dimensioned objects). logical silently coerced integer. Values specify indices selected corresponding dimension (along length) object. positive value n[] includes first/last n[] indices dimension, negative value excludes last/first abs(n[]), including remaining indices. NA non-specified values (length(n) < length(dim(x))) select indices dimension. Must contain least one non-missing value. ... arguments passed methods.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/log-dbMatrix-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Logarithms and Exponentials — log,dbMatrix-method","title":"Logarithms and Exponentials — log,dbMatrix-method","text":"log computes logarithms, default natural logarithms, log10 computes common (.e., base 10) logarithms, log2 computes binary (.e., base 2) logarithms. general form log(x, base) computes logarithms base base. log1p(x) computes \\(\\log(1+x)\\) accurately also \\(|x| \\ll 1\\). exp computes exponential function. expm1(x) computes \\(\\exp(x) - 1\\) accurately also \\(|x| \\ll 1\\).","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/log-dbMatrix-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Logarithms and Exponentials — log,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' log(x, base = exp(1))"},{"path":"https://drieslab.github.io/dbMatrix/reference/log-dbMatrix-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Logarithms and Exponentials — log,dbMatrix-method","text":"x numeric complex vector. base positive complex number: base respect logarithms computed. Defaults \\(e\\)=exp(1).","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/map_ijx_dimnames.html","id":null,"dir":"Reference","previous_headings":"","what":"Map dimnames to i,j indices — map_ijx_dimnames","title":"Map dimnames to i,j indices — map_ijx_dimnames","text":"Map dimnames ,j indices","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/map_ijx_dimnames.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Map dimnames to i,j indices — map_ijx_dimnames","text":"","code":"map_ijx_dimnames(dbMatrix, colName_i, colName_j)"},{"path":"https://drieslab.github.io/dbMatrix/reference/map_ijx_dimnames.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Map dimnames to i,j indices — map_ijx_dimnames","text":"dbMatrix dbMatrix object colName_i name column rownames add database colName_j name column colnames add database default: 'FALSE'.'","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/map_ijx_dimnames.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Map dimnames to i,j indices — map_ijx_dimnames","text":"Constructs table database contains accompanying dimnames dbMatrix. resulting columns table: (row index) colName_i (rownames), j (col index) j_names (colnames) x (counts ,j occcurences)","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/matrix_props.html","id":null,"dir":"Reference","previous_headings":"","what":"Retrieve and Set Row (Column) Dimension Names of dbMatrix Objects — rownames,dbMatrix-method","title":"Retrieve and Set Row (Column) Dimension Names of dbMatrix Objects — rownames,dbMatrix-method","text":"Retrieve Set Row (Column) Dimension Names dbMatrix Objects","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/matrix_props.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Retrieve and Set Row (Column) Dimension Names of dbMatrix Objects — rownames,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' rownames(x) # S4 method for class 'dbMatrix' rownames(x) <- value # S4 method for class 'dbMatrix' colnames(x) # S4 method for class 'dbMatrix' colnames(x) <- value # S4 method for class 'dbMatrix' dimnames(x) # S4 method for class 'dbMatrix,list' dimnames(x) <- value"},{"path":"https://drieslab.github.io/dbMatrix/reference/matrix_props.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Retrieve and Set Row (Column) Dimension Names of dbMatrix Objects — rownames,dbMatrix-method","text":"x matrix-like R object, least two dimensions colnames. value valid value component dimnames(x). matrix array either NULL character vector non-zero length equal appropriate dimension. .NULL used method. Included compatibility generic. prefix used method. Included compatibility generic.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/mean.html","id":null,"dir":"Reference","previous_headings":"","what":"Arithmetic Mean for dbMatrix objects — mean,dbDenseMatrix-method","title":"Arithmetic Mean for dbMatrix objects — mean,dbDenseMatrix-method","text":"Generic function (trimmed) arithmetic mean.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/mean.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Arithmetic Mean for dbMatrix objects — mean,dbDenseMatrix-method","text":"","code":"# S4 method for class 'dbDenseMatrix' mean(x, ...) # S4 method for class 'dbSparseMatrix' mean(x, ...)"},{"path":"https://drieslab.github.io/dbMatrix/reference/mean.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Arithmetic Mean for dbMatrix objects — mean,dbDenseMatrix-method","text":"x dbMatrix object ... arguments passed methods.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/nrow_ncol.html","id":null,"dir":"Reference","previous_headings":"","what":"The Number of Rows/Columns of a dbMatrix Object — nrow,dbMatrix-method","title":"The Number of Rows/Columns of a dbMatrix Object — nrow,dbMatrix-method","text":"nrow ncol return number rows columns present x.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/nrow_ncol.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Number of Rows/Columns of a dbMatrix Object — nrow,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' nrow(x) # S4 method for class 'dbMatrix' ncol(x)"},{"path":"https://drieslab.github.io/dbMatrix/reference/nrow_ncol.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Number of Rows/Columns of a dbMatrix Object — nrow,dbMatrix-method","text":"x dbMatrix object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/precompute.html","id":null,"dir":"Reference","previous_headings":"","what":"Precompute a dbMatrix table in a database — precompute","title":"Precompute a dbMatrix table in a database — precompute","text":"Precomputes dbMatrix table specificied database connection. can speed operations involve breaking sparsity dbSparseMatrix, cases performing + - arithmetic operations. Need run .","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/precompute.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Precompute a dbMatrix table in a database — precompute","text":"","code":"precompute(conn, m, n, name, verbose = TRUE)"},{"path":"https://drieslab.github.io/dbMatrix/reference/precompute.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Precompute a dbMatrix table in a database — precompute","text":"conn duckdb database connection m number rows precomputed dbMatrix table n number columns precomputed dbMatrix table name name precomputed dbMatrix table created verbose logical, print progress messages. default: TRUE.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/precompute.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Precompute a dbMatrix table in a database — precompute","text":"tbl_dbi","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/precompute.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Precompute a dbMatrix table in a database — precompute","text":"num_rows num_cols parameters must exceed maximum row column indices dbMatrix order used densifying dbMatrix. params less maximum row column indices precomputed densification process fail. cases, run function larger n_rows num_cols, manually remove precomputed table set options(dbMatrix.precomp = NULL) R console.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/precompute.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Precompute a dbMatrix table in a database — precompute","text":"","code":"con = DBI::dbConnect(duckdb::duckdb(), \":memory:\") precompute(con = con , m = 100, n = 100, name = \"precomputed_table\") #> Error in precompute(con = con, m = 100, n = 100, name = \"precomputed_table\"): could not find function \"precompute\""},{"path":"https://drieslab.github.io/dbMatrix/reference/print_array.html","id":null,"dir":"Reference","previous_headings":"","what":"Generate array for pretty printing of matrix values — print_array","title":"Generate array for pretty printing of matrix values — print_array","text":"Generate array pretty printing matrix values","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/print_array.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Generate array for pretty printing of matrix values — print_array","text":"","code":"print_array( i = NULL, j = NULL, x = NULL, dims, rownames = rep(\"\", dims[1]), fill = \".\", digits = 5L )"},{"path":"https://drieslab.github.io/dbMatrix/reference/print_array.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Generate array for pretty printing of matrix values — print_array","text":", j, x matched vectors integers j, value x dims dimensions array (integer vector 2) fill fill character digits default = 5. numeric, round number digits","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/row_col_means.html","id":null,"dir":"Reference","previous_headings":"","what":"Row (column) means for dbMatrix objects — rowMeans,dbDenseMatrix-method","title":"Row (column) means for dbMatrix objects — rowMeans,dbDenseMatrix-method","text":"Calculates mean row (column) matrix-like object.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/row_col_means.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Row (column) means for dbMatrix objects — rowMeans,dbDenseMatrix-method","text":"","code":"# S4 method for class 'dbDenseMatrix' rowMeans(x, ..., memory = FALSE) # S4 method for class 'dbSparseMatrix' rowMeans(x, ..., memory = FALSE) # S4 method for class 'dbDenseMatrix' colMeans(x, ..., memory = FALSE) # S4 method for class 'dbSparseMatrix' colMeans(x, ..., memory = FALSE)"},{"path":"https://drieslab.github.io/dbMatrix/reference/row_col_means.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Row (column) means for dbMatrix objects — rowMeans,dbDenseMatrix-method","text":"x NxK matrix-like object, numeric data frame, array-like object two dimensions. ... Additional arguments passed specific methods. memory logical. FALSE (default), results returned dbDenseMatrix. recommended large computations. Set TRUE return results vector. na.rm Always TRUE dbMatrix queries. Included compatibility generic. dims Always 1 dbMatrix queries. Included compatibility generic.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/row_col_sums.html","id":null,"dir":"Reference","previous_headings":"","what":"Row (column) sums for dbMatrix objects — rowSums,dbDenseMatrix-method","title":"Row (column) sums for dbMatrix objects — rowSums,dbDenseMatrix-method","text":"Calculates sum row (column) matrix-like object.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/row_col_sums.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Row (column) sums for dbMatrix objects — rowSums,dbDenseMatrix-method","text":"","code":"# S4 method for class 'dbDenseMatrix' rowSums(x, ..., memory = FALSE) # S4 method for class 'dbSparseMatrix' rowSums(x, ..., memory = FALSE) # S4 method for class 'dbDenseMatrix' colSums(x, ..., memory = FALSE) # S4 method for class 'dbSparseMatrix' colSums(x, ..., memory = FALSE)"},{"path":"https://drieslab.github.io/dbMatrix/reference/row_col_sums.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Row (column) sums for dbMatrix objects — rowSums,dbDenseMatrix-method","text":"x NxK matrix-like object, numeric data frame, array-like object two dimensions. ... Additional arguments passed specific methods. memory logical. FALSE (default), results returned dbDenseMatrix. recommended large computations. Set TRUE return results vector. na.rm Always TRUE dbMatrix queries. Included compatibility generic. dims Always 1 dbMatrix queries. Included compatibility generic.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/sds.html","id":null,"dir":"Reference","previous_headings":"","what":"Row (column) standard deviations for dbMatrix objects — colSds,dbDenseMatrix-method","title":"Row (column) standard deviations for dbMatrix objects — colSds,dbDenseMatrix-method","text":"Calculates standard deviation row (column) matrix-like object.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/sds.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Row (column) standard deviations for dbMatrix objects — colSds,dbDenseMatrix-method","text":"","code":"# S4 method for class 'dbDenseMatrix' colSds( x, rows = NULL, cols = NULL, na.rm = FALSE, center = NULL, ..., useNames = TRUE ) # S4 method for class 'dbSparseMatrix' colSds( x, rows = NULL, cols = NULL, na.rm = FALSE, center = NULL, ..., useNames = TRUE ) # S4 method for class 'dbDenseMatrix' rowSds( x, rows = NULL, cols = NULL, na.rm = FALSE, center = NULL, ..., useNames = TRUE ) # S4 method for class 'dbSparseMatrix' rowSds( x, rows = NULL, cols = NULL, na.rm = FALSE, center = NULL, ..., useNames = TRUE )"},{"path":"https://drieslab.github.io/dbMatrix/reference/sds.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Row (column) standard deviations for dbMatrix objects — colSds,dbDenseMatrix-method","text":"x NxK matrix-like object. rows, cols Always NULL dbMatrix queries. Included compatibility generic. na.rm Always TRUE dbMatrix queries. Included compatibility generic. center Always NULL dbMatrix queries. Included compatibility generic. ... Additional arguments passed specific methods. useNames Always TRUE dbMatrix queries. Included compatibility generic. dim Always NULL dbMatrix queries. Included compatibility generic.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":null,"dir":"Reference","previous_headings":"","what":"sim_dgc — sim_duckdb","title":"sim_dgc — sim_duckdb","text":"Simulate dbSparseMatrix memory Simulate dbDenseMatrix memory.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"sim_dgc — sim_duckdb","text":"","code":"sim_duckdb(value = datasets::iris, name = \"test\", con = NULL, memory = TRUE) sim_dgc(num_rows = 50, num_cols = 50, n_vals = 50) sim_denseMat(num_rows = 50, num_cols = 50) sim_ijx_matrix(mat_type = NULL, num_rows = 50, num_cols = 50, seed_num = 42) sim_dbSparseMatrix( num_rows = 50, num_cols = 50, seed_num = 42, name = \"sparse_test\", memory = FALSE ) sim_dbDenseMatrix( num_rows = 50, num_cols = 50, seed_num = 42, name = \"dense_test\", memory = FALSE )"},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"sim_dgc — sim_duckdb","text":"num_rows number rows matrix (default: 50) num_cols number columns matrix (default: 50) seed_num seed number reproducibility (default: 42)","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"sim_dgc — sim_duckdb","text":"dgCMatrix object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"sim_dgc — sim_duckdb","text":"function generates simulated sparse matrix (dgCMatrix) number rows columns sets n_vals random values non-zero value. function generates simulated dense matrix object specified number rows columns. function generates ijx representation simulated dgCMatrix object specified number rows columns sets 50 random values non-zero value.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":"functions","dir":"Reference","previous_headings":"","what":"Functions","title":"sim_dgc — sim_duckdb","text":"sim_duckdb(): Simulate duckdb connection dplyr tbl_Pool memory sim_dgc(): Simulate dgcMatrix sim_denseMat(): Simulate dense matrix sim_ijx_matrix(): Simulate duckdb connection dplyr tbl_Pool memory sim_dbSparseMatrix(): Simulate dbSparseMatrix memory sim_dbDenseMatrix(): Simulate dbDenseMatrix memory","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/simulate_objects.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"sim_dgc — sim_duckdb","text":"","code":"sim_ijx_matrix() #> Error in sim_ijx_matrix(): could not find function \"sim_ijx_matrix\""},{"path":"https://drieslab.github.io/dbMatrix/reference/sum-dbMatrix-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Sum of Vector Elements in dbMatrix objects — sum,dbMatrix-method","title":"Sum of Vector Elements in dbMatrix objects — sum,dbMatrix-method","text":"sum returns sum values present arguments.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/sum-dbMatrix-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Sum of Vector Elements in dbMatrix objects — sum,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' sum(x, na.rm = TRUE)"},{"path":"https://drieslab.github.io/dbMatrix/reference/sum-dbMatrix-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Sum of Vector Elements in dbMatrix objects — sum,dbMatrix-method","text":"x dbMatrix object na.rm Always TRUE dbMatrix queries. Included compatibility generic.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/t-dbMatrix-method.html","id":null,"dir":"Reference","previous_headings":"","what":"Matrix Transpose — t,dbMatrix-method","title":"Matrix Transpose — t,dbMatrix-method","text":"Given dbMatrix x, t returns transpose x.","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/t-dbMatrix-method.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Matrix Transpose — t,dbMatrix-method","text":"","code":"# S4 method for class 'dbMatrix' t(x)"},{"path":"https://drieslab.github.io/dbMatrix/reference/t-dbMatrix-method.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Matrix Transpose — t,dbMatrix-method","text":"x dbMatrix object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/t-dbMatrix-method.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Matrix Transpose — t,dbMatrix-method","text":"dbMatrix object","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/to_ijx_disk.html","id":null,"dir":"Reference","previous_headings":"","what":"to_ijx_disk — to_ijx_disk","title":"to_ijx_disk — to_ijx_disk","text":"to_ijx_disk","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/to_ijx_disk.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"to_ijx_disk — to_ijx_disk","text":"","code":"to_ijx_disk(con, name)"},{"path":"https://drieslab.github.io/dbMatrix/reference/to_ijx_disk.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"to_ijx_disk — to_ijx_disk","text":"con duckdb connection name name table convert ijx disk","code":""},{"path":"https://drieslab.github.io/dbMatrix/reference/to_ijx_disk.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"to_ijx_disk — to_ijx_disk","text":"remote table long format unpivoted wide format matrix","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"breaking-changes-0-0-0-9022","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"dbMatrix 0.0.0.9022 (2024-08-14)","text":"Rename dbMatrix constructor dbMatrix::dbMatrix().","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9022","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9022 (2024-08-14)","text":"Add tests dbMatrix dbDenseMatrix. Add internal function map_ijx_dimnames. Add internal function dbMatrix_from_tbl. Extract now constructs unique temporary virtual tables arrow schema.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9022","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9022 (2024-08-14)","text":"Document pkgdown website. Add cli imports. Update generics.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9022","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9022 (2024-08-14)","text":"explicit non-supported Arith Ops operations. Fix show() method dbDenseMatrix objects.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9021","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9021 (2024-07-05)","text":"Improve show function dbDenseMatrix. Updated simulate functions include overwrite param. Update .check_overwrite() internal function avoid bug overwritting passed table.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9020","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9020 (2024-07-05)","text":"Add initial support reading .mtx files creating dbMatrix objects.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9020","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9020 (2024-07-05)","text":"Update check_overwrite input validation","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9020","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9020 (2024-07-05)","text":"Update Royxgen","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9019","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9019 (2024-03-18)","text":"Add new precompute function speed matrix densification. Add new show function dbDenseMatrix pretty color better spacing. Add new save function save dbMatrix. Add new input validation functions.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9019","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9019 (2024-03-18)","text":"Update docs. Update imports include glue, bit64 crayon.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9018","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9018 (2024-02-12)","text":"Update constructor calls sim functions. Remove redundant con constructor. Remove db_path constructor. Constructor db_path arg change con object.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9018","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9018 (2024-02-12)","text":"Add dgTMatrix -memory matrix types supported dbMatrix constructor.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9018","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9018 (2024-02-12)","text":"Set :memory: default db_path constructor. Update createDBMatrix docs.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"documentation-0-0-0-9018","dir":"Changelog","previous_headings":"","what":"Documentation","title":"dbMatrix 0.0.0.9018 (2024-02-12)","text":"Spacing. Update constructor fix. Remove :temp: place :memory:.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9017","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9017 (2024-02-07)","text":"Remove “:temp:” tests. Replace ‘:temp:’ ‘:memory:’. Add matrix addition dgCMatrix as_ijx().","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9017","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9017 (2024-02-07)","text":"Add unit tests scalar arith. Add unit tests names.R.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9017","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9017 (2024-02-07)","text":"Remove random browser() call. Add MatrixGenerics deps. Update gitignore.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9016","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9016 (2024-01-23)","text":"Add boolean indexing tests test-extract.R. Add as_ijx() convenience function. Update createDBMatrix() use dplyr::copy_to(). Update as_matrix() convenience function. Add unit tests extract methods.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9015","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9015 (2024-01-22)","text":"Add log(). Update toDbDense use dplyr instead SQL.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9015","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9015 (2024-01-22)","text":"Update DESCRIPTION include testthat. Update docs.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9014","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9014 (2024-01-19)","text":"update dbIndex superclass update as_matrix()","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9013","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9013 (2024-01-18)","text":"Rename update dbIndex superclass fix indexing bugs.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9013","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9013 (2024-01-18)","text":"Add experimental as_matrix() convenience function.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9013","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9013 (2024-01-18)","text":"Update docs. Migrate site link drieslab. Move {Matrix} Imports.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"documentation-0-0-0-9013","dir":"Changelog","previous_headings":"","what":"Documentation","title":"dbMatrix 0.0.0.9013 (2024-01-18)","text":"Update overview.Rmd. Update operations vignette.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9012","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9012 (2023-12-08)","text":"densify necessary. != 0, +/-. toDbDense() previously updated table value. change update reference via VIEW creation table named ‘dense’.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9012","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9012 (2023-12-08)","text":"Add dbListTables().","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9012","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9012 (2023-12-08)","text":"Update docs. Update gitignore.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9011","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9011 (2023-12-08)","text":"Fix incorrect aggregate operations. Fixes con slot removal.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9011","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9011 (2023-12-08)","text":"Add get_con(). Add dbDisconnect() generic. Update accessors.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9011","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9011 (2023-12-08)","text":"Update vignettes. Update README. Update gitignore. Update docs. Update NEWS.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"breaking-changes-0-0-0-9010","dir":"Changelog","previous_headings":"","what":"Breaking changes","title":"dbMatrix 0.0.0.9010 (2023-11-25)","text":"migrate |> pipe, remove %>%, update deps.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9010","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9010 (2023-11-25)","text":"Update docs.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9009","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9009 (2023-11-20)","text":"Mean generic dbDenseMatrix.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9009","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9009 (2023-11-20)","text":"Update docs. Update site. Update gitignore.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9008","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9008 (2023-11-17)","text":"Updates dbSparseMatrix rowMeans, colMeans. Updates colSums rowSums dbSparseMatrix. Update dbMatrix constructor dimnames issues.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9008","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9008 (2023-11-17)","text":"Update DESCRIPTION, remove redundant Matrix import, dep. Update docs. Update roxygen operations.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9007","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9007 (2023-11-09)","text":"Add Matrix dep.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9006","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9006 (2023-11-09)","text":"Methods::scope correction.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"features-0-0-0-9006","dir":"Changelog","previous_headings":"","what":"Features","title":"dbMatrix 0.0.0.9006 (2023-11-09)","text":"Add methods deps.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9006","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9006 (2023-11-09)","text":"Update .gitignore.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"feat-0-0-0-9005","dir":"Changelog","previous_headings":"","what":"Feat","title":"dbMatrix 0.0.0.9005 (2023-11-09)","text":"Add Matrix pkg dep","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"bug-fixes-0-0-0-9004","dir":"Changelog","previous_headings":"","what":"Bug fixes","title":"dbMatrix 0.0.0.9004 (2023-11-09)","text":"Missing Matrix:: scope call.","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9004","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9004 (2023-11-09)","text":"Update docs.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"fix-0-0-0-9003","dir":"Changelog","previous_headings":"","what":"Fix","title":"dbMatrix 0.0.0.9003 (2023-11-07)","text":"dims dim_names createDBMatrix() retained -memory matrix Matrix object","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9003","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9003 (2023-11-07)","text":"Update docs dbMatrix input checks","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"feat-0-0-0-9002","dir":"Changelog","previous_headings":"","what":"Feat","title":"dbMatrix 0.0.0.9002 (2023-11-07)","text":"Specify checks ‘name’ param createDBMatrix()","code":""},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9002","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9002 (2023-11-07)","text":"Update docs. Add docs.","code":""},{"path":[]},{"path":"https://drieslab.github.io/dbMatrix/news/index.html","id":"chore-0-0-0-9001","dir":"Changelog","previous_headings":"","what":"Chore","title":"dbMatrix 0.0.0.9001 (2023-11-04)","text":"Update docs DESCRIPTION. Migration dbMatrix.","code":""}] diff --git a/sitemap.xml b/sitemap.xml index 6cb7d3f..28e9334 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -9,7 +9,8 @@ https://drieslab.github.io/dbMatrix/authors.html https://drieslab.github.io/dbMatrix/index.html https://drieslab.github.io/dbMatrix/news/index.html -https://drieslab.github.io/dbMatrix/reference/colTypes.html +https://drieslab.github.io/dbMatrix/reference/as.matrix-dbMatrix-method.html +https://drieslab.github.io/dbMatrix/reference/dbList-DBIConnection-method.html https://drieslab.github.io/dbMatrix/reference/dbMatrix.html https://drieslab.github.io/dbMatrix/reference/dbMatrix_from_tbl.html https://drieslab.github.io/dbMatrix/reference/dim-dbMatrix-method.html @@ -26,14 +27,16 @@ https://drieslab.github.io/dbMatrix/reference/index.html https://drieslab.github.io/dbMatrix/reference/log-dbMatrix-method.html https://drieslab.github.io/dbMatrix/reference/map_ijx_dimnames.html +https://drieslab.github.io/dbMatrix/reference/matrix_props.html https://drieslab.github.io/dbMatrix/reference/mean.html https://drieslab.github.io/dbMatrix/reference/nrow_ncol.html https://drieslab.github.io/dbMatrix/reference/precompute.html https://drieslab.github.io/dbMatrix/reference/print_array.html -https://drieslab.github.io/dbMatrix/reference/row_col_sums_means.html -https://drieslab.github.io/dbMatrix/reference/save.html +https://drieslab.github.io/dbMatrix/reference/row_col_means.html +https://drieslab.github.io/dbMatrix/reference/row_col_sums.html https://drieslab.github.io/dbMatrix/reference/sds.html https://drieslab.github.io/dbMatrix/reference/simulate_objects.html +https://drieslab.github.io/dbMatrix/reference/sum-dbMatrix-method.html https://drieslab.github.io/dbMatrix/reference/t-dbMatrix-method.html https://drieslab.github.io/dbMatrix/reference/to_ijx_disk.html