parseevents {CytobankAPIstats}R Documentation

Modifies the list obtained from a call to statistics.events to a matrix with rows corresponding to fcs files and columns corresponding to the population types

Description

Modifies the list obtained from a call to statistics.events to a matrix with rows corresponding to fcs files and columns corresponding to the population types

Usage

parseevents(results, popsinterest, fcs)

Arguments

results

- The results of a call to statistics.events function

popsinterest

- List of gateSetID numbers for populations of interest with descriptions as names

fcs

- List of fcs file IDs of interest with description of FCS files as names

Value

Returns a matrix of event counts with rows corresponding to fcs files and columns corresponding to populations of interest

Examples


library(CytobankAPI)

cyto_session <- authenticate(site="premium", username="myusername", password="mypassword")
exptno<-2
popsofinterest1<-c("CD4 T cells","NK cells")
popsinterest<-getpops(popsofinterest1,exptno,cyto_session)
fcs<-getfcsfiles(exptno,cyto_session)
results<-statistics.event_counts(cyto_session, exptno, gate_version = 1, 
compensation_id=1,fcs_files=fcs,populations = popsinterest,output = "default",
timeout = UserSession@long_timeout)
parseevents(results,popsinterest,fcs)

[Package CytobankAPIstats version 2.0 Index]