|
1 | 1 | package com.actelion.research.chem.chemicalspaces;
|
2 | 2 |
|
3 |
| -import java.io.BufferedReader; |
| 3 | +import com.actelion.research.chem.*; |
| 4 | +import com.actelion.research.chem.chemicalspaces.synthon.SynthonCreator; |
| 5 | +import com.actelion.research.chem.chemicalspaces.synthon.SynthonReactor; |
| 6 | +import com.actelion.research.chem.descriptor.DescriptorHandlerLongFFP512; |
| 7 | +import com.actelion.research.chem.io.DWARFileCreator; |
| 8 | +import com.actelion.research.chem.reaction.Reaction; |
| 9 | +import com.actelion.research.chem.reaction.Reactor; |
| 10 | + |
4 | 11 | import java.io.BufferedWriter;
|
5 | 12 | import java.io.File;
|
6 |
| -import java.io.FileNotFoundException; |
7 |
| -import java.io.FileReader; |
8 | 13 | import java.io.FileWriter;
|
9 | 14 | import java.io.IOException;
|
10 |
| -import java.util.ArrayList; |
11 |
| -import java.util.Arrays; |
12 |
| -import java.util.Collection; |
13 |
| -import java.util.Collections; |
14 |
| -import java.util.HashMap; |
15 |
| -import java.util.HashSet; |
16 |
| -import java.util.List; |
17 |
| -import java.util.Map; |
18 |
| -import java.util.Random; |
19 |
| -import java.util.Set; |
| 15 | +import java.util.*; |
20 | 16 | import java.util.concurrent.ConcurrentHashMap;
|
21 | 17 | import java.util.concurrent.ConcurrentMap;
|
22 | 18 | import java.util.stream.Collectors;
|
23 | 19 |
|
24 |
| -import com.actelion.research.chem.CanonizerUtil; |
25 |
| -import com.actelion.research.chem.IDCodeParser; |
26 |
| -import com.actelion.research.chem.Molecule; |
27 |
| -import com.actelion.research.chem.SSSearcher; |
28 |
| -import com.actelion.research.chem.SSSearcherWithIndex; |
29 |
| -import com.actelion.research.chem.StereoMolecule; |
30 |
| -import com.actelion.research.chem.chemicalspaces.synthon.SynthonCreator; |
31 |
| -import com.actelion.research.chem.chemicalspaces.synthon.SynthonReactor; |
32 |
| -import com.actelion.research.chem.descriptor.DescriptorHandlerLongFFP512; |
33 |
| -import com.actelion.research.chem.io.DWARFileCreator; |
34 |
| -import com.actelion.research.chem.io.RXNFileParser; |
35 |
| -import com.actelion.research.chem.io.SDFileParser; |
36 |
| -import com.actelion.research.chem.reaction.Reaction; |
37 |
| -import com.actelion.research.chem.reaction.Reactor; |
38 |
| - |
39 | 20 |
|
40 | 21 |
|
41 | 22 | public class ChemicalSpaceCreator {
|
@@ -87,7 +68,7 @@ public void create() {
|
87 | 68 | ConcurrentMap<String,String> processedToOrigIDCode = new ConcurrentHashMap<String,String>();
|
88 | 69 | ConcurrentMap<String,List<Map<String,String>>> reactionsWithSynthons = new ConcurrentHashMap<String,List<Map<String,String>>>();
|
89 | 70 | processBuildingBlocks(this.bbs,processedToOrigIDCode,functionalizations);
|
90 |
| - fps = new ConcurrentHashMap<String,long[]>(); |
| 71 | + fps = new ConcurrentHashMap<>(); |
91 | 72 | calcFragFPs(processedToOrigIDCode.keySet(),fps);
|
92 | 73 | generateSynthons(reactions, processedToOrigIDCode, reactionsWithSynthons,fps,allSynthonTransformations);
|
93 | 74 | generateCombinatoriaLibraries(reactionsWithSynthons, bbs, allSynthonTransformations);
|
@@ -179,7 +160,6 @@ private static void processReaction(Reaction rxn, ConcurrentMap<String,String>
|
179 | 160 | reactionsWithSynthons.putIfAbsent(rxn.getName(), new ArrayList<>());
|
180 | 161 |
|
181 | 162 | //System.out.println("bbs");
|
182 |
| - |
183 | 163 |
|
184 | 164 | for(int i=0;i<reactants.size();i++) {
|
185 | 165 | List<String> rList = reactants.get(i);
|
|
0 commit comments