Update phenotype attributes
phenotype_update(
phenotype,
description = NULL,
tags = list(),
query = NULL,
category = NULL,
url = NULL
)
phenotype structure, create or get it using get_phenotype
phenotype description
comma separated string of tags eg. "height,weight", list or character vector "c("height", "weight")
NOR query that defines this phenotype
category for the phenotype (must be defined in the project - see get_categories)
reference URL for the phenotype (to dataset or other reference)
phenotype object
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)
}