Create a new phenotype in the current project.
create_phenotype(
name,
result_type,
conn,
description = NULL,
url = NULL,
category = NULL,
query = NULL,
tags = NULL,
data = NULL
)
Unique (lowercase) phenotype name in the project
Type of phenotype (supported types: "SET", "QT" and "CATEGORY")
gor connection structure, create it using platform_connect
Optional Phenotype description
Reference URL for the phenotype (to dataset or other reference)
Enter the category for the phenotype (must be defined in the project - see get_categories) (optional)
NOR query that defines this phenotype (optional)
comma separated string of tags eg. "height,weight" or character vector "c("height", "weight") (optional)
data.frame or list of phenotype PN values to be applied to phenotype_upload_data
(optional)
a list with the phenotype object
if (FALSE) {
api_key <- Sys.getenv("GOR_API_KEY")
project <- Sys.getenv("GOR_PROJECT")
conn <- platform_connect(api_key, project)
name <- "height"
result_type <- "QT"
description <- "Height of individuals"
phenotype <- create_phenotype(name, result_type, conn, description)
}