MoTrPAC / MotrpacBicQC

R package for the MoTrPAC community
https://motrpac.github.io/MotrpacBicQC/index.html
MIT License
8 stars 4 forks source link

update `get_and_validate_mdd` #231

Closed dhkatz12 closed 8 months ago

dhkatz12 commented 9 months ago

There is a new json file that can be downloaded from the MW REST API that maps RefMet names to kegg id's. This seems like it was something that get_and_validate_mdd used to do, because when the PASS1B mappings were made, it seems like the resulting table had KEGG IDs (see here).

The new REST API resource that maps RefMet to KEGG ID can be found here. Note that this table does not necessarily map all RefMet names to KEGG IDs, and there are some that it leaves out. For example, PC 30:2 is mapped on the MW website: https://www.metabolomicsworkbench.org/databases/refmet/refmet_details.php?REFMET_NAME=PC+30%3A2 but not in the table.