igashov commited on
Commit
8d6141b
1 Parent(s): 53f22d0
Files changed (3) hide show
  1. app.py +5 -1
  2. examples/example_1.sdf +52 -0
  3. examples/example_2.sdf +85 -0
app.py CHANGED
@@ -162,7 +162,11 @@ with demo:
162
  with gr.Column():
163
  gr.Markdown('## Input Fragments')
164
  gr.Markdown('Upload the file with 3D-coordinates of the input fragments in .pdb, .mol2 or .sdf format:')
165
- input_file = gr.File(file_count='single', label='Input fragments')
 
 
 
 
166
  button = gr.Button('Generate Linker!')
167
  gr.Markdown('')
168
  gr.Markdown('## Output Files')
 
162
  with gr.Column():
163
  gr.Markdown('## Input Fragments')
164
  gr.Markdown('Upload the file with 3D-coordinates of the input fragments in .pdb, .mol2 or .sdf format:')
165
+ input_file = gr.File(file_count='single', label='Input Fragments')
166
+ gr.Examples(
167
+ examples=['examples/example_1.sdf', 'examples/example_2.sdf'],
168
+ inputs=input_file,
169
+ )
170
  button = gr.Button('Generate Linker!')
171
  gr.Markdown('')
172
  gr.Markdown('## Output Files')
