-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathchangeVarNames.R
36 lines (28 loc) · 1.11 KB
/
changeVarNames.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
35
36
system("if [ -L contributions/bjContributions ] ; then
echo 'it is here' ;
rm contributions/bjContributions ;else echo 'it is not here';
ln -s ../bjContributions contributions/bjContributions
fi")
nn = c("scaterReadsFunc",
"um_spread",
"um_min_dist",
"um_set_op_mix_ratio",
"um_local_connectivity",
"um_bandwidth",
"umap_main")
oldname = "expclusters"
for (oldname in nn){
newName = paste0("sCA_", oldname)
system(paste0("find . -name \"*.R\" -exec sed -i '' -e 's/", oldname, "/", newName,"/g' {} +"))
system(paste0("find . -name \"*.Rmd\" -exec sed -i '' -e 's/", oldname, "/", newName,"/g' {} +"))
}
oldname = "dge_ttest"
newName = paste0("sCA_", oldname)
system(paste0("find . -name \"*.R\" -exec sed -i '' -e 's/", oldname, "/", newName,"/g' {} +"))
system(paste0("find . -name \"*.Rmd\" -exec sed -i '' -e 's/", oldname, "/", newName,"/g' {} +"))
oldname = "echo=FALSE"
newName = "echo=TRUE"
system(paste0("find . -name \"*.R\" -exec sed -i '' -e 's/", oldname, "/", newName,"/g' {} +"))
system(paste0("find . -name \"*.Rmd\" -exec sed -i '' -e 's/", oldname, "/", newName,"/g' {} +"))
de_dim_x
de_dim_y