# HG changeset patch # User imgteam # Date 1658220636 0 # Node ID 2c185b562eed8bb41db332946a5a08310eb4c6d7 # Parent 42a68c3c07dc863a8010b8d4dea018215a92a39a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/curve_fitting/ commit cd63bc5e6eb7254111012209fac9154569355f20 diff -r 42a68c3c07dc -r 2c185b562eed curve_fitting.py --- a/curve_fitting.py Sat Apr 09 12:44:47 2022 +0000 +++ b/curve_fitting.py Tue Jul 19 08:50:36 2022 +0000 @@ -68,7 +68,7 @@ seq = data_all[i][:, -1] seq_fit = seq.copy() idx_valid = ~np.isnan(seq) - seq_fit[idx_valid] = curve_fitting(seq[idx_valid], degree=2, penalty='abs') + seq_fit[idx_valid] = curve_fitting(seq[idx_valid], degree=degree, penalty=penalty) data_all[i] = np.concatenate((data_all[i], seq_fit.reshape(-1, 1)), axis=1) if alpha > 0: diff = np.concatenate((diff, seq_fit[idx_valid] - seq[idx_valid])) diff -r 42a68c3c07dc -r 2c185b562eed curve_fitting.xml --- a/curve_fitting.xml Sat Apr 09 12:44:47 2022 +0000 +++ b/curve_fitting.xml Tue Jul 19 08:50:36 2022 +0000 @@ -1,4 +1,4 @@ - + to data points using (1st- or 2nd-degree) polynomial function numpy @@ -11,9 +11,9 @@ python '$__tool_directory__/curve_fitting.py' '$fn_in' ./output.xlsx - '$degree' - '$penalty' - '$alpha' + $degree + $penalty + $alpha ]]>