Support for RleListMatrix (?)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Trước tiên, hãy xem xét issue liên quan #27 và ví dụ DelayedArray/VariantAnnotation. Điều tra xem RleListMatrix có cung cấp khả năng nén hữu ích cho các ma trận gồm các danh sách hay không, sau đó xác lập các tiêu chí hỗ trợ và xác thực cần thiết. Để được xem là hoàn thành, cần có phạm vi triển khai đã được thống nhất và bằng chứng cho thấy biểu diễn này mang lại lợi ích.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- R
- Star
- 29
- Fork
- 12
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Bioconductor/DelayedArray
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
Bioconductor/DelayedArray#129 · 11 bình luận ·
-
Custom delayed operations Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Bioconductor/DelayedArray#127 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Bioconductor/DelayedArray#125 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Bioconductor/DelayedArray#123 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
Bioconductor/DelayedArray#122 ·
Tất cả issue của Bioconductor/DelayedArray
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
robjhyndman/forecast#1220 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
JamesHWade/deputy#192 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
bug triage_needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pharmaverse/rtables#1123 · 1 bình luận · 1 reaction ·