Commit 928d844f authored by Thonier Florian's avatar Thonier Florian

tools/tests; update fuse test with new options for distributions computing

Link to #3944
parent 2a36aad0
Pipeline #90711 failed with stage
in 7 seconds
......@@ -15,7 +15,7 @@ $ should not have distribution if not asked
### With distributions computing
#rm fused.vidjil
!LAUNCH: python3 ../../fuse.py --output fused_with_distrib_step2.vidjil -d ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil; cat fused_with_distrib_step2.vidjil
!LAUNCH: python3 ../../fuse.py --output fused_with_distrib_step2.vidjil -D ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil; cat fused_with_distrib_step2.vidjil
$ Get correct file name in original_names field and distributions
2:"/some/file_1"
......@@ -25,5 +25,5 @@ $ should have two time 'distributions' (console log + into vidjil file)
2:distributions
$ Axis title should be present 58 times (2*29)
58:lenCDR3
\ No newline at end of file
$ Axis title should be present 122 times (2*30+1/file)
122:lenCDR3
\ No newline at end of file
#######################################
### Part without clones (--no-clone) ##
#######################################
!LAUNCH: python3 ../../fuse.py --no-clones --output fused_without_clones.vidjil ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil; cat fused_without_clones.vidjil
$ Should not have field clones
0:"clones": \[
###################################
### Part with unsegmented clones ##
###################################
!LAUNCH: python3 ../../fuse.py -d --no-clones ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil; cat fused.vidjil
!LAUNCH: python3 ../../fuse.py -D --no-clones ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil; cat fused.vidjil
$ Get correct keys for distributions json content
......@@ -14,16 +23,16 @@ $ Get correct files names
r:/some/file_[12]
$ Correct number of entries for some keys (29 by repertoire)
58:"seg5"
58:"lenCDR3"
$ Correct number of entries for some keys (2*30 + 1 by repertoire)
122:"seg5"
122:"lenCDR3"
############################
### Part with real clones ##
############################
!LAUNCH: rm fused.vidjil
!LAUNCH: python3 ../../fuse.py -d --no-clones ../../../algo/tests/data/results_five_segmented_clones.vidjil ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil; cat fused.vidjil
!LAUNCH: python3 ../../fuse.py -D --no-clones ../../../algo/tests/data/results_five_segmented_clones.vidjil ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil; cat fused.vidjil
$ Get correct keys for distributions json content
1:"repertoires"
......@@ -33,8 +42,8 @@ $ Get correct keys for distributions json content
$ No clones
0:"id"
$ Correct number of entries for some keys (29 by repertoire)
87:"seg5"
$ Correct number of entries for some keys (61 by repertoire)
183:"seg5"
$ Get correct files names
:sequence_file
......@@ -55,4 +64,39 @@ lr1:{ "axes": \[ "germline", "seg5" \], "values": { "IGK": { .* "IGKV3-15\*01":
$ Case for the two other files (axes: germline, seg5)
lr1:{ "axes": \[ "germline", "seg5" \], "values": { "IGH": { "\?": \[ 2, 900 \] } } },
lr1:{ "axes": \[ "germline", "seg5" \], "values": { "IGH": { "\?": \[ 2, 350 \] } } },
\ No newline at end of file
lr1:{ "axes": \[ "germline", "seg5" \], "values": { "IGH": { "\?": \[ 2, 350 \] } } },
####################################################
### Part with real clones, only some distribution ##
####################################################
!LAUNCH: rm fused.vidjil
!LAUNCH: python3 ../../fuse.py -d seg5,seg3 -d evalue -d unknow_AXIS --no-clones --output fused_only_some_axes.vidjil ../../../algo/tests/data/results_five_segmented_clones.vidjil ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil; cat fused_only_some_axes.vidjil
$ Get correct keys for distributions json content
1:"repertoires"
1:"keys"
1:"filters"
$ No clones
0:"id"
$ Correct number of entries for some keys (1 by repertoire): seg5
3:"seg5"
$ Correct number of entries for some keys (1 by repertoire): unknow_AXIS (axis name)
3:"unknow_AXIS"
$ Correct number of entries for some keys (1 by repertoire): unknow_axis (axis returned value)
3:"unknow_axis"
$ Get correct files names
:sequence_file
$ Filenames (original_files and repname)
2:"sequence_file"
2:"/some/file_1"
2:"/some/file_2"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment