parseevents: Modifies the list obtained from a call to statistics.events...

Description Usage Arguments Value Examples

View source: R/parseevents.R

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

1
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

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

CytobankAPIstats documentation built on May 2, 2019, 8:27 a.m.