Commit 7ec75b6c authored by Thonier Florian's avatar Thonier Florian
Browse files

tools/tests; update fuse tests on warnings

parent a1211056
!LAUNCH: python ../../fuse.py $FUSE_OPTIONS ../data/warnings/w81_sample_1.vidjil ../data/warnings/w81_sample_2.vidjil -o fuse_warnings.vidjil ; cat fuse_warnings.vidjil
!OUTPUT_FILE: fuse_warnings_clone.vidjil
!LAUNCH: python ../../fuse.py $FUSE_OPTIONS ../data/warnings/w81_sample_1.vidjil ../data/warnings/w81_sample_2.vidjil -o fuse_warnings_clone.vidjil
$ Fuse the three files
2: ListWindows: .9500, 9500.
j: reads.total: [9500, 9500]
$ Middle file has the good 40-bp windows
......@@ -10,7 +11,9 @@ $ Middle file has the good 40-bp windows
1: "id": "clone_3"
$ fields 'warn' present 2 times (w81 & w82)
2: "level": "warn"
j: clones[0].warn[0].code: W82
j: clones[1].warn[0].code: W81
$ Correct warning is present: W81 (designation)
1: W81
......@@ -22,9 +25,10 @@ $ Correct warning is present: W82 (productivity)
1: .* different productivities.*\(pos 1\): not productive
#################################
### Same tests but with 4 samples
!LAUNCH: python ../../fuse.py $FUSE_OPTIONS ../data/warnings/w81_sample_1.vidjil ../data/warnings/w81_sample_2.vidjil ../data/warnings/w81_sample_1.vidjil ../data/warnings/w81_sample_2.vidjil -o fuse_warnings_many_samples.vidjil ; cat fuse_warnings_many_samples.vidjil
!OUTPUT_FILE: fuse_warnings_clones_many_samples.vidjil
!LAUNCH: python ../../fuse.py $FUSE_OPTIONS ../data/warnings/w81_sample_1.vidjil ../data/warnings/w81_sample_2.vidjil ../data/warnings/w81_sample_1.vidjil ../data/warnings/w81_sample_2.vidjil -o fuse_warnings_clones_many_samples.vidjil
$ Middle file has the good 40-bp windows
......@@ -32,8 +36,24 @@ $ Middle file has the good 40-bp windows
1: "id": "clone_2"
1: "id": "clone_3"
$ fields 'warn' present 2 times (w81 & w82)
4: "level": "warn"
$ fields 'warn' in clone 0
$ 2 warns present in clone 0, warn 1
j: clones[0].warn[0].code: W82
$ 2 warns present in clone 0, warn 2
j: clones[0].warn[1].code: W82
$ 2 warns present in clone 0, correct message
j: clones[0].warn[0].msg: Merged clone has different productivities in some samples \(pos 1\)
$ fields 'warn' present 2 times (w81) in clone 1
$ 2 warns present in clone 1, warn 1
j: clones[1].warn[0].code: W81
$ 2 warns present in clone 1, warn 2
j: clones[1].warn[1].code: W81
$ 2 warns present in clone 1, correct message
j: clones[1].warn[0].msg: Merged clone has different V\(D\)J designations in some samples \(pos 1\)
$ Correct warning is present: W81 (name)
2: W81
......
Supports Markdown
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