User 34fa07fa99
05-01-2007 01:04:46
I am trying to import an SDF file using the standard procedures like:
The SDF file contains a single molecule but somehow, the importer creates a lot of empty molecules. I suspect something is wrong with the SDF file that I got from another piece of software but I am not sure what it is. At some later point my code also looks for duplicates and throws an exception in the search:
Any ideas ?
Thx
Code: |
Importer i = new Importer(); ConnectionHandler ch = getConnectionHandler(); ch.setPropertyTable(getTempPropertiesTableName()); i.setConnectionHandler(ch); i.setInput(getSdfFile()); i.setTableName(getTempTableName()); String fieldMapping = formatFieldMapping(); if (fieldMappingForJChem != null) { log.debug("Mapping : " + fieldMapping); i.setConnections(fieldMapping); } i.importMols(); |
The SDF file contains a single molecule but somehow, the importer creates a lot of empty molecules. I suspect something is wrong with the SDF file that I got from another piece of software but I am not sure what it is. At some later point my code also looks for duplicates and throws an exception in the search:
Quote: |
java.io.IOException: Unknown amino acid 9 at chemaxon.marvin.modules.PeptideReader.findAminoAcids(PeptideReader.java:278) at chemaxon.marvin.modules.PeptideReader.convert(PeptideReader.java:115) at chemaxon.marvin.modules.PeptideImport.readMol(PeptideImport.java:71) at chemaxon.formats.MolImporter.readMol(MolImporter.java:763) at chemaxon.formats.MolImporter.read(MolImporter.java:595) at chemaxon.formats.MolImporter.read(MolImporter.java:561) at chemaxon.util.MolHandler.importMol(MolHandler.java:683) at chemaxon.util.MolHandler.setMolecule(MolHandler.java:159) at chemaxon.jchem.db.JChemSearch.readQuery(JChemSearch.java:2960) at chemaxon.jchem.db.JChemSearch.search(JChemSearch.java:2216) at chemaxon.jchem.db.JChemSearch.setRunning(JChemSearch.java:2105) at chemaxon.jchem.db.JChemSearch.run(JChemSearch.java:2125) |
Thx