Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,711
Issues
1,711
List
Boards
Labels
Service Desk
Milestones
Merge Requests
86
Merge Requests
86
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
928d844f
Commit
928d844f
authored
Aug 23, 2019
by
Thonier Florian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/tests; update fuse test with new options for distributions computing
Link to
#3944
parent
2a36aad0
Pipeline
#90711
failed with stage
in 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
11 deletions
+55
-11
tools/tests/should-get-tests/fuse-with-distribution.should-get
.../tests/should-get-tests/fuse-with-distribution.should-get
+3
-3
tools/tests/should-get-tests/fuse-with-distribution_only.should-get
...s/should-get-tests/fuse-with-distribution_only.should-get
+52
-8
No files found.
tools/tests/should-get-tests/fuse-with-distribution.should-get
View file @
928d844f
...
...
@@ -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
tools/tests/should-get-tests/fuse-with-distribution_only.should-get
View file @
928d844f
#######################################
### 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 (2
9
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"
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