qsar-report 0.0.5 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,146 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!DOCTYPE QMRF PUBLIC "http://qmrf.sourceforge.net/qmrf.dtd" "qmrf.dtd">
3
+ <QMRF author="Joint Research Centre, European Commission" contact="Joint Research Centre, European Commission" date="July 2007" email="JRC-IHCP-COMPUTOX@ec.europa.eu" name="(Q)SAR Model Reporting Format" schema_version="1.0" url="http://ihcp.jrc.ec.europa.eu/" version="1.3">
4
+ <QMRF_chapters>
5
+ <QSAR_identifier chapter="1" help="" name="QSAR identifier">
6
+ <QSAR_title chapter="1.1" help="" name="QSAR identifier (title)"/>
7
+ <QSAR_models chapter="1.2" help="" name="Other related models"/>
8
+ <QSAR_software chapter="1.3" help="" name="Software coding the model">
9
+
10
+ <software_ref idref="firstsoftware"/>
11
+ </QSAR_software>
12
+ </QSAR_identifier>
13
+ <QSAR_General_information chapter="2" help="" name="General information">
14
+ <qmrf_date chapter="2.1" help="" name="Date of QMRF"/>
15
+ <qmrf_authors chapter="2.2" help="" name="QMRF author(s) and contact details">
16
+
17
+ <author_ref idref="firstauthor"/>
18
+ </qmrf_authors>
19
+ <qmrf_date_revision chapter="2.3" help="" name="Date of QMRF update(s)"/>
20
+ <qmrf_revision chapter="2.4" help="" name="QMRF update(s)"/>
21
+ <model_authors chapter="2.5" help="" name="Model developer(s) and contact details">
22
+
23
+ <author_ref idref="modelauthor"/>
24
+ </model_authors>
25
+ <model_date chapter="2.6" help="" name="Date of model development and/or publication"/>
26
+ <references chapter="2.7" help="" name="Reference(s) to main scientific papers and/or software package">
27
+
28
+ </references>
29
+ <info_availability chapter="2.8" help="" name="Availability of information about the model"/>
30
+ <related_models chapter="2.9" help="" name="Availability of another QMRF for exactly the same model"/>
31
+ </QSAR_General_information>
32
+ <QSAR_Endpoint chapter="3" help="" name="Defining the endpoint - OECD Principle 1">
33
+ <model_species chapter="3.1" help="" name="Species"/>
34
+ <model_endpoint chapter="3.2" help="" name="Endpoint">
35
+
36
+ </model_endpoint>
37
+ <endpoint_comments chapter="3.3" help="" name="Comment on endpoint"/>
38
+ <endpoint_units chapter="3.4" help="" name="Endpoint units"/>
39
+ <endpoint_variable chapter="3.5" help="" name="Dependent variable"/>
40
+ <endpoint_protocol chapter="3.6" help="" name="Experimental protocol"/>
41
+ <endpoint_data_quality chapter="3.7" help="" name="Endpoint data quality and variability"/>
42
+ </QSAR_Endpoint>
43
+ <QSAR_Algorithm chapter="4" help="" name="Defining the algorithm - OECD Principle 2">
44
+ <algorithm_type chapter="4.1" help="" name="Type of model"/>
45
+ <algorithm_explicit chapter="4.2" help="" name="Explicit algorithm">
46
+ <algorithm_ref idref="algorithms_catalog_1"/>
47
+ <equation/>
48
+ </algorithm_explicit>
49
+ <algorithms_descriptors chapter="4.3" help="" name="Descriptors in the model">
50
+
51
+ <descriptor_ref idref="descriptors_catalog_1"/>
52
+ </algorithms_descriptors>
53
+ <descriptors_selection chapter="4.4" help="" name="Descriptor selection"/>
54
+ <descriptors_generation chapter="4.5" help="" name="Algorithm and descriptor generation"/>
55
+ <descriptors_generation_software chapter="4.6" help="" name="Software name and version for descriptor generation" options="">
56
+
57
+ <software_ref idref="software_catalog_2"/>
58
+ </descriptors_generation_software>
59
+ <descriptors_chemicals_ratio chapter="4.7" help="" name="Chemicals/Descriptors ratio"/>
60
+ </QSAR_Algorithm>
61
+ <QSAR_Applicability_domain chapter="5" help="" name="Defining the applicability domain - OECD Principle 3">
62
+ <app_domain_description chapter="5.1" help="" name="Description of the applicability domain of the model"/>
63
+ <app_domain_method chapter="5.2" help="" name="Method used to assess the applicability domain"/>
64
+ <app_domain_software chapter="5.3" help="" name="Software name and version for applicability domain assessment">
65
+
66
+ <software_ref idref="software_catalog_3"/>
67
+ </app_domain_software>
68
+ <applicability_limits chapter="5.4" help="" name="Limits of applicability"/>
69
+ </QSAR_Applicability_domain>
70
+ <QSAR_Robustness chapter="6" help="" name="Internal validation - OECD Principle 4">
71
+ <training_set_availability answer="Yes" chapter="6.1" help="" name="Availability of the training set"/>
72
+ <training_set_data cas="Yes" chapter="6.2" chemname="Yes" formula="Yes" help="" inchi="Yes" mol="Yes" name="Available information for the training set" smiles="Yes"/>
73
+ <training_set_descriptors answer="All" chapter="6.3" help="" name="Data for each descriptor variable for the training set"/>
74
+ <dependent_var_availability answer="All" chapter="6.4" help="" name="Data for the dependent variable for the training set"/>
75
+ <other_info chapter="6.5" help="" name="Other information about the training set"/>
76
+ <preprocessing chapter="6.6" help="" name="Pre-processing of data before modelling"/>
77
+ <goodness_of_fit chapter="6.7" help="" name="Statistics for goodness-of-fit"/>
78
+ <loo chapter="6.8" help="" name="Robustness - Statistics obtained by leave-one-out cross-validation"/>
79
+ <lmo chapter="6.9" help="" name="Robustness - Statistics obtained by leave-many-out cross-validation"/>
80
+ <yscrambling chapter="6.10" help="" name="Robustness - Statistics obtained by Y-scrambling"/>
81
+ <bootstrap chapter="6.11" help="" name="Robustness - Statistics obtained by bootstrap"/>
82
+ <other_statistics chapter="6.12" help="" name="Robustness - Statistics obtained by other methods"/>
83
+ </QSAR_Robustness>
84
+ <QSAR_Predictivity chapter="7" help="" name="External validation - OECD Principle 4">
85
+ <validation_set_availability answer="Yes" chapter="7.1" help="" name="Availability of the external validation set"/>
86
+ <validation_set_data cas="Yes" chapter="7.2" chemname="Yes" formula="Yes" help="" inchi="Yes" mol="Yes" name="Available information for the external validation set" smiles="Yes"/>
87
+ <validation_set_descriptors answer="All" chapter="7.3" help="" name="Data for each descriptor variable for the external validation set"/>
88
+ <validation_dependent_var_availability answer="All" chapter="7.4" help="" name="Data for the dependent variable for the external validation set"/>
89
+ <validation_other_info chapter="7.5" help="" name="Other information about the external validation set"/>
90
+ <experimental_design chapter="7.6" help="" name="Experimental design of test set"/>
91
+ <validation_predictivity chapter="7.7" help="" name="Predictivity - Statistics obtained by external validation"/>
92
+ <validation_assessment chapter="7.8" help="" name="Predictivity - Assessment of the external validation set"/>
93
+ <validation_comments chapter="7.9" help="" name="Comments on the external validation of the model"/>
94
+ </QSAR_Predictivity>
95
+ <QSAR_Interpretation chapter="8" help="" name="Providing a mechanistic interpretation - OECD Principle 5">
96
+ <mechanistic_basis chapter="8.1" help="" name="Mechanistic basis of the model"/>
97
+ <mechanistic_basis_comments chapter="8.2" help="" name="A priori or a posteriori mechanistic interpretation"/>
98
+ <mechanistic_basis_info chapter="8.3" help="" name="Other information about the mechanistic interpretation"/>
99
+ </QSAR_Interpretation>
100
+ <QSAR_Miscelaneous chapter="9" help="" name="Miscellaneous information">
101
+ <comments chapter="9.1" help="" name="Comments"/>
102
+ <bibliography chapter="9.2" help="" name="Bibliography">
103
+
104
+ <publication_ref idref="publications_catalog_1"/>
105
+ </bibliography>
106
+ <attachments chapter="9.3" help="" name="Supporting information">
107
+
108
+
109
+
110
+
111
+
112
+
113
+ <attachment_training_data/>
114
+ <attachment_validation_data/>
115
+ <attachment_documents/>
116
+ </attachments>
117
+ </QSAR_Miscelaneous>
118
+ <QMRF_Summary chapter="10" help="" name="Summary (JRC QSAR Model Database)">
119
+ <QMRF_number chapter="10.1" help="" name="QMRF number">To be entered by JRC</QMRF_number>
120
+ <date_publication chapter="10.2" help="" name="Publication date">To be entered by JRC</date_publication>
121
+ <keywords chapter="10.3" help="" name="Keywords">To be entered by JRC</keywords>
122
+ <summary_comments chapter="10.4" help="" name="Comments">To be entered by JRC</summary_comments>
123
+ </QMRF_Summary>
124
+ </QMRF_chapters>
125
+ <Catalogs>
126
+ <software_catalog>
127
+ <software contact="" description="" id="firstsoftware" name="" number="" url=""/>
128
+ <software contact="" description="" id="software_catalog_2" name="" number="" url=""/>
129
+ <software contact="" description="" id="software_catalog_3" name="" number="" url=""/>
130
+ </software_catalog>
131
+ <algorithms_catalog>
132
+ <algorithm definition="" description="" id="algorithms_catalog_1" publication_ref=""/>
133
+ </algorithms_catalog>
134
+ <descriptors_catalog>
135
+ <descriptor description="" id="descriptors_catalog_1" name="" publication_ref="" units=""/>
136
+ </descriptors_catalog>
137
+ <endpoints_catalog/>
138
+ <publications_catalog>
139
+ <publication id="publications_catalog_1" title="" url=""/>
140
+ </publications_catalog>
141
+ <authors_catalog>
142
+ <author affiliation="" contact="" email="" id="firstauthor" name="" number="" url=""/>
143
+ <author affiliation="" contact="" email="" id="modelauthor" name="" number="" url=""/>
144
+ </authors_catalog>
145
+ </Catalogs>
146
+ </QMRF>
@@ -71,4 +71,12 @@ class QMRFReportTest < MiniTest::Test
71
71
  assert_equal report.to_xml, File.read(File.join(File.join(DATA_DIR, "qmrf_t8.xml")))
