Set<String> inchis;
Map<String,IMolecule> molecules;
Map<String,BitSet> fingerprints;
public SimilarityMatrix(Set<String> inchis) throws Exception {
Fingerprinter fingerprinter = new Fingerprinter();
this.inchis = inchis;
molecules = new HashMap<String,IMolecule>();
fingerprints = new HashMap<String,BitSet>();
for(String inchi : inchis) {
IMolecule mol = ConverterToInChI.getMolFromInChI(inchi);
if(mol != null) {
molecules.put(inchi, mol);
fingerprints.put(inchi, fingerprinter.getFingerprint(mol));
}
}
}