Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CE-Symm fails with 'does not look like a valid mmCIF file!' errors #91

Closed
sbliven opened this issue Sep 2, 2017 · 3 comments
Closed
Milestone

Comments

@sbliven
Copy link
Collaborator

sbliven commented Sep 2, 2017

Using the latest version gives a lot of error messages like this:

2411 [pool-2-thread-1] ERROR org.biojava.nbio.structure.io.mmcif.SimpleMMcifParser - This does not look like a valid mmCIF file! The first line should start with 'data_', but is: 'null'

Followed by a NPE:

2497 [pool-2-thread-1] ERROR workers.CeSymmWorker - Could not complete job: 4hhb
java.lang.NullPointerException
	at org.biojava.nbio.structure.io.ChargeAdder.addCharges(ChargeAdder.java:55) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.io.mmcif.SimpleMMcifConsumer.addCharges(SimpleMMcifConsumer.java:995) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.io.mmcif.SimpleMMcifConsumer.documentEnd(SimpleMMcifConsumer.java:799) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.io.mmcif.SimpleMMcifParser.triggerDocumentEnd(SimpleMMcifParser.java:1180) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.io.mmcif.SimpleMMcifParser.parse(SimpleMMcifParser.java:395) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.io.MMCIFFileReader.getStructure(MMCIFFileReader.java:111) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.io.LocalPDBDirectory.getStructureById(LocalPDBDirectory.java:345) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.align.util.AtomCache.loadStructureFromCifByPdbId(AtomCache.java:1048) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.align.util.AtomCache.getStructureForPdbId(AtomCache.java:1029) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.SubstructureIdentifier.loadStructure(SubstructureIdentifier.java:316) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.align.client.StructureName.loadStructure(StructureName.java:549) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.align.util.AtomCache.getStructure(AtomCache.java:424) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at workers.CeSymmWorker.run(CeSymmWorker.java:58) [cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]

This is a known issue that was patched in BioJava (biojava/biojava#464 and biojava/biojava#683) following changes in the RCSB URLs.

@josemduarte
Copy link
Member

The solution is just upgrading to biojava 4.2.8 (and purging the chemcomp dir).

@sbliven
Copy link
Collaborator Author

sbliven commented Sep 5, 2017

Biojava is updated in ecfea93 (RC3). I'd still like to add a patch to auto-purge bad files.

@sbliven sbliven added this to the CeSymm-2.0 milestone Jun 4, 2018
@sbliven
Copy link
Collaborator Author

sbliven commented Jun 8, 2018

Fixed with biojava/biojava#774

@sbliven sbliven closed this as completed Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants