docking-org / OICR-ZINC

Exported files from ZINC for use in OICR ICGC DCC and Collaboratory
1 stars 3 forks source link

ATC values: atc_codes vs atc_classifications #5

Closed andricDu closed 8 years ago

andricDu commented 8 years ago

Hi!

We were going over the latest data from our import of the drug data and noticed we were missing ATC information for some drugs. Turns out we were not accounting for a structure that it sometimes present in the JSON.

We were expecting something like this:

"atc_level5_codes": ["L01AD07"], "atc_codes": [{"code": "L01AD", "description": "Nitrosoureas"}]

But instead got something like this:

"atc_classifications": [{"who_name": "abiraterone", "level4": "L02BX", "level5": "L02BX03", "level4_description": "Other hormone antagonists and related agents"}]

I've made the appropriate changes in our import process to handle this, but I was curious if there is going to be a consolidation in the future to a single structure or maybe there was a reason for having differing structures?

andricDu commented 8 years ago

It appears I may have been using the out of date drugs JSON.