Displaying 1 result from an estimated 1 matches for "gcs_connect".
Did you mean:
xcs_connect
2020 Jun 29
0
A warning in gzcon but not in gzfile
...("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)
> close(con)
>
## write data to a file
> file_path <- tempfile()
> writeBin(data, file_path)
>
## Read the data using `gzfile`
> con1 <- gzfile(file_path)
> str(readLines(con1, 1000))
>
## Read the data usi...