fuse-with-distribution_only.should-get 3.47 KB
Newer Older
1 2 3 4 5 6 7 8 9
#######################################
### 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": \[


10 11 12
###################################
### Part with unsegmented clones ##
###################################
13
!LAUNCH: python3 ../../fuse.py  -D --no-clones --output fused_with_unsegmented_clones_and_complete_distributions.vidjil ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil; cat fused_with_unsegmented_clones_and_complete_distributions.vidjil
14 15 16 17 18 19 20 21 22 23 24 25


$ Get correct keys for distributions json content
1:"repertoires"
1:"keys"
1:"filters"


$ Get correct files names
r:/some/file_[12]


26 27 28
$ Correct number of entries for some keys (2*30 + 1 by repertoire)
122:"seg5"
122:"lenCDR3"
29 30 31 32 33


############################
### Part with real clones ##
############################
Thonier Florian's avatar
Thonier Florian committed
34
!LAUNCH: python3 ../../fuse.py  -d germline,seg5  --no-clones --output fused_with_real_clones_and_complete_distributions.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_with_real_clones_and_complete_distributions.vidjil
35 36 37 38 39 40

$ Get correct keys for distributions json content
1:"repertoires"
1:"keys"
1:"filters"

Mathieu Giraud's avatar
Mathieu Giraud committed
41 42
$ No clones
0:"id"
43

Thonier Florian's avatar
Thonier Florian committed
44 45
$ Correct number of entries for some keys (1 by repertoire)
3:"seg5"
46 47 48 49 50

$ Get correct files names
:sequence_file


Mathieu Giraud's avatar
Mathieu Giraud committed
51 52 53 54
$ Filenames (original_files and repname)
2:"sequence_file"
2:"/some/file_1"
2:"/some/file_2"
55 56

$ Case of an entire result (axes: germline, seg5)
57 58 59 60 61
lr1:{ "axes": \[ "germline", "seg5" \], "values": { "IGK": { .* "IGKV3-20\*01": \[ 1, 3898 \]
lr1:{ "axes": \[ "germline", "seg5" \], "values": { "IGK": { .* "IGKV1-39\*01": \[ 1, 5653 \]
lr1:{ "axes": \[ "germline", "seg5" \], "values": { "IGK": { .* "IGKV1-33\*01": \[ 1, 2597 \]
lr1:{ "axes": \[ "germline", "seg5" \], "values": { "IGK": { .* "IGKV4-1\*01": \[ 1, 2520 \]
lr1:{ "axes": \[ "germline", "seg5" \], "values": { "IGK": { .* "IGKV3-15\*01": \[ 1, 2502 \]
62

63 64

$ Case for the two other files (axes: germline, seg5)
Thonier Florian's avatar
Thonier Florian committed
65 66
lr1:{ "axes": \[ "germline", "seg5" \], "values": { "IGH": { "\?": \[ 2, 900 \]
lr1:{ "axes": \[ "germline", "seg5" \], "values": { "IGH": { "\?": \[ 2, 350 \]
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100



####################################################
### Part with real clones, only some distribution ##
####################################################
!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"