uncompressVec: Uncompress a Blob object

Description Usage Arguments Value Author(s) Examples

View source: R/sqMass.R

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

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

Roestlab/DIAlign documentation built on Feb. 25, 2021, 5:18 p.m.