Learn R Programming

SomaDataIO (version 6.4.0)

updateColMeta: Update Col.Meta Attribute to Match Annotations Object

Description

Utility to update a provided soma_adat object's column metadata to match the annotations object.

Usage

updateColMeta(adat, anno)

Value

An identical object to adat with Col.Meta updated to match those in anno.

Arguments

adat

A soma_adat data object to update attributes.

anno

A tibble containing analyte-specific annotations from read_annotations()

Author

Caleb Scheidel

Details

Attempts to update the following column metadata in the adat:

  • SomaId

  • Target

  • TargetFullName

  • UniProt

  • Type

  • Organism

  • EntrezGeneSymbol

  • EntrezGeneID

Examples

Run this code
if (FALSE) {
 anno_tbl     <- read_annotations("path/to/annotations.xlsx")
 adat         <- read_adat("path/to/adat_file.adat")
 updated_adat <- updateColMeta(adat, anno_tbl)
}

Run the code above in your browser using DataLab