2727def test_load_isa_json ():
2828 # Should test the validation process of the ISA JSON file where root level = investigation.
2929 valid_isa_json01 = load_isa_json (
30- ".. /test-data/ISA-BH2023-ALL/isa-bh2023-all.json" , True
30+ "MARS /test-data/ISA-BH2023-ALL/isa-bh2023-all.json" , True
3131 )
3232 assert len (valid_isa_json01 .investigation .studies ) == 1
3333 assert valid_isa_json01 .investigation .studies [0 ].identifier == "BH2023"
3434
3535 # Should test the validation process of the ISA JSON file where root has 'investigation' as key.
36- valid_isa_json02 = load_isa_json (".. /test-data/biosamples-input-isa.json" , False )
36+ valid_isa_json02 = load_isa_json ("MARS /test-data/biosamples-input-isa.json" , False )
3737 assert len (valid_isa_json02 .investigation .studies ) == 1
3838 assert valid_isa_json02 .investigation .studies [0 ].title == "Arabidopsis thaliana"
3939
@@ -43,7 +43,7 @@ def test_load_isa_json():
4343
4444def test_reduce_isa_json_for_target_repo ():
4545 good_isa_json = load_isa_json (
46- ".. /test-data/ISA-BH2023-ALL/isa-bh2023-all.json" , True
46+ "MARS /test-data/ISA-BH2023-ALL/isa-bh2023-all.json" , True
4747 )
4848
4949 filtered_isa_json = reduce_isa_json_for_target_repo (
@@ -60,7 +60,7 @@ def test_reduce_isa_json_for_target_repo():
6060
6161def test_reduce_isa_json_for_biosamples ():
6262 good_isa_json = load_isa_json (
63- ".. /test-data/ISA-BH2023-ALL/isa-bh2023-all.json" , True
63+ "MARS /test-data/ISA-BH2023-ALL/isa-bh2023-all.json" , True
6464 )
6565
6666 filtered_isa_json = reduce_isa_json_for_target_repo (
@@ -180,7 +180,7 @@ def test_person_phone_nr_validator():
180180
181181def test_update_study_materials_no_accession_categories ():
182182 # This file has no characteristics for accessions
183- json_path = ".. /test-data/biosamples-original-isa-no-accesion-char.json"
183+ json_path = "MARS /test-data/biosamples-original-isa-no-accesion-char.json"
184184 with open (json_path ) as json_file :
185185 json_data = json .load (json_file )
186186
@@ -214,7 +214,7 @@ def test_update_study_materials_no_accession_categories():
214214
215215def test_update_study_materials_with_accession_categories ():
216216 # This file has no characteristics for accessions
217- json_path = ".. /test-data/biosamples-original-isa.json"
217+ json_path = "MARS /test-data/biosamples-original-isa.json"
218218 with open (json_path ) as json_file :
219219 json_data = json .load (json_file )
220220
@@ -308,45 +308,45 @@ def test_filename_validation():
308308
309309def test_map_data_files_to_repositories ():
310310 isa_json = load_isa_json (
311- file_path = ".. /test-data/ISA-BH2024-ALL/isa-bh2024-all.json" ,
311+ file_path = "MARS /test-data/ISA-BH2024-ALL/isa-bh2024-all.json" ,
312312 investigation_is_root = True ,
313313 )
314314 exact_match_files = [
315- ".. /test-data/ISA-BH2024-ALL/cnv-seq-data-0.fastq" ,
316- ".. /test-data/ISA-BH2024-ALL/cnv-seq-data-1.fastq" ,
317- ".. /test-data/ISA-BH2024-ALL/cnv-seq-data-2.fastq" ,
318- ".. /test-data/ISA-BH2024-ALL/cnv-seq-data-3.fastq" ,
319- ".. /test-data/ISA-BH2024-ALL/metpro-analysis.txt" ,
320- ".. /test-data/ISA-BH2024-ALL/ms-data-metpro--1.mzml" ,
321- ".. /test-data/ISA-BH2024-ALL/ms-data-metpro--2.mzml" ,
322- ".. /test-data/ISA-BH2024-ALL/ms-data-metpro--3.mzml" ,
323- ".. /test-data/ISA-BH2024-ALL/ms-data-metpro--4.mzml" ,
324- ".. /test-data/ISA-BH2024-ALL/rna-seq-data-0.fastq" ,
325- ".. /test-data/ISA-BH2024-ALL/rna-seq-data-1.fastq" ,
326- ".. /test-data/ISA-BH2024-ALL/rna-seq-data-2.fastq" ,
327- ".. /test-data/ISA-BH2024-ALL/rna-seq-data-3.fastq" ,
315+ "MARS /test-data/ISA-BH2024-ALL/cnv-seq-data-0.fastq" ,
316+ "MARS /test-data/ISA-BH2024-ALL/cnv-seq-data-1.fastq" ,
317+ "MARS /test-data/ISA-BH2024-ALL/cnv-seq-data-2.fastq" ,
318+ "MARS /test-data/ISA-BH2024-ALL/cnv-seq-data-3.fastq" ,
319+ "MARS /test-data/ISA-BH2024-ALL/metpro-analysis.txt" ,
320+ "MARS /test-data/ISA-BH2024-ALL/ms-data-metpro--1.mzml" ,
321+ "MARS /test-data/ISA-BH2024-ALL/ms-data-metpro--2.mzml" ,
322+ "MARS /test-data/ISA-BH2024-ALL/ms-data-metpro--3.mzml" ,
323+ "MARS /test-data/ISA-BH2024-ALL/ms-data-metpro--4.mzml" ,
324+ "MARS /test-data/ISA-BH2024-ALL/rna-seq-data-0.fastq" ,
325+ "MARS /test-data/ISA-BH2024-ALL/rna-seq-data-1.fastq" ,
326+ "MARS /test-data/ISA-BH2024-ALL/rna-seq-data-2.fastq" ,
327+ "MARS /test-data/ISA-BH2024-ALL/rna-seq-data-3.fastq" ,
328328 ]
329329
330330 check_map = dict (
331331 {
332332 "metabolights" : [
333- ".. /test-data/ISA-BH2024-ALL/metpro-analysis.txt" ,
334- ".. /test-data/ISA-BH2024-ALL/ms-data-metpro--1.mzml" ,
335- ".. /test-data/ISA-BH2024-ALL/ms-data-metpro--2.mzml" ,
336- ".. /test-data/ISA-BH2024-ALL/ms-data-metpro--3.mzml" ,
337- ".. /test-data/ISA-BH2024-ALL/ms-data-metpro--4.mzml" ,
333+ "MARS /test-data/ISA-BH2024-ALL/metpro-analysis.txt" ,
334+ "MARS /test-data/ISA-BH2024-ALL/ms-data-metpro--1.mzml" ,
335+ "MARS /test-data/ISA-BH2024-ALL/ms-data-metpro--2.mzml" ,
336+ "MARS /test-data/ISA-BH2024-ALL/ms-data-metpro--3.mzml" ,
337+ "MARS /test-data/ISA-BH2024-ALL/ms-data-metpro--4.mzml" ,
338338 ],
339339 "arrayexpress" : [
340- ".. /test-data/ISA-BH2024-ALL/rna-seq-data-0.fastq" ,
341- ".. /test-data/ISA-BH2024-ALL/rna-seq-data-1.fastq" ,
342- ".. /test-data/ISA-BH2024-ALL/rna-seq-data-2.fastq" ,
343- ".. /test-data/ISA-BH2024-ALL/rna-seq-data-3.fastq" ,
340+ "MARS /test-data/ISA-BH2024-ALL/rna-seq-data-0.fastq" ,
341+ "MARS /test-data/ISA-BH2024-ALL/rna-seq-data-1.fastq" ,
342+ "MARS /test-data/ISA-BH2024-ALL/rna-seq-data-2.fastq" ,
343+ "MARS /test-data/ISA-BH2024-ALL/rna-seq-data-3.fastq" ,
344344 ],
345345 "eva" : [
346- ".. /test-data/ISA-BH2024-ALL/cnv-seq-data-0.fastq" ,
347- ".. /test-data/ISA-BH2024-ALL/cnv-seq-data-1.fastq" ,
348- ".. /test-data/ISA-BH2024-ALL/cnv-seq-data-2.fastq" ,
349- ".. /test-data/ISA-BH2024-ALL/cnv-seq-data-3.fastq" ,
346+ "MARS /test-data/ISA-BH2024-ALL/cnv-seq-data-0.fastq" ,
347+ "MARS /test-data/ISA-BH2024-ALL/cnv-seq-data-1.fastq" ,
348+ "MARS /test-data/ISA-BH2024-ALL/cnv-seq-data-2.fastq" ,
349+ "MARS /test-data/ISA-BH2024-ALL/cnv-seq-data-3.fastq" ,
350350 ],
351351 }
352352 )
@@ -361,7 +361,7 @@ def test_map_data_files_to_repositories():
361361 map_data_files_to_repositories (not_enough_files , isa_json )
362362
363363 too_many_files = exact_match_files .copy ()
364- one_too_many = ".. /test-data/ISA-BH2024-ALL/one-too-many.fastq"
364+ one_too_many = "MARS /test-data/ISA-BH2024-ALL/one-too-many.fastq"
365365 too_many_files .append (one_too_many )
366366
367367 result_maps = map_data_files_to_repositories (too_many_files , isa_json )
0 commit comments