do_query {metabolomicsWorkbenchR} | R Documentation

## Query the Metabolomics Workbench database

### Description

Sends a query to the metabolomics database and returns the result. Note that while objects derived from mw_base can be used the recommended approach is to use character inputs.

### Usage

    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'character,character,character,character'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'mw_moverz_context,list,character,mw_output_item'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'mw_moverz_context,list,character,character'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'mw_moverz_context,list,character,missing'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'mw_moverz_context,character,character,missing'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'character,character,character,missing'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'mw_exactmass_context,list,character,mw_output_item'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'mw_exactmass_context,list,character,character'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'mw_exactmass_context,list,character,missing'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'mw_exactmass_context,character,character,missing'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'character,character,character,missing'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'mw_context,mw_input_item,character,mw_output_item'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'mw_context,mw_input_item,character,mw_SE_item'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature
    ## 'mw_context,mw_input_item,character,mw_untarg_SE_item'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'mw_context,mw_input_item,character,mw_DE_item'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature
    ## 'mw_context,mw_input_item,character,mw_untarg_DE_item'
    do_query(context, input_item, input_value, output_item)

    ## S4 method for signature 'mw_context,mw_input_item,character,mw_MAE_item'
    do_query(context, input_item, input_value, output_item)

### Arguments

`context` | A valid context name (character)
`input_item` | A valid input_item name (character)
`input_value` | The value for the input item (character).
`output_item` | A valid output_item (character).

### Value

A data.frame, or other output appropriate to the output_item.

### Examples

    # Get a summary of all studies with "diabetes" in the title

    df = do_query(
      context = 'study',
      input_item = 'study_title',
      input_value = 'diabetes',
      output_item = 'summary'
    )

[Package metabolomicsWorkbenchR version 1.4.0 Index]