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 · 13 則留言 ·
-
難度 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
-
Affects Web App documentation PRIORITY LOW
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 1/5 1 小時以內 新手友好度 80/100
hubverse-org/hubCI#36 ·
-
難度 1/5 1 小時以內 新手友好度 85/100
-
Release 1.4.0 未關閉
難度 2/5 1-3 小時 新手友好度 70/100
pharmaverse/pharmaverseadam#170 ·