find_beads 0.9.6-java → 0.9.7-java
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/find_beads.rb +6 -2
- data/lib/find_beads/version.rb +1 -1
- metadata +1 -1
data/lib/find_beads.rb
CHANGED
@@ -372,7 +372,11 @@ module FindBeads
|
|
372
372
|
normalization = if do_normalization then
|
373
373
|
auto_00 = compute_single_bead_correlation(mask, im, ch0, ch0, cen, id, bead_radius, false)[:norm_corr]
|
374
374
|
auto_11 = compute_single_bead_correlation(mask, im, ch1, ch1, cen, id, bead_radius, false)[:norm_corr]
|
375
|
-
|
375
|
+
begin
|
376
|
+
Math.sqrt(auto_00 * auto_11)*(auto_00.abs/auto_00)
|
377
|
+
rescue Math::DomainError
|
378
|
+
Float::NAN
|
379
|
+
end
|
376
380
|
else
|
377
381
|
1
|
378
382
|
end
|
@@ -515,7 +519,7 @@ module FindBeads
|
|
515
519
|
else
|
516
520
|
met = IntensityPerPixelMetric.new
|
517
521
|
q = met.quantify(mask, is)
|
518
|
-
Java::edu.stanford.cfuller.imageanalysistools.frontend.LocalAnalysis.generateDataOutputString(q, nil)
|
522
|
+
Java::edu.stanford.cfuller.imageanalysistools.frontend.LocalAnalysis.generateDataOutputString(q, nil).strip.gsub(" ", ",")
|
519
523
|
end
|
520
524
|
|
521
525
|
write_output(fn, outdat, mask)
|
data/lib/find_beads/version.rb
CHANGED