Browse code

replace space with _ in test suite

mikejiang authored on 19/08/2022 17:51:02
Showing 1 changed files

... ...
@@ -107,7 +107,7 @@ test_that("set T value properly through PnE instead of PnR for flog transform wh
107 107
 
108 108
 test_that("handle the linear transform with maxRange = 0",{
109 109
   
110
-  wsFile <- file.path(path, "faultylinearTransform/FlowJo Test.wsp")
110
+  wsFile <- file.path(path, "faultylinearTransform/FlowJo_Test.wsp")
111 111
   
112 112
   ws <- open_flowjo_xml(wsFile)
113 113
   gs <- flowjo_to_gatingset(ws, name = 1)
... ...
@@ -197,7 +197,7 @@ test_that("skip gains from FCS for vX ",{
197 197
 #somehow the latest Rstudio crashes on this particular test case (but not in R console command)
198 198
 test_that("gate extension ",{
199 199
       thisPath <- file.path(path, "gate_extension")
200
-      wsFile <- file.path(thisPath, "02-15-2013 ICS.xml")
200
+      wsFile <- file.path(thisPath, "02-15-2013_ICS.xml")
201 201
       ws <- open_flowjo_xml(wsFile)
202 202
       set.seed(1)
203 203
       capture.output(gs <- flowjo_to_gatingset(ws, name=3, which.lines = 5e4))
... ...
@@ -210,7 +210,7 @@ test_that("gate extension ",{
210 210
 
211 211
 test_that("curlyQuad gate1 ",{
212 212
       thisPath <- file.path(path, "gate_extension")
213
-      wsFile <- file.path(thisPath, "VSVG OGH 14OCT15.wsp")
213
+      wsFile <- file.path(thisPath, "VSVG_OGH_14OCT15.wsp")
214 214
       ws <- open_flowjo_xml(wsFile)
215 215
       capture.output(gs <- flowjo_to_gatingset(ws, name=3))
216 216
       
... ...
@@ -280,7 +280,7 @@ test_that("Time gate ",{
280 280
 })
281 281
 test_that("Time gate2--when computed timestep is very different from $TIMESTEP ",{
282 282
       thisPath <- file.path(path, "timegate")
283
-      wsFile <- file.path(thisPath, "MX1 Analysis VISC.xml")
283
+      wsFile <- file.path(thisPath, "MX1_Analysis_VISC.xml")
284 284
       ws <- open_flowjo_xml(wsFile)
285 285
       gs <- flowjo_to_gatingset(ws,name="Group 1",subset=1)
286 286
       res <- gh_pop_compare_stats(gs[[1]])[xml.count!=-1,]
... ...
@@ -347,7 +347,7 @@ test_that("v 10.0.6 - vX 1.8",{
347 347
 test_that("v 10.0.7 - vX 20.0 (ellipsoidGate)",{
348 348
       
349 349
       thisPath <- file.path(path, "bioaster_ellipsoidGate")
350
-      wsFile <- file.path(thisPath, "Matrice 1.wsp")
350
+      wsFile <- file.path(thisPath, "Matrice_1.wsp")
351 351
       
352 352
       ws <- open_flowjo_xml(wsFile)
353 353
       gs <- flowjo_to_gatingset(ws, name = "Matrice", subset = 1, execute = FALSE)
... ...
@@ -432,7 +432,7 @@ test_that("v 10.0.7 - vX 20.0 (McGill/treg) ellipseidGate (biexponential)",{
432 432
 test_that("v 10.0.7 - vX 20.0 (PROVIDE/CyTOF) ellipseidGate (fasinh)",{
433 433
       
434 434
       thisPath <- file.path(path, "PROVIDE")
435
-      wsFile <- file.path(thisPath, "batch1 local and week 53.wsp")
435
+      wsFile <- file.path(thisPath, "batch1_local_and_week_53.wsp")
436 436
       
437 437
       ws <- open_flowjo_xml(wsFile, sample_names_from = "sampleNode")
438 438
       gs <- flowjo_to_gatingset(ws, name = 1, subset = 3, execute = FALSE)
... ...
@@ -550,7 +550,7 @@ test_that("v 10.0.8 - vX 20.0 (slash_issue_vX)",{
550 550
 
551 551
 test_that("v 10.2 - vX 20.0 (EllipsoidGate)",{
552 552
       thisPath <- file.path(path, "EllipsoidGate_10.2")
553
-      wsFile <- file.path(thisPath, "mA J21 for HT.wsp")
553
+      wsFile <- file.path(thisPath, "mA_J21_for_HT.wsp")
554 554
       
555 555
       ws <- open_flowjo_xml(wsFile)
556 556
       set.seed(1)
... ...
@@ -568,7 +568,7 @@ test_that("v 10.2 - vX 20.0 (EllipsoidGate)",{
568 568
 test_that("v 7.6.1- win 1.6 (use default biexp trans when channel-specific trans not found within its respective trans group )",{
569 569
       
570 570
       thisPath <- file.path(path, "GYO")
571
-      wsFile <- file.path(thisPath, "whole blood GYO-0109 050214.wsp")
571
+      wsFile <- file.path(thisPath, "whole_blood_GYO-0109_050214.wsp")
572 572
       ws <- open_flowjo_xml(wsFile)
573 573
       
574 574
       gs <- flowjo_to_gatingset(ws, name = 2, subset = 1, path = thisPath,  execute = FALSE)
... ...
@@ -636,7 +636,7 @@ test_that("v 7.6.5 - win 1.61 (sample_names_from = 'sampleNode')",{
636 636
 test_that("v 9.0.1 - mac 2.0 (HVTN 080-0880)",{
637 637
       
638 638
       thisPath <- file.path(path, "HVTN/080")
639
-      wsFile <- file.path(thisPath, "080 batch 0880.xml")
639
+      wsFile <- file.path(thisPath, "080_batch_0880.xml")
640 640
 
641 641
       ws <- open_flowjo_xml(wsFile)
642 642
       gs <- flowjo_to_gatingset(ws, name = 4, subset = 1, execute = FALSE)
... ...
@@ -752,13 +752,13 @@ test_that("v 9.6.3 - mac 2.0 (ignore highValue for FSC/SSC)",{
752 752
 
753 753
 test_that("v 9.7.4 - mac 3.0",{
754 754
       thisPath <- file.path(path, "v9.7.4")
755
-      wsFile <- file.path(thisPath, "T1 CHI-002v974.xml")
755
+      wsFile <- file.path(thisPath, "T1_CHI-002v974.xml")
756 756
 
757 757
       ws <- open_flowjo_xml(wsFile)
758
-      gs <- flowjo_to_gatingset(ws, name = "CHI-002 PBMC control", subset = "CHI-002 PBMC control_101211.fcs", execute = FALSE)
758
+      gs <- flowjo_to_gatingset(ws, name = "CHI-002 PBMC control", subset = "CHI-002_PBMC_control_101211.fcs", execute = FALSE)
759 759
       expect_is(gs, "GatingSet")
760 760
       set.seed(1)
761
-      gs <- flowjo_to_gatingset(ws, name = "CHI-002 PBMC control", subset = "CHI-002 PBMC control_101211.fcs")
761
+      gs <- flowjo_to_gatingset(ws, name = "CHI-002 PBMC control", subset = "CHI-002_PBMC_control_101211.fcs")
762 762
       gh <- gs[[1]]
763 763
       expectCounts <- fread(file.path(thisPath, "expectCounts.csv"))      
764 764
       thisCounts <- gh_pop_compare_stats(gh, path = "full")[, list(xml.count,openCyto.count, node)]
... ...
@@ -768,7 +768,7 @@ test_that("v 9.7.4 - mac 3.0",{
768 768
 
769 769
 test_that("v 9.7.5 - mac 3.0 (no compensation and using calibrationIndex)",{
770 770
       thisPath <- file.path(path, "Ragon")
771
-      wsFile <- file.path(thisPath, "neut v non neut v9.xml")
771
+      wsFile <- file.path(thisPath, "neut_v_non_neut_v9.xml")
772 772
       
773 773
       ws <- open_flowjo_xml(wsFile)
774 774
       gs <- flowjo_to_gatingset(ws, name = 5, subset = "477889_env_cct_norm_concatenated.txt", execute = FALSE)
... ...
@@ -847,7 +847,7 @@ test_that("search_for_fcs logic", {
847 847
 
848 848
 test_that("magnetic gates", {
849 849
   thisPath <- file.path(path, "magnetic")
850
-  ws <- open_flowjo_xml(file.path(thisPath, "2020-03-11 CyTOF gating strategy_dummy.wsp"))
850
+  ws <- open_flowjo_xml(file.path(thisPath, "2020-03-11_CyTOF_gating_strategy_dummy.wsp"))
851 851
   gs <- flowjo_to_gatingset(ws, name = 1)
852 852
   thisCounts <- gh_pop_compare_stats(gs[[1]])
853 853
   # Give a little cushion to frequency tolerance due to small subsample