Displaying 1 result from an estimated 1 matches for "gcsconnection".
2020 Jun 29
0
A warning in gzcon but not in gzfile
...show the first 1000 lines successfully. However, if I
wrap the raw vector as a connection, and use `gzcon` to read from that
connection, it shows the first 884 lines along with a warning(see the
output).
code:
> # installed.packages("BiocManager")
> # BiocManager::install("GCSConnection", version = "devel")
> library(GCSConnection)
> ## Download data from cloud
> uri <-
> "gs://gnomad-public/release/3.0/vcf/genomes/gnomad.genomes.r3.0.sites.chr1.vcf.bgz"
> con <- gcs_connection(uri)
> data <- readBin(con, raw(), 4*1024*1024)
>...