Skip to content

Commit c9f2075

Browse files
committed
added tests for maxcov and cov only
1 parent 8e52ca9 commit c9f2075

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

test/func/samplot_test.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,49 @@ if [ $basic_operation ]; then
3131
assert_no_stderr
3232
fi
3333

34+
sv_chrm=chr4
35+
sv_start=115928730
36+
sv_end=115931875
37+
sv_type=DEL
38+
out_file_name=$func_path"test_max_coverage.png"
39+
40+
rm -f $out_file_name
41+
run max_coverage \
42+
samplot plot \
43+
-c $sv_chrm -s $sv_start -e $sv_end \
44+
-b $bam_1 $bam_2 $bam_3 \
45+
-o $out_file_name \
46+
--max_coverage 50\
47+
-t $sv_type
48+
if [ $max_coverage ]; then
49+
assert_exit_code 0
50+
assert_equal $out_file_name $( ls $out_file_name )
51+
assert_no_stdout
52+
assert_no_stderr
53+
fi
54+
55+
sv_chrm=chr4
56+
sv_start=115928730
57+
sv_end=115931875
58+
sv_type=DEL
59+
out_file_name=$func_path"test_coverage_only.png"
60+
61+
rm -f $out_file_name
62+
run coverage_only \
63+
samplot plot \
64+
-c $sv_chrm -s $sv_start -e $sv_end \
65+
-b $bam_1 \
66+
-o $out_file_name \
67+
--coverage_only \
68+
-t $sv_type
69+
if [ $coverage_only ]; then
70+
assert_exit_code 0
71+
assert_equal $out_file_name $( ls $out_file_name )
72+
assert_no_stdout
73+
assert_no_stderr
74+
fi
75+
76+
out_file_name=$func_path"test_same_yaxis.png"
3477
rm -f $out_file_name
3578
run same_yaxis \
3679
samplot plot \

0 commit comments

Comments
 (0)