Skip to content

Commit

Permalink
Add comprehensive plotting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjcroucher committed Sep 9, 2023
1 parent 72fbefa commit 1ebe4e5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions python/gubbins/tests/test_python_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,15 @@ def test_recombination_counting_per_gene(self):
meta_input = os.path.join(data_dir, "test_epi.csv")
clades_input = os.path.join(data_dir, "test_clades.csv")
fig_output = os.path.join(data_dir, "test_plot.pdf")
plot_cmd = "plot_gubbins.R --tree " + tree_input + " --rec " + rec_input + " --markup " + markup_input + " --annotation " + anno_input \
+ " --meta " + meta_input + " --clades " + clades_input + " --output " + fig_output
plot_cmd = "plot_gubbins.R --tree " + tree_input + " --rec " + rec_input + " --output " + fig_output
subprocess.check_call(plot_cmd, shell=True)
plot_cmd = plot_cmd + " --annotation " + anno_input
subprocess.check_call(plot_cmd, shell=True)
plot_cmd = plot_cmd + " --clades " + clades_input
subprocess.check_call(plot_cmd, shell=True)
plot_cmd = plot_cmd + " --markup " + markup_input
subprocess.check_call(plot_cmd, shell=True)
plot_cmd = plot_cmd + " --meta " + meta_input
subprocess.check_call(plot_cmd, shell=True)
os.remove(fig_output)

Expand Down

0 comments on commit 1ebe4e5

Please sign in to comment.