Download a HMDB XML file and process it into a table
Arguments
- dataset
Character: name of an HMDB XML dataset, such as "metabolites", "proteins", "urine", "serum", "csf", "saliva", "feces", "sweat".
- fields
Character: fields to extract from the XML. This is a very minimal parser that is able to extract the text content of simple fields and multiple value fields which contain a list of leaves within one container tag under the record tag. A full list of fields available in HMDB is available by the
hmdb_protein_fieldsandhmdb_metabolite_fieldsfunctions. By default, all fields available in the dataset are extracted.