Description Usage Arguments Value Examples
Rearranges signaling results matrix with rows in the desired order as outputs
1 | getnewind(fixlabels, results)
|
fixlabels |
- List of strings with desired order of labels |
results |
- Output of call to parsestats |
- Returns a matrix with rows organized in desired order specified by fixlabels
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.