RGLab / flowWorkspace

flowWorkspace
GNU Affero General Public License v3.0
44 stars 21 forks source link

Hotfix/fix gs get singlecell expression by gate #391

Closed mikejiang closed 1 year ago

mikejiang commented 1 year ago

fix cpp11 string conversion bug reported by #390

before

> library(flowWorkspace)
> dataDir <- system.file("extdata",package="flowWorkspaceData")
> gs_dir <- list.files(dataDir, pattern = "gs_manual",full = TRUE)
> gs <- load_gs(gs_dir)
> mat <- gs_get_singlecell_expression_by_gate(gs, "CD3+")
.Error: Expected string vector of length 1

after

> mat <- gs_get_singlecell_expression_by_gate(gs, "CD3+")
.
> head(mat)
$CytoTrol_CytoTrol_1.fcs
         CD3 V450     SSC-A
    [1,] 2996.536  91113.96
    [2,] 2749.284  76954.91
    [3,] 2507.708  70116.48
    [4,] 2657.550  66052.55