gpt_annot_melt: Melt annotations from GPT

View source: R/gpt_annot_melt.R

gpt_annot_meltR Documentation

Melt annotations from GPT

Description

Merge the annotations from GPT with the weighted annotations and melt the resulting data.table such that each annotation metric is a separate row.

Usage

gpt_annot_melt(
  res_coded,
  id.vars = grep("justification|phenotype|hpo_name|hpo_id|pheno_count",
    names(res_coded$annot), value = TRUE)
)

Arguments

res_coded

Result from gpt_annot_codify.

id.vars

Columns to use as ID variables when merging.

Value

A melted data.table with the annotations.

Examples

res_coded <- gpt_annot_codify()
annot_melt <- gpt_annot_melt(res_coded)

neurogenomics/HPOExplorer documentation built on July 17, 2024, 3:12 p.m.