def main(control, experimental, tool_path, mapper, caller, cores_per_job): spp_path = os.path.join(tool_path, "phantompeakqualtools", "run_spp.R") idr_runner_path = os.path.join(tool_path, "idrCode", "batch-consistency-analysis.r") idr_plotter_path = os.path.join(tool_path, "idrCode", "batch-consistency-plot.r") peaks = idr.run_analysis(control, experimental, spp_path, idr_runner_path, idr_plotter_path, mapper, caller, cores_per_job)
def test_run_analysis(): tmp_control = idr.tagalign_split(_copy_file_to_testdir(control_file)) tmp_exp = idr.tagalign_split(_copy_file_to_testdir(exp_file)) with cluster_view(scheduler, queue, jobs) as view: plots, filtered_files = idr.run_analysis(tmp_control, tmp_exp, spp_path, idr_runner_path, idr_plotter_path, view.map, caller) all(map(idr.file_exists, filtered_files))