examples/example_1.sdf ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ example_1
2
+ OpenBabel10162201143D
3
+
4
+ 23 23 0 0 0 0 0 0 0 0999 V2000
5
+ 1.7607 0.5222 2.9642 C 0 0 0 0 0 1 0 0 0 0 0 0
6
+ 2.6964 -0.2235 2.2177 O 0 0 0 0 0 0 0 0 0 0 0 0
7
+ 2.3096 -0.7133 1.0156 C 0 0 0 0 0 0 0 0 0 0 0 0
8
+ 1.0374 -0.5914 0.4895 C 0 0 0 0 0 3 0 0 0 0 0 0
9
+ 0.7447 -1.0988 -0.7748 C 0 0 0 0 0 3 0 0 0 0 0 0
10
+ 1.7189 -1.7463 -1.5082 C 0 0 0 0 0 3 0 0 0 0 0 0
11
+ 2.9908 -1.9020 -0.9738 C 0 0 0 0 0 3 0 0 0 0 0 0
12
+ 3.3059 -1.3917 0.2733 C 0 0 0 0 0 0 0 0 0 0 0 0
13
+ 4.5236 -1.4769 0.8717 O 0 0 0 0 0 0 0 0 0 0 0 0
14
+ 5.5651 -2.1202 0.1811 C 0 0 0 0 0 1 0 0 0 0 0 0
15
+ -1.5356 1.4890 0.7225 O 0 0 0 0 0 0 0 0 0 0 0 0
16
+ -1.9292 0.8049 -0.2055 C 0 0 0 0 0 3 0 0 0 0 0 0
17
+ -3.1330 0.2346 -0.2776 N 0 0 0 0 0 2 0 0 0 0 0 0
18
+ -4.0925 0.2460 0.8072 C 0 0 0 0 0 3 0 0 0 0 0 0
19
+ -4.2119 -1.1551 1.4241 C 0 0 0 0 0 2 0 0 0 0 0 0
20
+ -5.2662 -1.8357 0.5573 C 0 0 0 0 0 2 0 0 0 0 0 0
21
+ -6.3102 -0.7361 0.3683 C 0 0 0 0 0 2 0 0 0 0 0 0
22
+ -5.5003 0.5663 0.2683 C 0 0 0 0 0 2 0 0 0 0 0 0
23
+ 0.8985 1.5439 -2.6786 C 0 0 0 0 0 3 0 0 0 0 0 0
24
+ 0.0863 1.4407 -1.5888 C 0 0 0 0 0 3 0 0 0 0 0 0
25
+ 0.5652 2.5273 -0.3347 S 0 0 0 0 0 0 0 0 0 0 0 0
26
+ 1.8586 3.1109 -1.3037 C 0 0 0 0 0 3 0 0 0 0 0 0
27
+ 1.9172 2.5055 -2.5161 C 0 0 0 0 0 3 0 0 0 0 0 0
28
+ 2 1 1 0 0 0 0
29
+ 3 2 1 0 0 0 0
30
+ 4 3 1 0 0 0 0
31
+ 5 4 2 0 0 0 0
32
+ 6 7 2 0 0 0 0
33
+ 6 5 1 0 0 0 0
34
+ 7 8 1 0 0 0 0
35
+ 8 9 1 0 0 0 0
36
+ 8 3 2 0 0 0 0
37
+ 10 9 1 0 0 0 0
38
+ 12 11 2 0 0 0 0
39
+ 13 12 1 0 0 0 0
40
+ 13 14 1 0 0 0 0
41
+ 14 15 1 0 0 0 0
42
+ 16 15 1 0 0 0 0
43
+ 17 16 1 0 0 0 0
44
+ 18 17 1 0 0 0 0
45
+ 18 14 1 0 0 0 0
46
+ 19 23 1 0 0 0 0
47
+ 19 20 2 0 0 0 0
48
+ 20 21 1 0 0 0 0
49
+ 22 21 1 0 0 0 0
50
+ 23 22 2 0 0 0 0
51
+ M END
52
+ $$$$
examples/example_2.sdf ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ example_2
2
+ OpenBabel10162201143D
3
+
4
+ 39 40 0 0 1 0 0 0 0 0999 V2000
5
+ -4.3312 -0.0988 0.2512 C 0 0 0 0 0 3 0 0 0 0 0 0
6
+ -3.7191 -1.0977 -0.0699 O 0 0 0 0 0 0 0 0 0 0 0 0
7
+ -5.5766 0.2093 -0.1116 N 0 0 0 0 0 2 0 0 0 0 0 0
8
+ -6.4225 -0.5877 -1.0205 C 0 0 0 0 0 0 0 0 0 0 0 0
9
+ -7.7541 0.1471 -1.1418 C 0 0 0 0 0 1 0 0 0 0 0 0
10
+ -6.6320 -1.9777 -0.4192 C 0 0 0 0 0 1 0 0 0 0 0 0
11
+ -5.7367 -0.6872 -2.3833 C 0 0 0 0 0 1 0 0 0 0 0 0
12
+ -1.9707 4.1957 0.1103 C 0 0 0 0 0 1 0 0 0 0 0 0
13
+ -1.0017 3.8045 -0.9779 C 0 0 0 0 0 0 0 0 0 0 0 0
14
+ -1.4446 3.5018 -2.2622 C 0 0 0 0 0 3 0 0 0 0 0 0
15
+ -0.5362 3.0719 -3.2140 C 0 0 0 0 0 3 0 0 0 0 0 0
16
+ 0.7920 2.9396 -2.8383 C 0 0 0 0 0 3 0 0 0 0 0 0
17
+ 1.2303 3.2327 -1.6259 N 0 0 0 0 0 0 0 0 0 0 0 0
18
+ 0.3615 3.6654 -0.7291 C 0 0 0 0 0 3 0 0 0 0 0 0
19
+ -2.9086 -0.7475 2.7906 C 0 0 0 0 0 1 0 0 0 0 0 0
20
+ -1.6921 -1.6964 2.9551 C 0 0 1 0 0 3 0 0 0 0 0 0
21
+ -1.8466 -2.4745 4.1086 O 0 0 0 0 0 1 0 0 0 0 0 0
22
+ -1.4647 -2.5332 1.6798 C 0 0 0 0 0 2 0 0 0 0 0 0
23
+ -0.0343 -2.4727 1.1331 C 0 0 1 0 0 3 0 0 0 0 0 0
24
+ 0.0772 -3.4160 -0.0885 C 0 0 0 0 0 2 0 0 0 0 0 0
25
+ 1.4553 -3.4505 -0.6886 C 0 0 0 0 0 0 0 0 0 0 0 0
26
+ 1.7054 -2.8769 -1.9283 C 0 0 0 0 0 3 0 0 0 0 0 0
27
+ 2.9764 -2.9089 -2.4753 C 0 0 0 0 0 3 0 0 0 0 0 0
28
+ 4.0153 -3.5069 -1.7847 C 0 0 0 0 0 3 0 0 0 0 0 0
29
+ 3.7772 -4.0803 -0.5474 C 0 0 0 0 0 3 0 0 0 0 0 0
30
+ 2.5056 -4.0537 -0.0039 C 0 0 0 0 0 3 0 0 0 0 0 0
31
+ 0.3324 -1.0719 0.6876 C 0 0 0 0 0 0 0 0 0 0 0 0
32
+ -0.5146 -0.1934 0.4588 O 0 0 0 0 0 0 0 0 0 0 0 0
33
+ 1.6273 -0.8145 0.5579 N 0 0 0 0 0 2 0 0 0 0 0 0
34
+ 2.1247 0.4405 0.0487 C 0 0 1 0 0 3 0 0 0 0 0 0
35
+ 2.5750 1.4249 1.1002 C 0 0 0 0 0 0 0 0 0 0 0 0
36
+ 2.0501 1.6717 2.3505 C 0 0 0 0 0 3 0 0 0 0 0 0
37
+ 2.6299 2.6641 3.1298 C 0 0 0 0 0 3 0 0 0 0 0 0
38
+ 3.7129 3.3859 2.6570 C 0 0 0 0 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