User dbcf39f8c0
30-04-2008 00:55:37
When loading a file containing one SMILES per line into the fingerprint DB using Importer I get different strings in the 'cd_structure' field if I pass a FileInputStream instead of a File to Importer.setInput(). The difference in the cd_structure strings is that the FileInputStream (or any InputStream for that matter) version puts carriage returns at the end of each SMILES string - the File versions does not.
The same fingerprints are generated with either input type, I just want the correct values in the cd_structure field for comparisons elsewhere.
I am using JChem 5.0.3. Here is a code snippet that I use to do the work.
Can anyone help?
I would really not want to have to use the setInput(File) method. I have a list of SMILES in an InputStream from another source and I don't want to save them to a file.
The same fingerprints are generated with either input type, I just want the correct values in the cd_structure field for comparisons elsewhere.
I am using JChem 5.0.3. Here is a code snippet that I use to do the work.
Code: |
Importer importer = new Importer(); importer.setConnectionHandler(...); importer.setTableName("fptable"); importer.setStoreDuplicates(false); importer.setInfoStream(System.err); importer.setInput(new File("xxx")); or importer.setInput(new FileInputStream(new File("xxx"))); runImporter(importer); |
Can anyone help?
I would really not want to have to use the setInput(File) method. I have a list of SMILES in an InputStream from another source and I don't want to save them to a file.