phenotype_update: Update phenotype attributes

View source: R/phenotype.R

phenotype_updateR Documentation

Update phenotype attributes

Description

Update phenotype attributes

Usage

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

## Not run: 
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)

## End(Not run)

wuxi-nextcode/gorr documentation built on Jan. 1, 2023, 7:54 a.m.