Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I just discovered something rather odd while using chemical curated data in Mathematica. I tried to extract EdgeRules for some molecules and some molecules gave me several copies of said EdgeRules as a list. Is this a bug? Have any of you found similar things happening with other curated data?

Example:

ChemicalData[#, "EdgeRules"] & /@ {"Glutamine", "Alanine", "Serine"}

This input gives me 1, 3 and 2 copies of the EdgeRules of the given molecules.

share|improve this question
5  
It is good that you have found the answer to your question, but you should remove it from the question and make it an answer. Answering one's own question is not only allowed, it is encouraged. –  m_goldberg Jun 28 at 12:53

1 Answer 1

up vote 5 down vote accepted

I found the problem. Mathematica interprets the input string as a list of all available molecules that contain the input string as a substring.

ChemicalData["Alanine"]
{"DAlanine", "DLAlanine", "LAlanine"}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.