PubchemFingerprinter extends AbstractFingerprinter implements IFingerprinter { @Override public int getSize() { return FP_SIZE; } PubchemFingerprinter(IChemObjectBuilder builder); @Override IBitFingerprint getBitFingerprint(IAtomContainer atomContainer); @Override Map<String, Integer> getRawFingerprint(IAtomContainer iAtomContainer); @Override int getSize(); byte[] getFingerprintAsBytes(); static BitSet decode(String enc); @Override ICountFingerprint getCountFingerprint(IAtomContainer container); static final int FP_SIZE; }
@Test public void testGetSize() throws Exception { IFingerprinter printer = new PubchemFingerprinter(DefaultChemObjectBuilder.getInstance()); Assert.assertEquals(881, printer.getSize()); }