Proposal to migrate `DelayedMask` to the DelayedArray package
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 20/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- r
- 领域
- data, performance
调研方向
首先检查 alabaster.matrix 中的 DelayedMask 实现,以及 DelayedArray 对延迟 [<- 的处理,包括 DelayedNaryIsoOp 和 extract_*_array() 调用。确定迁移或通用掩码是否应归入 DelayedArray,并记录提议的行为和效率权衡;完成工作需要达成一致的实现范围或由 maintainer 作出决定。
由索引模型根据 Issue 内容生成。
描述
My alabaster.matrix package has a DelayedMask class that replaces all instances of a placeholder with an NA value during extract_*_array() calls. Essentially, it is equivalent to:
library(DelayedArray)
y <- DelayedArray(matrix(rbinom(100, 1, 0.2), ncol=5))
placeholder <- 1
z <- y
z[z == placeholder] <- NA
# Gives the same (abstract) matrix contents as:
alabaster.matrix::DelayedMask(y, placeholder)
AFAICT the DelayedMask approach should be more efficient as the DelayedMask only realizes one matrix while the delayed [<- requires realization of both z and z == placeholder. (Currently DelayedMask is literally for masking NAs but it could be generalized to handle more boolean operations, e.g., so z[z > cap] <- cap could be used to upper-bound the contents of the matrix.)
Would this be of interest to the DelayedArray package? Perhaps there might be an easy way that we can detect that the logical subset is generated from the same matrix that it is operating on in [<-, and switch from creating a DelayedNaryIsoOp to a DelayedMask.
- 主要语言
- R
- 星标
- 29
- 派生
- 12
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Bioconductor/DelayedArray 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 38/100
Bioconductor/DelayedArray#129 · 11 条评论 ·
-
难度 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 ·
-
`base::cbind()` 未关闭
难度 4/5 3-5 天 新手友好度 35/100
Bioconductor/DelayedArray#116 · 3 条评论 ·
查看 Bioconductor/DelayedArray 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
briandconnelly/airnow#9 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
OHDSI/CohortConstructor#774 ·
-
pre-review R TeX Track: 5 (DSAIS)
难度 1/5 1 小时以内 新手友好度 60/100
openjournals/joss-reviews#11330 · 7 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100