Description Usage Arguments Value Examples
Filters matrix based on single sample name condition
1 | get1status(key, results)
|
key |
- Search string of interest for names |
results |
- Results matrix with fcs files corresponding to columns |
Returns a matrix with columns matching all search keys
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #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)
key<-c("Patient","Control")
get1status(key,results)
#Example with simple data matrix
data<-matrix(1:18,nrow=3,ncol=6,byrow=TRUE)
colnames(data)<-c("Ctrl1 unst","Pt1 unst","Pt3 unst","Ctrl1 stim","Pt1 stim","Pt3 stim")
rownames(data)<-c("Marker1","Marker2","Marker3")
#Getting all patient samples
get1status("Pt",data)
#Getting all patient and stimulated samples
get1status(c("Pt","stim"),data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.