Repository 'curve_fitting'
hg clone https://toolshed.g2.bx.psu.edu/repos/imgteam/curve_fitting

Changeset 5:e0af18405e37 (2022-07-19)
Previous changeset 4:004c57179c61 (2022-04-09) Next changeset 6:2dc244356765 (2023-11-13)
Commit message:
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/curve_fitting/ commit cd63bc5e6eb7254111012209fac9154569355f20
modified:
curve_fitting.py
curve_fitting.xml
b
diff -r 004c57179c61 -r e0af18405e37 curve_fitting.py
--- a/curve_fitting.py Sat Apr 09 12:46:19 2022 +0000
+++ b/curve_fitting.py Tue Jul 19 08:51:41 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]))
b
diff -r 004c57179c61 -r e0af18405e37 curve_fitting.xml
--- a/curve_fitting.xml Sat Apr 09 12:46:19 2022 +0000
+++ b/curve_fitting.xml Tue Jul 19 08:51:41 2022 +0000
b
@@ -1,4 +1,4 @@
-<tool id="ip_curve_fitting" name="Curve Fitting" version="0.0.2" profile="20.05"> 
+<tool id="ip_curve_fitting" name="Curve Fitting" version="0.0.3" profile="20.05"> 
     <description>to data points using (1st- or 2nd-degree) polynomial function</description>
     <requirements>
         <requirement type="package" version="1.20.2">numpy</requirement>
@@ -11,9 +11,9 @@
 python '$__tool_directory__/curve_fitting.py'
     '$fn_in'
     ./output.xlsx
-    '$degree'
-    '$penalty'
-    '$alpha'
+    $degree
+    $penalty
+    $alpha
     ]]>
     </command>
     <inputs>