possble DelayedArray constructor over `IntegerList` (or other `List`)

オープン
#27 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
r
領域
data

調査の方向性

DelayedArray コンストラクターから始め、issue の IntegerList の例を再現し、DelayedArray(array(XX)) と比較します。List を直接サポートするために必要な範囲を判断し、スライシングによって通常のリストではなく IntegerList が返されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

enhancement

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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Bioconductor/DelayedArray のほかの issue

Bioconductor/DelayedArray の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。