zhengxwen / gdsfmt

R Interface to CoreArray Genomic Data Structure (GDS) Files (Development version only)
http://www.bioconductor.org/packages/gdsfmt
18 stars 4 forks source link

Bug in unload.gdsn() #27

Closed zhengxwen closed 4 years ago

zhengxwen commented 4 years ago

Segfault fails or shows Invalid stream header with random access.

library(gdsfmt)
nm <- "genotype/@data"

fn <- system.file("extdata", "CEU_Exon.gds", package = "SeqArray")
f <- openfn.gds(fn)
(n <- index.gdsn(f, nm))

unload.gdsn(n); n

(n <- index.gdsn(f, nm))