From 77ec98f7aa188c7637d6a827665f1becb5ad5fc8 Mon Sep 17 00:00:00 2001 From: Xia Hong Date: Mon, 11 Nov 2019 15:38:45 -0800 Subject: [PATCH] still return results if get_fit_results throw exception --- bioinformatics/QpcrAnalysis/amp_analysis.jl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bioinformatics/QpcrAnalysis/amp_analysis.jl b/bioinformatics/QpcrAnalysis/amp_analysis.jl index 8e48ba9ee..3ecf85def 100644 --- a/bioinformatics/QpcrAnalysis/amp_analysis.jl +++ b/bioinformatics/QpcrAnalysis/amp_analysis.jl @@ -44,8 +44,16 @@ function amp_analysis(i ::AmpInput) # ; asrp ::AmpStepRampProperties) "and Cq calculation will not be performed") else ## num_cycles > 2 baseline_cyc_bounds = check_bl_cyc_bounds(i, DEFAULT_AMP_BL_CYC_BOUNDS) - set_ct_fluos!(o, i, baseline_cyc_bounds) - set_output_fields!(o, i, get_fit_results(o, i, baseline_cyc_bounds)) + try + set_ct_fluos!(o, i, baseline_cyc_bounds) + catch e + warn(logger, "set_ct_fluos catch error: " * sprint(showerror, e)) + end + try + set_output_fields!(o, i, get_fit_results(o, i, baseline_cyc_bounds)) + catch e + warn(logger, "get_fit_results catch error: " * sprint(showerror, e)) + end set_qt_fluos!(o, i) set_report_cq!(o, i) end ## if