Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
db7af3b5
Commit
db7af3b5
authored
Aug 22, 2019
by
Thonier Florian
Browse files
tools/tests; add tests on distribution made by fuse
Link to
#3944
parent
786e59fa
Pipeline
#90542
passed with stage
in 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tools/tests/should-get-tests/fuse-with-distribution.should-get
0 → 100644
View file @
db7af3b5
### 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
tools/tests/should-get-tests/fuse-with-distribution_only.should-get
0 → 100644
View file @
db7af3b5
###################################
### 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment