kazius-alerts 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/kazius-alerts.gemspec +1 -1
- data/lib/kazius-alerts.rb +0 -21
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ac364ebc693f3d987ebe695bc59524bfcb5e020
|
4
|
+
data.tar.gz: 7b9e508afe3460b1be9a16e9c5df2bcb8f86e50a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 988a2d77611304fce6dcb7d5a7f0ae424ce4bb407db0aa14d2d94fb54a6c771d3e08c28f715db019f59056f39d8c122ce82b58b0d3c706e6b02a4a13299dead9
|
7
|
+
data.tar.gz: f55c6f3cca6cba1dec48acfe5970d10d1cece2ae75bb6afd41489e27257e5246d10da47d0144e4fc023161f8dbd145300a42af954f5d4fb35af1d181c80297f4
|
data/kazius-alerts.gemspec
CHANGED
data/lib/kazius-alerts.rb
CHANGED
@@ -83,24 +83,3 @@ class KaziusAlerts
|
|
83
83
|
end
|
84
84
|
|
85
85
|
end
|
86
|
-
|
87
|
-
class ConsensusMutagenicity
|
88
|
-
|
89
|
-
def self.predict smiles
|
90
|
-
sa_prediction = KaziusAlerts.predict smiles
|
91
|
-
lazar_prediction = Lazar.predict smiles
|
92
|
-
confidence = 0
|
93
|
-
if sa_prediction[:prediction] == false && lazar_mutagenicity.prediction == 0
|
94
|
-
confidence = 0.85
|
95
|
-
elsif sa_prediction[:prediction] == true && lazar_mutagenicity.prediction == 1
|
96
|
-
confidence = 0.85 * ( 1 - sa_prediction[:error_product] )
|
97
|
-
elsif sa_prediction[:prediction] == false && lazar_mutagenicity.prediction == 1
|
98
|
-
confidence = 0.11
|
99
|
-
elsif sa_prediction[:prediction] == true && lazar_mutagenicity.prediction == 0
|
100
|
-
confidence = ( 1 - sa_prediction[:error_product] ) - 0.57
|
101
|
-
end
|
102
|
-
{:prediction => prediction, :confidence => confidence}
|
103
|
-
end
|
104
|
-
|
105
|
-
end
|
106
|
-
|