summaryrefslogtreecommitdiff
path: root/views/help.haml
blob: f602dff0e881e65995c8fc4938f6164a1cd6b749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
= link_to "Back to model creation", '/create'
%h2 Spreadsheets (Excel, CSV)
%p
  Input files have two columns. Enter in the first column the chemical structure in
  %a{:href => "http://en.wikipedia.org/wiki/Simplified_molecular_input_line_entry_specification", :rel => "external"} SMILES
  format, in the second column the toxic activity. The first line contains a description of the columns and is ignored.
%dl
  %dt Classification datasets 
  %dd Please use 1/0, active/inactive or true/false to indicate active/inactive compounds.
  %dt Regression datasets
  %dd
    Enter a quantitative value. For optimal performance you should
    %ul
      %li
        use
        %a{:href => "http://en.wikipedia.org/wiki/Molar_(concentration)", :rel => "external"} molar
        units
      %li enter non-logarithmic values (logarithms are taken internally)
      %li avoid 0 activities (will be ignored)
%p 
  Input files are accepted in 
  %a{:href => "http://en.wikipedia.org/wiki/Microsoft_Excel", :rel => "external"} Excel
  and
  %a{:href => "http://en.wikipedia.org/wiki/Comma-separated_values", :rel => "external"} CSV
  formats.

%h3 Excel example

- n = 0

.code
  %table
    %tr
      %td
      %th A
      %th B
    %tr
      - n += 1
      %th= n
      %td SMILES
      %td Hamster Carcinogenicity
    %tr
      - n += 1
      %th= n
      %td CC(=O)Nc1ccc(O)cc1
      %td 1  
    %tr
      - n += 1
      %th= n
      %td O=c1[nH]cnc2[nH]ncc12
      %td 1  
    %tr
      - n += 1
      %th= n
      %td CCCCNc1cc(cc(c1Oc2ccccc2)S(=O)(=O)N)C(=O)O
      %td 1  
    %tr
      - n += 1
      %th= n
      %td CC(C)(C)NCC(O)COc1cccc2NC(=O)CCc12
      %td 1  
    %tr
      - n += 1
      %th= n
      %td CN(C)CCCC1(OCc2cc(C#N)ccc21)c3ccc(F)cc3
      %td 1  
    %tr
      - n += 1
      %th= n
      %td CCC(CC)CCN1C(=O)CN=C(C2CCCCC2F)c3cc(Cl)ccc13
      %td 0 
    %tr
      - n += 1
      %th= n
      %td CCN(CC)CC(=O)Nc1c(C)cccc1C
      %td 0 
    %tr
      - n += 1
      %th= n
      %td CC(C)(C)NCC(O)COc1cccc2CC(O)C(O)Cc12
      %td 0 
    %tr
      - n += 1
      %th= n
      %td CN1CCCC1c2cccnc2
      %td 0 

%p
  Excel examples for download:
%ul
  %li
    = link_to "hamster_carcinogenicity.xls", "/hamster_carcinogenicity.xls"
    (classification)
  %li
    = link_to "EPAFHM.xls", "/EPAFHM.xls"
    (regression)

%h3 CSV example

.code
  %pre
    :preserve
      SMILES, Hamster Carcinogenicity
      CC(=O)Nc1ccc(O)cc1, 1  
      O=c1[nH]cnc2[nH]ncc12, 1  
      CCCCNc1cc(cc(c1Oc2ccccc2)S(=O)(=O)N)C(=O)O, 1  
      CC(C)(C)NCC(O)COc1cccc2NC(=O)CCc12, 1  
      CN(C)CCCC1(OCc2cc(C#N)ccc21)c3ccc(F)cc3, 1  
      CCC(CC)CCN1C(=O)CN=C(C2CCCCC2F)c3cc(Cl)ccc13, 0 
      CCN(CC)CC(=O)Nc1c(C)cccc1C, 0 
      CC(C)(C)NCC(O)COc1cccc2CC(O)C(O)Cc12, 0 
      CN1CCCC1c2cccnc2, 0 

%p
  CSV examples for download:
%ul
  %li
    = link_to "hamster_carcinogenicity.csv", "/hamster_carcinogenicity.csv"
    (classification)
  %li
    = link_to "EPAFHM.csv", "/EPAFHM.csv"
    (regression)

%p You can create CSV files in Excel: Create a sheet with two columns and export them as CSV file with the "Save As" option from the menu, selecting the CSV (comma delimited) format.

%h2 SDF

%p
  Currently ToxCreate supports 
  %a{:href => "http://en.wikipedia.org/wiki/Chemical_table_file#SDF", :rel => "external"} SDF
  files with a single data item as shown below (multiple data items will raise an error). You can also download an example SDF file:
  = link_to "hamster_carcinogenicity.sdf", "/hamster_carcinogenicity.sdf"

.code
  %pre
    -# keep empty lines -they are required by SDF
    :preserve
      
      
      
      
        6  6  0  0  0  0  0  0  0  0  1 V2000
          1.3304   -1.0738    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
          2.1104    0.0000    0.0000 N   0  0  0  0  0  0  0  0  0  0  0  0
          3.3767   -0.4086    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
          3.3767   -1.7390    0.0000 N   0  0  0  0  0  0  0  0  0  0  0  0
          2.1104   -2.1509    0.0000 N   0  0  0  0  0  0  0  0  0  0  0  0
          0.0000   -1.0738    0.0000 N   0  0  0  0  0  0  0  0  0  0  0  0
        1  2  1  0  0  0  0
        1  5  2  0  0  0  0
        1  6  1  0  0  0  0
        2  3  2  0  0  0  0
        3  4  1  0  0  0  0
        4  5  1  0  0  0  0
      M  END
      >  <ActivityOutcome_CPDBAS_Hamster>
      inactive
      
      $$$$