View source: R/gpt_annot_codify.R
gpt_annot_codify | R Documentation |
Check GPT phenotype annotations using a several metrics.
gpt_annot_codify(
annot = gpt_annot_read(),
remove_duplicates = TRUE,
code_dict = c(never = 0, rarely = 1, often = 2, always = 3),
weights_dict = list(death = 6, intellectual_disability = 5, impaired_mobility = 4,
physical_malformations = 3, blindness = 4, sensory_impairments = 3, immunodeficiency
= 3, cancer = 3, reduced_fertility = 1, congenital_onset = 1),
reset_weights_dict = FALSE,
filters = list()
)
annot |
GPT-generated phenotype annotations. |
remove_duplicates |
Ensure only 1 row per phenotype. |
code_dict |
Numerical encodings of annotation values. |
weights_dict |
Weights to be applied to each annotation metric. |
reset_weights_dict |
Override |
filters |
A named list, where each element in the list is the name of a column in the data, and the vector within each element represents the values to include in the final data. |
Named list
res_coded <- gpt_annot_codify()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.