Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/mouse #53

Merged
merged 13 commits into from
Apr 4, 2020
Prev Previous commit
Next Next commit
unit test fix
  • Loading branch information
marcmaxson committed Mar 10, 2020
commit 901d86497f5671c55f163b3e22d9abb60992ec12
17 changes: 9 additions & 8 deletions tests/processing/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ def test_run_pipeline_demo_containers():
@staticmethod
def test_run_pipeline_with_create_sample_sheet():
test_data_dir = 'docs/example_data/epic_plus'
testargs = ["__program__", '-d', test_data_dir, '--no_export', '--sample_name', 'Sample_1', '--no_sample_sheet']
with patch.object(sys, 'argv', testargs):
test_data_containers = pipeline.run_pipeline(test_data_dir)
# spot checking the output.
if not test_data_containers[1].unmethylated.data_frame.iloc[0]['mean_value'] == 2712:
raise AssertionError()
if not np.isclose(test_data_containers[1].unmethylated.data_frame.iloc[0]['noob'], 4479.96501260212):
raise AssertionError()
#testargs = ["__program__", '-d', test_data_dir, '--no_export', '--sample_name', 'Sample_1', '--no_sample_sheet']
#with patch.object(sys, 'argv', testargs):
test_data_containers = pipeline.run_pipeline(test_data_dir, export=False, sample_name=['Sample_1'],
meta_data_frame=False, make_sample_sheet=True)
# spot checking the output.
if not np.isclose(test_data_containers[0]._SampleDataContainer__data_frame.iloc[0]['noob_meth'], 1180.23):
raise AssertionError()
if not np.isclose(test_data_containers[0]._SampleDataContainer__data_frame.iloc[0]['beta_value'], 0.75902253):
raise AssertionError()

@staticmethod
def test_download_manifest_dummy_file():
Expand Down