filterfiles: Filters a list of fcs files by search terms

Description Usage Arguments Value Examples

View source: R/filterfiles.R

Description

Filters a list of fcs files by search terms

Usage

1
filterfiles(files, string)

Arguments

files

- List of fcs file IDs with FCS file name as names for list

string

- List of one or more strings of interest as a list to filter samples

Value

Returns a list of file IDs matching with names matching string(s)

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)
exptno<-4
cyto_session <- authenticate(site="premium", username="myusername", password="mypassword")
files<-getfcsfiles(exptno,cyto_session)
string<-c("patient","IL-1b")
filterfiles(file,string)

#Simple example when list of file names is already available
files<-1:4
names(files)<-c("Pt1 unst.fcs","Pt2 stim.fcs","Ctrl1 unst.fcs","Ctrl2 stim.fcs")
#Filtering file list to contain only unstimulated files
filterfiles(files,"unstimulated")
#Filtering file list to contain only patient files
filterfiles(files,"Pt")
#Filtering file list to contain both unstimulated and patient files
filterfiles(files,c("Pt","unst"))

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