Skip to content

Commit

Permalink
added test for creating marker plots
Browse files Browse the repository at this point in the history
  • Loading branch information
rnmitchell committed Nov 3, 2023
1 parent fab6566 commit f34c69d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lusSTR/tests/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,13 @@ def test_snakemake(command, output, format_out, convert_out, all_out, tmp_path):
assert os.path.exists(obs_convert_output) is convert_out
assert os.path.exists(obs_all_output) is all_out
assert filecmp.cmp(exp_output, obs_output) is True


def test_marker_plots(tmp_path):
inputfile = data_file("UAS_bulk_input/Positive Control Sample Details Report 2315.xlsx")
exp_output = str(tmp_path / "MarkerPlots/lusstr_output_Positive_Control_marker_plots.pdf")
arglist = ["config", "-w", str(tmp_path), "--input", inputfile]
lusSTR.cli.main(lusSTR.cli.get_parser().parse_args(arglist))
snakemake_arglist = ["strs", "convert", "-w", str(tmp_path)]
lusSTR.cli.main(lusSTR.cli.get_parser().parse_args(snakemake_arglist))
assert os.path.exists(exp_output) is True

0 comments on commit f34c69d

Please sign in to comment.