Commit db7af3b5 authored by Thonier Florian's avatar Thonier Florian

tools/tests; add tests on distribution made by fuse

Link to #3944
parent 786e59fa
Pipeline #90542 passed with stage
in 6 seconds
### Without distributions computing
!LAUNCH: python3 ../../fuse.py --output fused_with_distrib_step1.vidjil ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil; cat fused_with_distrib_step1.vidjil
$ Get correct file name in original_names field
1:"/some/file_1"
1:"/some/file_2"
$ should not have distribution if not asked
0:distributions
### 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
$ Get correct file name in original_names field and distributions
2:"/some/file_1"
2:"/some/file_2"
$ should have two time 'distributions' (console log + into vidjil file)
2:distributions
$ Axes title should be present 78 times (2*39)
78:rearrangement
\ No newline at end of file
###################################
### Part with unsegmented clones ##
###################################
!LAUNCH: python3 ../../fuse.py -D ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil; cat fused.json
$ Get correct keys for distributions json content
1:"repertoires"
1:"keys"
1:"filters"
$ Get correct files names
r:/some/file_[12]
# For the moment, 39 call by repertoire
$ Have correct number of entrie for seg5
78:"seg5"
$ Have correct number of entrie for germline
78:germline
############################
### Part with real clones ##
############################
!LAUNCH: rm fused.json
!LAUNCH: python3 ../../fuse.py -D ../../../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.json
$ Get correct keys for distributions json content
1:"repertoires"
1:"keys"
1:"filters"
# For the moment, 31 call by repertoire
$ Have correct number of entrie for seg5 (increase of 39 by the new repertoire)
117:"seg5"
$ Get correct files names
:sequence_file
$ EAch filename should appear 1 times (1 for repname)
1:"sequence_file"
1:"/some/file_1"
1:"/some/file_2"
\ No newline at end of file
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