All Downloads are FREE. Search and download functionalities are using the official Maven repository.

signature.chemistry.SDFToSignatures Maven / Gradle / Ivy

The newest version!
package signature.chemistry;

public class SDFToSignatures {

    /**
     * @param args
     */
    public static void main(String[] args) {
        if (args.length < 1) {
            System.out.println("Usage : SDFToSignatures ");
        }
        String filename = args[0];
        int molCount = 0;
        for (Molecule molecule : MoleculeReader.readSDFFile(filename)) {
        	try {
        		molCount++;
        		System.out.println("Current molecule: " + molCount);
        		MoleculeSignature signature = new MoleculeSignature(molecule);
        		// get graph signature
        		System.out.println(signature.getGraphSignature());
        	}
        	catch (Exception e) {}
        }
        //System.out.println("Total number of molecules: " + molCount);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy