possble DelayedArray constructor over `IntegerList` (or other `List`)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia dal costruttore di DelayedArray e riproduci l’esempio IntegerList dell’issue, confrontandolo con DelayedArray(array(XX)). Determina l’ambito necessario per il supporto diretto di List e verifica che lo slicing restituisca una IntegerList anziché una lista ordinaria.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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>
- Lingua principale
- R
- Stelle
- 29
- Fork
- 12
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Bioconductor/DelayedArray
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
Bioconductor/DelayedArray#129 · 4 commenti ·
-
Custom delayed operations Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Bioconductor/DelayedArray#127 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
Bioconductor/DelayedArray#125 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
Bioconductor/DelayedArray#123 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
Bioconductor/DelayedArray#122 ·