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

Formula element errors for local CSV files ... #46

Open
schymane opened this issue Jul 23, 2020 · 0 comments
Open

Formula element errors for local CSV files ... #46

schymane opened this issue Jul 23, 2020 · 0 comments

Comments

@schymane
Copy link
Contributor

An anecdote for debugging the formula element errors for local CSV files... @sneumann

This seems to throw element errors for less-well-known elements seemingly only when MonoisotopicMass is not correctly defined, i.e. with a column Monoisotopic_Mass, the import calculates a new column MonoisotopicMass happily (but we end up with a numeric scoring term Monoisotopic_Mass) and throws no formula errors. If the column header is adjusted to the correct MonoisotopicMass, the less-well-known elements throw these errors:

de.ipbhalle.metfraglib.exceptions.AtomTypeNotKnownFromInputListException: Os not found (C6H10O8Os1)
at de.ipbhalle.metfraglib.molecularformula.ByteMolecularFormula.parseMolecularFormula(ByteMolecularFormula.java:289)
at de.ipbhalle.metfraglib.molecularformula.ByteMolecularFormula.initialise(ByteMolecularFormula.java:126)
at de.ipbhalle.metfraglib.molecularformula.ByteMolecularFormula.(ByteMolecularFormula.java:47)
at de.ipbhalle.metfraglib.database.AbstractFileDatabase.checkFilter(AbstractFileDatabase.java:95)
at de.ipbhalle.metfraglib.database.LocalCSVDatabase.readCandidatesFromFile(LocalCSVDatabase.java:141)
at de.ipbhalle.metfraglib.database.AbstractFileDatabase.getCandidateIdentifiers(AbstractFileDatabase.java:146)
at de.ipbhalle.metfraglib.database.AbstractFileDatabase.getCandidateIdentifiers(AbstractFileDatabase.java:67)
at de.ipbhalle.metfraglib.process.CombinedMetFragProcess.retrieveCompounds(CombinedMetFragProcess.java:77)
at de.ipbhalle.metfrag.commandline.CommandLineTool.main(CommandLineTool.java:104)
java.lang.NullPointerException
at de.ipbhalle.metfraglib.molecularformula.ByteMolecularFormula.compareTo(ByteMolecularFormula.java:174)
at de.ipbhalle.metfraglib.database.AbstractFileDatabase.checkFilter(AbstractFileDatabase.java:99)
at de.ipbhalle.metfraglib.database.LocalCSVDatabase.readCandidatesFromFile(LocalCSVDatabase.java:141)
at de.ipbhalle.metfraglib.database.AbstractFileDatabase.getCandidateIdentifiers(AbstractFileDatabase.java:146)
at de.ipbhalle.metfraglib.database.AbstractFileDatabase.getCandidateIdentifiers(AbstractFileDatabase.java:67)
at de.ipbhalle.metfraglib.process.CombinedMetFragProcess.retrieveCompounds(CombinedMetFragProcess.java:77)
at de.ipbhalle.metfrag.commandline.CommandLineTool.main(CommandLineTool.java:104)
ERROR de.ipbhalle.metfrag.commandline.CommandLineTool - Error when retrieving compounds.

Full badlist so far for PCLite:

/Kr|Dy|Ir|La|Lu|Nd|Nb|Os|Pd|Pt|Pu|Pr|Re|Rh|Ru|Sm|Sc|Ag|Ta|Tc|Tb|Th|Tm|Ti|W|Ac|Am|Er|Eu|Gd|Hf|Ho|Xe|Yb|Rn|Sr|Be|Cm|Cf|Cs|Md|Pm|Fr|Pa|Np|Bk|Es|Fm|No|Lr|Rf|Db|Sg|Bh|Hs|Mt|Ds|Rg|Cn|Nh|Fl|Mc|Lv|Ts|Og/

schymane added a commit to schymane/MetFragRelaunched that referenced this issue Jul 23, 2020
Updated MetFrag files to remove bad elements causing formula errors. Tested with MetFragCL and should work. Issues posted: see ipb-halle#47 and ipb-halle#46
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

1 participant