View source: R/phenos_to_granges.R
phenos_to_granges | R Documentation |
Convert a HPO phenotype dataframe generated by make_phenos_dataframe to a GRangesList split by HPO ID. The resulting object will contain genes (and gene metadata) for all genes associated with each phenotypes.
phenos_to_granges(
phenos = NULL,
phenotype_to_genes = load_phenotype_to_genes(),
hpo = get_hpo(),
keep_chr = c(seq(22), "X", "Y"),
by = c("hpo_id", "disease_id"),
gene_col = "intersection",
split.field = "hpo_id",
as_datatable = FALSE,
allow.cartesian = FALSE,
verbose = TRUE
)
phenos |
A data.table containing HPO IDs and other metadata. |
phenotype_to_genes |
Output of load_phenotype_to_genes mapping phenotypes to gene annotations. |
hpo |
Human Phenotype Ontology object, loaded from get_ontology. |
keep_chr |
Chromosomes to keep. |
by |
A vector of shared column names in |
gene_col |
Name of the gene column. |
split.field |
A character string of a recognized column name in |
as_datatable |
Return as a data.table. |
allow.cartesian |
See |
verbose |
Print messages. |
A GRangesList.
phenos <- make_phenos_dataframe(ancestor = "Neurodevelopmental delay")
grl <- phenos_to_granges(phenos = phenos)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.