amanida_read function

Import data

Import data

amanida_read imports the data and formats for compute_amanida

or amanida_vote functions

amanida_read(file, mode, coln, separator = NULL)

Arguments

  • file: path to file

  • mode: indicate if data will be quantitative or qualitative. Options are:

    • "quan" for quantitative meta-analysis using p-value and fold-change
    • "qual" for qualitative meta-analysis using trend label
  • coln: columns names to use. It has to be in order identification, p-values, fold-changes, sample size and reference.

  • separator: the separator used on file

Returns

tibble table with data imported

Details

Note that amanida_read skips rows with missing values or NA. Negatives values for fold-change are transformed to positive (1/value).

Formats compatible are csv, xlsx, xls or txt.

Examples

coln <- c("Compound Name", "P-value", "Fold-change", "N total", "References") input_file <- getsampleDB() datafile <- amanida_read(input_file, mode = "quan", coln, separator=";")