This column is needed for use with the taxa and metacodeR packages.

generate_taxons(flat_ontology, id_column = "id",
  parent_column = "parent_structure_id", value_column = "id",
  taxon_column = "taxons")

Arguments

flat_ontology

A flat ontology data.frame generated by flatten_mba_ontology

id_column

The id column used to link structures. default is "id".

parent_column

The column specifying the id column of the parent of each structure. default is "parent_structure_id".

value_column

The column of values to use to build the taxons column. Default is "id". Using "acronym" will yield a more readable taxonomy.

taxon_column

The name of the column to use for storing the resulting taxons. Default is "taxons".

Value

a data.frame with an additional column of semicolon-separated taxons based on the value_column.