Skip to content

Commit c2d68c7

Browse files
committed
Add tests for xlim bug (#1481, #1482)
1 parent a91a36a commit c2d68c7

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

  • anvio/tests/sandbox/test_visualize_split_coverages

‎anvio/tests/sandbox/test_visualize_split_coverages/Makefile‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,26 @@ SCRIPT = $(PROJ_ROOT_DIR)/sandbox/anvi-script-visualize-split-coverages
99
test_full:
1010
rm -r $(TEST_OUT_DIR); mkdir -p $(TEST_OUT_DIR); $(SCRIPT) --infile $(TEST_FILE_DIR)/split_cov.txt --sample-data $(TEST_FILE_DIR)/sample_data.txt --snv-data $(TEST_FILE_DIR)/snv.txt --outfile-basename $(TEST_OUT_DIR)/vis_split_cov_output && ls -lah $(TEST_OUT_DIR) && echo
1111

12+
test_full_line:
13+
rm -r $(TEST_OUT_DIR); mkdir -p $(TEST_OUT_DIR); $(SCRIPT) --infile $(TEST_FILE_DIR)/split_cov.txt --sample-data $(TEST_FILE_DIR)/sample_data.txt --snv-data $(TEST_FILE_DIR)/snv.txt --outfile-basename $(TEST_OUT_DIR)/vis_split_cov_output --chart-type line && ls -lah $(TEST_OUT_DIR) && echo
14+
1215
test_no_color:
1316
rm -r $(TEST_OUT_DIR); mkdir -p $(TEST_OUT_DIR); $(SCRIPT) --infile $(TEST_FILE_DIR)/split_cov.txt --sample-data $(TEST_FILE_DIR)/sample_data_no_color.txt --snv-data $(TEST_FILE_DIR)/snv.txt --outfile-basename $(TEST_OUT_DIR)/vis_split_cov_output && ls -lah $(TEST_OUT_DIR) && echo
1417

18+
# There was a bug with xlim, area, and no sample colors.
19+
test_no_color_area_xlim:
20+
rm -r $(TEST_OUT_DIR); mkdir -p $(TEST_OUT_DIR); $(SCRIPT) --infile $(TEST_FILE_DIR)/split_cov.txt --sample-data $(TEST_FILE_DIR)/sample_data_no_color.txt --snv-data $(TEST_FILE_DIR)/snv.txt --outfile-basename $(TEST_OUT_DIR)/vis_split_cov_output --chart-type area --xlim 10,20 && ls -lah $(TEST_OUT_DIR) && echo
21+
1522
test_no_sample_group:
1623
rm -r $(TEST_OUT_DIR); mkdir -p $(TEST_OUT_DIR); $(SCRIPT) --infile $(TEST_FILE_DIR)/split_cov.txt --sample-data $(TEST_FILE_DIR)/sample_data_no_group.txt --snv-data $(TEST_FILE_DIR)/snv.txt --outfile-basename $(TEST_OUT_DIR)/vis_split_cov_output && ls -lah $(TEST_OUT_DIR) && echo
1724

1825
test_no_sample_data:
1926
rm -r $(TEST_OUT_DIR); mkdir -p $(TEST_OUT_DIR); $(SCRIPT) --infile $(TEST_FILE_DIR)/split_cov.txt --snv-data $(TEST_FILE_DIR)/snv.txt --outfile-basename $(TEST_OUT_DIR)/vis_split_cov_output && ls -lah $(TEST_OUT_DIR) && echo
2027

28+
# There was a bug with xlim, area, and no sample colors.
29+
test_no_sample_data_area_xlim:
30+
rm -r $(TEST_OUT_DIR); mkdir -p $(TEST_OUT_DIR); $(SCRIPT) --infile $(TEST_FILE_DIR)/split_cov.txt --snv-data $(TEST_FILE_DIR)/snv.txt --outfile-basename $(TEST_OUT_DIR)/vis_split_cov_output --chart-type area --xlim 10,20 && ls -lah $(TEST_OUT_DIR) && echo
31+
2132
test_no_snv_data:
2233
rm -r $(TEST_OUT_DIR); mkdir -p $(TEST_OUT_DIR); $(SCRIPT) --infile $(TEST_FILE_DIR)/split_cov.txt --sample-data $(TEST_FILE_DIR)/sample_data.txt --outfile-basename $(TEST_OUT_DIR)/vis_split_cov_output && ls -lah $(TEST_OUT_DIR) && echo
2334

@@ -30,4 +41,13 @@ test_with_pdf_extension:
3041
test_with_pdf_extension_no_sample_group:
3142
rm -r $(TEST_OUT_DIR); mkdir -p $(TEST_OUT_DIR); $(SCRIPT) --infile $(TEST_FILE_DIR)/split_cov.txt --sample-data $(TEST_FILE_DIR)/sample_data_no_group.txt --snv-data $(TEST_FILE_DIR)/snv.txt --outfile-basename $(TEST_OUT_DIR)/vis_split_cov_output.pdf && ls -lah $(TEST_OUT_DIR) && echo
3243

33-
test_all: test_full test_no_color test_no_sample_group test_no_sample_data test_no_snv_data test_no_sample_data_no_snv_data test_with_pdf_extension test_with_pdf_extension_no_sample_group
44+
test_xlim:
45+
rm -r $(TEST_OUT_DIR); mkdir -p $(TEST_OUT_DIR); $(SCRIPT) --infile $(TEST_FILE_DIR)/split_cov.txt --sample-data $(TEST_FILE_DIR)/sample_data.txt --snv-data $(TEST_FILE_DIR)/snv.txt --outfile-basename $(TEST_OUT_DIR)/vis_split_cov_output --xlim 10,20 && ls -lah $(TEST_OUT_DIR) && echo
46+
47+
test_xlim_area:
48+
rm -r $(TEST_OUT_DIR); mkdir -p $(TEST_OUT_DIR); $(SCRIPT) --infile $(TEST_FILE_DIR)/split_cov.txt --sample-data $(TEST_FILE_DIR)/sample_data.txt --snv-data $(TEST_FILE_DIR)/snv.txt --outfile-basename $(TEST_OUT_DIR)/vis_split_cov_output --xlim 10,20 --chart-type area && ls -lah $(TEST_OUT_DIR) && echo
49+
50+
test_xlim_line:
51+
rm -r $(TEST_OUT_DIR); mkdir -p $(TEST_OUT_DIR); $(SCRIPT) --infile $(TEST_FILE_DIR)/split_cov.txt --sample-data $(TEST_FILE_DIR)/sample_data.txt --snv-data $(TEST_FILE_DIR)/snv.txt --outfile-basename $(TEST_OUT_DIR)/vis_split_cov_output --xlim 10,20 --chart-type line && ls -lah $(TEST_OUT_DIR) && echo
52+
53+
test_all: test_full test_full_line test_no_color test_no_color_area_xlim test_no_sample_group test_no_sample_data test_no_sample_data_area_xlim test_no_snv_data test_no_sample_data_no_snv_data test_with_pdf_extension test_with_pdf_extension_no_sample_group test_xlim test_xlim_area test_xlim_line

0 commit comments

Comments
 (0)