inst/doc/cytobank2GatingSet.R

## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(echo = TRUE, results = "markup", message = FALSE, warning = FALSE)

## -----------------------------------------------------------------------------
library(flowWorkspace)
library(CytoML)
acs <- system.file("extdata/cytobank_experiment.acs", package = "CytoML")

## -----------------------------------------------------------------------------
ce <- open_cytobank_experiment(acs)
ce

## -----------------------------------------------------------------------------
sampleNames(ce)
colnames(ce)
markernames(ce)
pData(ce)

## -----------------------------------------------------------------------------
gs <- cytobank_to_gatingset(ce)

## ---- eval=FALSE--------------------------------------------------------------
#  xmlfile <- ce$gatingML
#  fcsFiles <- list.files(ce$fcsdir, full.names = TRUE)
#  gs <- cytobank_to_gatingset(xmlfile, fcsFiles)

## -----------------------------------------------------------------------------
library(ggcyto)
## Plot the gates
autoplot(gs[[1]])
# Extract the population statistics
gs_pop_get_count_fast(gs, statType = "count")

Try the CytoML package in your browser

Any scripts or data that you put into this service are public.

CytoML documentation built on March 12, 2021, 2 a.m.