Commiting branch GCAT_6.0 at SVN revision 572

This commit is contained in:
Yury V Bukhman
2015-06-26 15:51:35 -05:00
parent 2d658405a1
commit c7fb48ce68
14 changed files with 40 additions and 27 deletions
+10 -3
View File
@@ -139,7 +139,7 @@ class Assay
# (4) start index (A Positive Integer Number)
if
start_index == ''
self.start_index = 2
self.start_index = 1
else
self.start_index.gsub(/\s+/, "") # remove white spaces
self.start_index = self.start_index.to_i
@@ -276,6 +276,7 @@ class Assay
# (2) transformation. N value (A Real Number)
R.assign "add.constant", self.transformation
# R.assign "add.constant", 0
# (3) blank value (A Real Number)
if (self.blank_value == nil)
R.eval "blank.value <- NULL"
@@ -284,8 +285,14 @@ class Assay
else
R.assign "blank.value", self.blank_value
end
# (4) start index (A Positive Integer Number)
R.assign "start.index", self.start_index
# (4) start index (A Positive Integer Number). Cannot be 1 if blank value is nil.
if(self.blank_value == nil && self.start_index == 1)
return {:error_message => "Error: inoculation timepoint cannot be 1 if using first OD reading as blank", :path => inputfile}
else
R.assign "start.index", self.start_index
end
# (5) remove points [a space-separated list of points. Example: 2,3,4,5 (Positive Integer Number)]
R.assign "points.to.remove", self.remove_points