Closed zhengxwen closed 4 years ago
SeqArray_1.27.8 fixes the problems.
> system.time({ seqBlockApply(f, "position", function(x) {}) })
user system elapsed
0.367 0.011 0.381
> system.time({ seqBlockApply(f, "variant.id", function(x) {}) })
user system elapsed
0.214 0.004 0.218
> system.time({ seqBlockApply(f, "annotation/qual", function(x) {}) })
user system elapsed
0.038 0.005 0.042
> system.time({ seqBlockApply(f, "annotation/info/DP", function(x) {}) })
user system elapsed
0.390 0.003 0.394
> system.time({ seqBlockApply(f, "annotation/info/AA", function(x) {}) })
user system elapsed
0.255 0.003 0.258
Direct read data without blocking:
> system.time(z <- seqGetData(f, "position"))
user system elapsed
0.006 0.003 0.009
> system.time(z <- seqGetData(f, "variant.id"))
user system elapsed
0.209 0.004 0.216
> system.time(z <- seqGetData(f, "annotation/qual"))
user system elapsed
0.032 0.009 0.041
> system.time(z <- seqGetData(f, "annotation/info/DP"))
user system elapsed
0.388 0.002 0.391
> system.time(z <- seqGetData(f, "annotation/info/AA"))
user system elapsed
0.259 0.028 0.290
1KG chrX gds file is downloaded from gds-stat.
seqBlockApply()
callsseqGetData()
internally.