signature.chemistry.SDFToSignatures Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signatures Show documentation
Show all versions of signatures Show documentation
A graph signature library
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