uncompressVec: Uncompress a Blob object

View source: R/sqMass.R

uncompressVecR Documentation

Uncompress a Blob object

Description

compression is one of 0 = no, 1 = zlib, 2 = np-linear, 3 = np-slof, 4 = np-pic, 5 = np-linear + zlib, 6 = np-slof + zlib, 7 = np-pic + zlib

Usage

uncompressVec(x, type)

Arguments

x

(Blob object)

type

(integer) must either be 5L or 6L to indicate linear and short logged float compression, respectively.

Value

A numeric vector. Uncompressed form of the Blob.

Author(s)

Shubham Gupta, shubh.gupta@mail.utoronto.ca

ORCID: 0000-0003-3500-8152

License: (c) Author (2020) + GPL-3 Date: 2020-12-13

Examples

dataPath <- system.file("extdata", package = "DIAlignR")
sqName <- paste0(dataPath,"/xics/hroest_K120809_Strep10%PlasmaBiolRepl2_R04_SW_filt.chrom.sqMass")
con <- DBI::dbConnect(RSQLite::SQLite(), dbname = sqName)
df1 <- DBI::dbGetQuery(con, "SELECT CHROMATOGRAM_ID, COMPRESSION, DATA_TYPE, DATA FROM DATA WHERE CHROMATOGRAM_ID = 36;")
DBI::dbDisconnect(con)
## Not run: 
time = uncompressVec(df1[["DATA"]][[1]], df1$COMPRESSION[[1]])
intensity = uncompressVec(df1[["DATA"]][[2]], df1$COMPRESSION[[2]])

## End(Not run)

shubham1637/DIAlignR documentation built on March 29, 2023, 8:45 p.m.