Support for RleListMatrix (?)
還沒有人認領這個 Issue。
評估
研究方向
首先查看相關 issue #27 和 DelayedArray/VariantAnnotation 範例。調查 RleListMatrix 是否能為列表矩陣提供有用的壓縮,然後確立所需的支援與驗證標準。要視為完成,需要有共識的實作範圍,以及證明此表示方式具有效益的證據。
由索引模型根據 Issue 內容生成。
描述
Related to #27, though I note that the following now works
library(DelayedArray)
DelayedArray(
matrix(
IntegerList(
c(list(c(1L, 1L)), list(c(1L,1L)), list(c(1L,1L)), list(c(2L,2L)))
),
nrow = 2, ncol = 2)
)
#> <2 x 2> matrix of class DelayedMatrix and type "list":
#> [,1] [,2]
#> [1,] 1, 1 1, 1
#> [2,] 1, 1 2, 2
Created on 2020-02-28 by the reprex package (v0.3.0)
Is there a motivation to support RleListMatrix? For the same use case as above, I'm using VariantAnnotation to build a CompressedVcf object and it has matrices of lists. The list elements are in many cases NA so it may be efficient to be able to store these as an Rle-derived object. I can't go as far as to verify that such a structure would benefit from Rle - would the elements be sufficiently contiguous?
My workaround at the moment is to collapse the list elements into single delimited strings, in which case DelayedArray or RleMatrix work out of the box. In this case the string concatenation results in the matrix object decreasing in size by a factor of ~8 (potentially due to global string pooling). Converting to RleMatrix reduces it again by an additional factor of ~16. Total compression from matrix of lists to character RleMatrix is 128x. If RleListMatrix was able provide a comparable benefit without converting to string then that could be very useful.
I'll link another issue to this one specific to VariantAnnotation, but I thought I'd check if this was a) possible; b) useful; and c) of interest.
Ping @lawremi who first proposed investigating support for this structure.
- 主要語言
- R
- 星號
- 29
- 分支
- 12
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Bioconductor/DelayedArray 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 45/100
Bioconductor/DelayedArray#127 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 25/100
Bioconductor/DelayedArray#125 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 45/100
Bioconductor/DelayedArray#123 ·
-
難度 5/5 一週以上 新手友好度 20/100
Bioconductor/DelayedArray#122 ·
-
`base::cbind()` 未關閉
難度 4/5 3-5 天 新手友好度 35/100
Bioconductor/DelayedArray#116 · 3 則留言 ·
查看 Bioconductor/DelayedArray 的全部 Issue
相似的 Issue
-
難度 2/5 半天 新手友好度 78/100
ThinkR-open/datadiff#59 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
-
難度 2/5 1-3 小時 新手友好度 78/100
tidymodels/parsnip#1444 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
-
priority: should UX
難度 2/5 1-3 小時 新手友好度 72/100