diff options
author | gebele <gebele@in-silico.ch> | 2016-12-20 16:26:09 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2016-12-20 16:26:09 +0000 |
commit | 76912e72cf52c2a10423226ababb2b6d7f4b84ca (patch) | |
tree | e167ec15c9b9434c027a341db50a3e7ea4955c34 /lib/nanoparticle.rb | |
parent | da086fad5b45c0d7b59feb40d0108ac620613933 (diff) | |
parent | a5abdd27b8c9b3f1cf65a567bfd9eb17ecc91a72 (diff) |
Merge branch 'development'1.0.0
Diffstat (limited to 'lib/nanoparticle.rb')
-rw-r--r-- | lib/nanoparticle.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/nanoparticle.rb b/lib/nanoparticle.rb index 02d9a89..06db4d2 100644 --- a/lib/nanoparticle.rb +++ b/lib/nanoparticle.rb @@ -40,6 +40,12 @@ module OpenTox properties[feature.id.to_s] << value properties[feature.id.to_s].uniq! when "TOX" + if feature.name.match("Cell Viability Assay") and !feature.name.match("SLOPE") # -log10 transformation + value = -Math.log10(value) + feature.unit = "-log10(#{feature.unit})" unless feature.unit.match "log10" + feature.warnings += ["-log10 transformed values"] unless feature.warnings.include? "-log10 transformed values" + feature.save + end dataset.add self, feature, value else warn "Unknown feature type '#{feature.category}'. Value '#{value}' not inserted." |