Skip to contents

Look up one gene

Usage

mygene_gene(symbol, species = "human", ...)

Arguments

symbol

A gene symbol, Ensembl gene id, or Entrez id.

species

Passed through to MyGene.

...

Passed to biohttp::get_json(), for example throttle.

Value

A biohttp envelope whose data is a one-row tibble. See mygene_parse_hits() for the columns.

References

Xin et al. (2016). High-performance web services for querying gene and variant annotation. Genome Biology 17, 91. doi:10.1186/s13059-016-0953-9

Service documentation: https://mygene.info/

Examples

# \donttest{
res <- mygene_gene("TP53")
biohttp::body_or_null(res)
#> # A tibble: 1 × 8
#>   symbol name             summary entrez ensembl_gene uniprot hgnc  type_of_gene
#>   <chr>  <chr>            <chr>   <chr>  <chr>        <chr>   <chr> <chr>       
#> 1 TP53   tumor protein p… This g… 7157   ENSG0000014… P04637  11998 protein-cod…
# }