getnewind: Rearranges signaling results matrix with rows in the desired...

Description Usage Arguments Value Examples

Description

Rearranges signaling results matrix with rows in the desired order as outputs

Usage

1
getnewind(fixlabels, results)

Arguments

fixlabels

- List of strings with desired order of labels

results

- Output of call to parsestats

Value

- Returns a matrix with rows organized in desired order specified by fixlabels

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#Example starting with obtaining data from Cytobank
library(CytobankAPI)
cyto_session <- authenticate(site="premium", username="myusername", password="mypassword")
markersofinterest<-c("CD3","CD56")
popsofinterest<-c("CD4 T cells","NK cells")
exptID=4
type=F
results<-analyzedata(cyto_session,markersofinterest,popsofinterest,exptID,type)
fixlabels<-c("CD4 T cells CD56","NK cells CD56","CD4 T cells CD3","NK cells CD3")
getnewind(fixlabels,results)

#Example with simple matrix
data<-matrix(1:8,nrow=4,ncol=2,byrow=TRUE)
colnames(data)<-c("Control","Patient")
rownames(data)<-c("NK cells CD3","CD4 T cells CD3","CD4 T cells CD56","NK cells CD56")
fixlabels<-c("CD4 T cells CD56","NK cells CD56","CD4 T cells CD3","NK cells CD3")
getnewind(fixlabels,data)

athrom/CytobankAPIstats documentation built on May 14, 2019, 5:24 p.m.