72
72
  end
73
73
 
74
+ def test_9_set_attributes
75
+ report = OpenTox::QMRFReport.new
76
+ report.change_attributes "training_set_data", {:inchi => "Yes", :smiles => "Yes"}
77
+ assert_equal report.to_xml, File.read(File.join(File.join(DATA_DIR, "qmrf_t9y.xml")))
78
+ report.change_attributes "training_set_data", {:inchi => "No", :smiles => "No"}
79
+ assert_equal report.to_xml, File.read(File.join(File.join(DATA_DIR, "qmrf_t9n.xml")))
80
+ end
81
+
74
82
  end
@@ -1,6 +1,6 @@
1
1
  require_relative "setup.rb"
2
2
 
3
- class QMRFReportTest < MiniTest::Test
3
+ class QPRFReportTest < MiniTest::Test
4
4
 
5
5
  def test_0_self
6
6
  puts "MiniTest #{self.class} start OK"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qsar-report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micha Rautenberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-14 00:00:00.000000000 Z
11
+ date: 2016-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -67,6 +67,7 @@ files:
67
67
  - LICENSE
68
68
  - README.md
69
69
  - VERSION
70
+ - example/example.rb
70
71
  - lib/qmrf-report.rb
71
72
  - lib/qprf-report.rb
72
73
  - lib/qsar-report.rb
@@ -80,14 +81,17 @@ files:
80
81
  - test/data/qmrf_t4.xml
81
82
  - test/data/qmrf_t7.xml
82
83
  - test/data/qmrf_t8.xml
84
+ - test/data/qmrf_t9n.xml
85
+ - test/data/qmrf_t9y.xml
83
86
  - test/data/qprf-t6.json
84
87
  - test/qmrf-report.rb
85
88
  - test/qprf-report.rb
86
89
  - test/setup.rb
87
- homepage: http://github.com/opentox/qsar-report
90
+ homepage: https://github.com/opentox/qsar-report
88
91
  licenses:
89
92
  - GPL-3.0
90
- metadata: {}
93
+ metadata:
94
+ issue_tracker: https://github.com/opentox/qsar-report/issues
91
95
  post_install_message:
92
96
  rdoc_options: []
93
97
  require_paths: