fuse-with-distribution_only.should-get 3.52 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 ../../../algo/tests/data/results-two-clones-1-2.vidjil ../../../algo/tests/data/results-two-clones-1-3.vidjil; cat fused.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 ##
############################
Mathieu Giraud's avatar
Mathieu Giraud committed
34
!LAUNCH: rm fused.vidjil
35
!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
36 37 38 39 40 41

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

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

45 46
$ Correct number of entries for some keys (61 by repertoire)
183:"seg5"
47 48 49 50 51

$ Get correct files names
:sequence_file


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

$ Case of an entire result (axes: germline, seg5)
58 59 60 61 62
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 \]
63

64 65 66

$ Case for the two other files (axes: germline, seg5)
lr1:{        "axes": \[          "germline",          "seg5"        \],        "values": {          "IGH": {            "\?": \[              2,              900            \]          }        }      },
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 101 102
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"