-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclustering_caller.R
executable file
·34 lines (30 loc) · 1.32 KB
/
clustering_caller.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env r
# launch recursively the scripts to gate the flow cytometer with flowClust
# and export single-cell mRNA reads.
# This is Free Software - You can use and distribute it under
# the terms of the GNU General Public License, version 3 or later
# (c) Massimo Cavallaro (m.cavallaro@warwick.ac.uk)
# % This code can be redistributed and/or modified under the terms of the
# % GNU General Public License as published by the Free Software Foundation,
# % either version 3 of the License, or (at your option) any later version.
# % This program is distributed by the author in the hope that it will be
# % useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# % Please cite:
# % (c) MC
dirs<-list.dirs(recursive = TRUE)
for (i in 1:length(dirs)){
if(grepl("Compensated", dirs[i])){
files<-list.files(path = dirs[i], pattern = '.fcs')
for (j in 1:length(files)){
file.name<-paste(dirs[i], files[j], sep = '/')
base.name<-files[j]
dir.name<-dirs[i]
# writeLines(file.name)
# writeLines(base.name)
# writeLines(dir.name)
source("clustering_2.R")
source("clustering_3.R")
}
}
}