Examples of Fingerprinter


Examples of org.openscience.cdk.fingerprint.Fingerprinter

  public LuceneChemicalIndex(File indexFile, boolean makeNew) throws Exception {
    this.indexFile = indexFile;
    myAnalyzer = new StandardAnalyzer();
    indexWriter = new IndexWriter(indexFile, myAnalyzer, makeNew, MaxFieldLength.UNLIMITED);
    indexWriter.setSimilarity(new ChemicalSimilarity());
    fingerprinter = new Fingerprinter();
    indexSearcher = null;
  }
View Full Code Here

Examples of org.openscience.cdk.fingerprint.Fingerprinter

  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));
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.