-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_mixTCRclean.R
More file actions
34 lines (26 loc) · 939 Bytes
/
test_mixTCRclean.R
File metadata and controls
34 lines (26 loc) · 939 Bytes
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
#Run it from the MixTCRclean/ folder
#Do this if you do not want to install the package
devtools::load_all(".")
#Do this if you have installed the package
#library(MixTCRclean)
# help("MixTCRclean")
MixTCRclean(input=MixTCRclean::test_file, filename.output = "test",
output.path="test/out/", verbose = 2, check.cdr3.mode = 2,
correct.gene.names = T)
# Or if you downloaded the zip file:
# MixTCRclean(input="test/test.csv",
# output.path="test/out/", verbose = 2, check.cdr3.mode = 2,
# correct.gene.names = T)
new.data <- F
if(!new.data){
m <- read.csv("test/out/test_processed.csv")
m.comp <- read.csv("test/out_compare/test_processed.csv")
comp <- identical(m, m.comp) # should be TRUE
if(comp){
print("No problem detected")
} else {
stop("There were some issues...")
}
} else {
system("cp test/out/test_processed.csv test/out_compare/test_processed.csv")
}