Update phenotype attributes

phenotype_update(
  phenotype,
  description = NULL,
  tags = list(),
  query = NULL,
  category = NULL,
  url = NULL
)

Arguments

phenotype

phenotype structure, create or get it using get_phenotype

description

phenotype description

tags

comma separated string of tags eg. "height,weight", list or character vector "c("height", "weight")

query

NOR query that defines this phenotype

category

category for the phenotype (must be defined in the project - see get_categories)

url

reference URL for the phenotype (to dataset or other reference)

Value

phenotype object

Examples

if (FALSE) {
api_key <- Sys.getenv("GOR_API_KEY")
project <- Sys.getenv("GOR_PROJECT")
conn <- platform_connect(api_key, project)
name <- "height"
phenotype <- get_phenotype(name, conn)
description <- "individual height"
phenotype <- update_phenotype(phenotype, description=decription)
}