updateAssayMetadata {Risa} | R Documentation

## Update metadata into the assay file

### Description

`updateAssayMetadata` Updates metadata into a particular assay file. See an example of use for a metabolite dataset at https://github.com/sneumann/mtbls2.

### Usage

    updateAssayMetadata(isa, assay.filename, col.name, values)

### Arguments

`isa` | An isatab object, as retrieved by the `readISAtab` function.
`assay.filename` | the filename of the assay file to be augmented/modified
`col.name` | the name of the column of the assay file to be modified
`values` | the values to be added to the column of the assay file: it could be a single value, and in this case the value is repeated across the column, or it could be a list of values (whose length must match the number of rows of the assay file)

### Value

The updated ISA-Tab object.

### Author(s)

Alejandra Gonzalez-Beltran / Maintainer: Alejandra Gonzalez-Beltran, ISA Team <isatools@googlegroups.com>

### See Also

`readISAtab`, https://github.com/sneumann/mtbls2

### Examples

     ### This example shows how to add values to the column "Derived Spectral Data File", assuming that the results are stored in the file "faahkoDSDF.txt"
     faahkoISA = readISAtab(find.package("faahKO"))
     assay.filename <- faahkoISA["assay.filenames"][[1]]
     updateAssayMetadata(faahkoISA, assay.filename,"Derived Spectral Data File","faahkoDSDF.txt" )

[Package Risa version 1.34.0 Index]