Skip to content

Commit

Permalink
fixup! * When running differential expression or feature counting, RN…
Browse files Browse the repository at this point in the history
…Alysis session reports will automatically include a logfile with R session info. * Added optional parameters to all differential expression functions, allowing users to return a path to a logfile with R session info.
  • Loading branch information
GuyTeichman committed Sep 16, 2024
1 parent 4ce0e72 commit c3b8048
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def test_SimpleDESeqWindow_get_analysis_params(qtbot, simple_deseq_window):
design_mat_path = 'tests/test_files/test_design_matrix.csv'
truth = dict(r_installation_folder='auto', design_matrix=design_mat_path, output_folder=None,
comparisons=[('replicate', 'rep3', 'rep2'), ('condition', 'cond1', 'cond2')], return_code=True,
return_design_matrix=True)
return_design_matrix=True, return_log=True)

simple_deseq_window.param_widgets['design_matrix'].setText(design_mat_path)
qtbot.mouseClick(simple_deseq_window.param_widgets['load_design'], LEFT_CLICK)
Expand All @@ -539,7 +539,7 @@ def test_SimpleDESeqWindow_start_analysis(qtbot, simple_deseq_window):
truth_args = []
truth_kwargs = dict(r_installation_folder='auto', design_matrix=design_mat_path, output_folder=None,
comparisons=[('replicate', 'rep3', 'rep2'), ('condition', 'cond1', 'cond2')], return_code=True,
return_design_matrix=True)
return_design_matrix=True, return_log=True)

simple_deseq_window.param_widgets['design_matrix'].setText(design_mat_path)
qtbot.mouseClick(simple_deseq_window.param_widgets['load_design'], LEFT_CLICK)
Expand Down Expand Up @@ -573,7 +573,7 @@ def test_SimpleLimmaWindow_get_analysis_params(qtbot, simple_limma_window):
design_mat_path = 'tests/test_files/test_design_matrix.csv'
truth = dict(r_installation_folder='auto', design_matrix=design_mat_path, output_folder=None,
comparisons=[('replicate', 'rep3', 'rep2'), ('condition', 'cond1', 'cond2')], random_effect=None,
quality_weights=False, return_code=True, return_design_matrix=True)
quality_weights=False, return_code=True, return_design_matrix=True, return_log=True)

simple_limma_window.param_widgets['design_matrix'].setText(design_mat_path)
qtbot.mouseClick(simple_limma_window.param_widgets['load_design'], LEFT_CLICK)
Expand All @@ -594,7 +594,7 @@ def test_SimpleLimmaWindow_start_analysis(qtbot, simple_limma_window):
truth_kwargs = dict(r_installation_folder='auto', design_matrix=design_mat_path, output_folder=None,
comparisons=[('replicate', 'rep3', 'rep2'), ('condition', 'cond1', 'cond2')],
random_effect=None, quality_weights=False, return_code=True,
return_design_matrix=True)
return_design_matrix=True, return_log=True)

simple_limma_window.param_widgets['design_matrix'].setText(design_mat_path)
qtbot.mouseClick(simple_limma_window.param_widgets['load_design'], LEFT_CLICK)
Expand Down Expand Up @@ -3158,7 +3158,7 @@ def test_get_analysis_params(self, deseq_window):
truth = dict(r_installation_folder='auto', design_matrix=self.design_mat_path, output_folder=None,
comparisons=[('replicate', 'rep3', 'rep2'), ('condition', 'cond1', 'cond2')],
covariates=['covariate1'], lrt_factors=['factor1'], return_code=True, return_design_matrix=True,
cooks_cutoff=True, scaling_factors=None)
cooks_cutoff=True, scaling_factors=None, return_log=True)

deseq_window.comparisons_widgets['picker'].add_comparison_widget()
deseq_window.comparisons_widgets['picker'].inputs[0].factor.setCurrentText('replicate')
Expand All @@ -3177,7 +3177,7 @@ def test_start_analysis(self, qtbot, monkeypatch, deseq_window):
truth_args = []
truth_kwargs = dict(r_installation_folder='auto', design_matrix=self.design_mat_path, output_folder=None,
comparisons=[('replicate', 'rep3', 'rep2'), ('condition', 'cond1', 'cond2')],
covariates=['covariate1'], lrt_factors=['factor1'], return_code=True,
covariates=['covariate1'], lrt_factors=['factor1'], return_code=True, return_log=True,
return_design_matrix=True, cooks_cutoff=True, scaling_factors=None)

deseq_window.comparisons_widgets['picker'].add_comparison_widget()
Expand Down

0 comments on commit c3b8048

Please sign in to comment.