possble DelayedArray constructor over `IntegerList` (or other `List`)
还没有人认领这个 Issue。
评估
调研方向
从 DelayedArray 构造函数开始,复现 issue 中的 IntegerList 示例,并将其与 DelayedArray(array(XX)) 进行比较。确定直接支持 List 所需的范围,并验证切片返回的是 IntegerList,而不是普通 list。
由索引模型根据 Issue 内容生成。
描述
Hi @hpages ,
In the VariantAnnotation package, the CollapsedVCF (or ExpandedVCF) are saving the data entries in IntegerList / CharacterList.... And in the development of VCFArray, we are trying to represent these data entries as DelayedArray instances. Now we are converting the data entries into array to add dimension, and then use the DelayedArray constructor over the array. Is it possible to have the DelayedArray constructor directly work on List object? so that the internal data saving are still using a more efficient way in List structure than the ordinary list? @mtmorgan
> XX <- IntegerList(c(list(rep(NA, 2)), list(rep(NA, 2)), list(rep(NA, 2)), list(rep(NA, 2))))
> XX
IntegerList of length 4
[[1]] <NA> <NA>
[[2]] <NA> <NA>
[[3]] <NA> <NA>
[[4]] <NA> <NA>
> DelayedArray(array(XX))
<4> DelayedArray object of type "list": ## the type is ordinary list.
[1] [2] [3] [4]
NA, NA NA, NA NA, NA NA, NA
!> DelayedArray(array(XX))[1:2]
[[1]]
[1] NA NA
[[2]]
[1] NA NA
## What we want is something like:
!> DelayedArray(XX)
<4> DelayedArray object of type "IntegerList":
[1] [2] [3] [4]
NA, NA NA, NA NA, NA NA, NA
!> DelayedArray(XX)[1:2]
IntegerList of length 2
[[1]] <NA> <NA>
[[2]] <NA> <NA>
- 主要语言
- 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 ·
-
难度 5/5 一周以上 新手友好度 20/100
Bioconductor/DelayedArray#122 ·
查看 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