Skip to content

Commit

Permalink
Adjustment for the Nestle GUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
davor committed May 30, 2012
1 parent 2e2bf55 commit 2b7bd5b
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 59 deletions.
6 changes: 3 additions & 3 deletions views/feature_table.haml
Expand Up @@ -36,13 +36,13 @@
-if features[:deactivating].empty? and features[:activating].empty? and (features[:pc_features].size >= 1) -if features[:deactivating].empty? and features[:activating].empty? and (features[:pc_features].size >= 1)
%tr %tr
%th %th
descriptor Descriptors
%th %th
value Values
- features[:pc_features].sort{|a,b| a[:feature] <=> b[:feature] }.each do |f| - features[:pc_features].sort{|a,b| a[:feature] <=> b[:feature] }.each do |f|
%tr %tr
%td= f[:feature] %td= f[:feature]
%td= f[:value] %td= f[:value].uniq.collect{|v| v.to_s + " "}






Expand Down
12 changes: 7 additions & 5 deletions views/layout.haml
Expand Up @@ -35,10 +35,12 @@
%b= session[:username] %b= session[:username]


.notice .notice
This is an experimental version based on This is a prediction interface for Nestle based on IST web services.
%a{:href => "http://www.opentox.org", :rel => "external"} OpenTox Please contact us in case of problems:
services. Please report problems and feature requests to our %a{:href => 'mailto:andreas@maunz.de', :rel => "andreas@maunz.de"} Andreas Maunz
%a{:href => 'http://github.com/opentox/toxcreate/issues', :rel => "external"} issue tracker. or
%a{:href => 'mailto:david.vorg@googlemail.com', :rel => "david.vorg@googlemail.com"} David Vorgrimmler



- if `hostname`.match(/ot-test/) - if `hostname`.match(/ot-test/)
.notice .notice
Expand All @@ -55,4 +57,4 @@
.footer .footer
&copy; &copy;
%a{:href => 'http://www.in-silico.ch', :rel => "external"} in silico toxicology gmbh %a{:href => 'http://www.in-silico.ch', :rel => "external"} in silico toxicology gmbh
2004-2011 2004-2012
6 changes: 4 additions & 2 deletions views/lazar.haml
Expand Up @@ -5,7 +5,8 @@
= haml :lazar_algorithm, :layout => false = haml :lazar_algorithm, :layout => false
= haml :confidence, :layout => false = haml :confidence, :layout => false
= haml :similarity, :layout => false = haml :similarity, :layout => false
= haml :significant_fragments, :layout => false -#= haml :significant_fragments, :layout => false
= haml :pc_descriptors, :layout => false
= haml :training_data, :layout => false = haml :training_data, :layout => false


%a{:name => "prediction"} %a{:name => "prediction"}
Expand All @@ -30,7 +31,8 @@
$("#compound_names").load("#{File.join("/compound",@compound.inchi)}"); $("#compound_names").load("#{File.join("/compound",@compound.inchi)}");
$("tr#names").toggle(); $("tr#names").toggle();
}); });
%li= toggle_link("#fragments","Significant fragments") -#%li= toggle_link("#fragments","Significant fragments")
%li= toggle_link("#fragments","Physico chemical descriptors")


%tr#names{ :style => "display: none;" } %tr#names{ :style => "display: none;" }
%td{:colspan => '4'} %td{:colspan => '4'}
Expand Down
47 changes: 4 additions & 43 deletions views/lazar_algorithm.haml
Expand Up @@ -14,51 +14,12 @@
%em (neighbors) %em (neighbors)
and calculates the prediction from their measured activities. and calculates the prediction from their measured activities.
%code lazar %code lazar
calculates predictions using calculates predictions using a well-established radial basis function (rbf) kernel for SVMs
%ul %em (regression)
%li
a majority vote (weighted by compound similarity) for
%em classification
(
%a{:href => "http://www.in-silico.de/articles/modi020905.pdf", :rel => "external"} original publication
)
%li
a local QSAR model based on neighbors for
%em regression
(
%a{:href => "http://www.in-silico.de/articles/mh_tf.pdf", :rel => "external"} original publication
)

%p
= toggle_link "#significant_fragments", "Significant fragments"
are highlighted in the structure display as follows:
- if @value_map.empty?
%ul
%li
.active activating fragments
%li
.inactive deactivating fragments
%li
.inconclusive regions, where activating and deactivating fragments overlap
%li
.other inert parts
- else
%ul
%li
.active= "features that occur predominately in compounds with activity: \"#{@value_map[@value_map.keys.sort.last]}\""
%li
.inactive= "features that occur predominately in compounds with activity: \"#{@value_map[@value_map.keys.sort.first]}\""
%li
.inconclusive regions, where fragments from different classes overlap
%li
.other inert parts
- if @value_map.size > 2
.notice Incomplete implementation of feature highlighting and display of significant fragments. Only features for 2 classes are shown!


%p %p
Please keep in mind that predictions are based on the measured activities of neighbors. Please keep in mind that predictions are based on the measured activities of neighbors.
= toggle_link "#significant_fragments", "Significant fragments" = toggle_link "#pc_descriptors", "Physico chemical descriptors"
are solely used to determine are solely used to determine
= toggle_link "#similarity", "activity specific similarities" = toggle_link "#similarity", "activity specific similarities"
of neighbors. of neighbors.
3 changes: 2 additions & 1 deletion views/neighbors.haml
Expand Up @@ -25,7 +25,8 @@
$("#compound_names#{neighbor_id}").load("#{File.join("compound",compound.inchi)}"); $("#compound_names#{neighbor_id}").load("#{File.join("compound",compound.inchi)}");
$("#names#{neighbor_id}").toggle(); $("#names#{neighbor_id}").toggle();
}); });
%li= toggle_link("#fragments#{neighbor_id}","Significant fragments") -#%li= toggle_link("#fragments#{neighbor_id}","Significant fragments")
%li= toggle_link("#fragments#{neighbor_id}","Physico chemical descriptors")
-#%li Ambit data -#%li Ambit data
-# %li -# %li
%a{:href => "http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=PureSearch&db=pccompound&term=#{URI.encode('"'+compound.inchi+'"[InChI]')}"} PubChem data %a{:href => "http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=PureSearch&db=pccompound&term=#{URI.encode('"'+compound.inchi+'"[InChI]')}"} PubChem data
Expand Down
11 changes: 6 additions & 5 deletions views/similarity.haml
Expand Up @@ -8,12 +8,13 @@
%code lazar %code lazar
calculates calculates
%em activity specific %em activity specific
similarities based on the presence of statistically similarities based on the presence of statistically significant
= toggle_link "#significant_fragments", "significant fragments" -#= toggle_link "#significant_fragments", "significant fragments"
This procedure will = toggle_link "#pc_descriptors", "physico chemical descriptors."
%ul -#This procedure will
-#%ul
%li consider only those parts of a chemical structure that are relevant for a particular endpoint %li consider only those parts of a chemical structure that are relevant for a particular endpoint
%li ignore inert parts of the structure %li ignore inert parts of the structure
%li lead to different similarities, depending on the toxic endpoint %li lead to different similarities, depending on the toxic endpoint
Similarities of 1 may be encountered even for structurally dissimilar compounds, because inert parts are ignored. -#Similarities of 1 may be encountered even for structurally dissimilar compounds, because inert parts are ignored.


0 comments on commit 2b7bd5b

Please sign in to comment.