Documentation Index
Fetch the complete documentation index at: https://mintlify.com/BDB-Genomics/AlphaGenomeR/llms.txt
Use this file to discover all available pages before exploring further.
alphagenome_query() is the primary entry point for the AlphaGenomeR package. It authenticates with the Google DeepMind AlphaGenome API, maps your genomic region and requested output modalities to the underlying Python client, executes the prediction, and returns the raw response as an R list. Pass that list to any of the extractor functions (e.g., alphagenome_get_rna_seq()) to pull out individual modality data.
Function signature
Parameters
API key for the AlphaGenome API. Obtain this from your Google DeepMind API account. The key is passed directly to the underlying Python
alphagenome client via ag_dna$create(api_key = access_token).Genomic region to query in
"chr:start-end" format. The chromosome, start position, and end position are parsed and used to construct an Interval object for the Python client.Example: "chr17:42560601-43609177"Organism identifier string. Must match a valid
Organism enum value in the alphagenome Python package. The default is human.Common values: "HOMO_SAPIENS", "MUS_MUSCULUS"Character vector of modality names to request from the API. Each value is mapped to an
OutputType enum in the Python client. Only modalities listed here will be present in the response; all others return NULL from their extractor functions.Valid values:| Value | Extractor function |
|---|---|
"RNA_SEQ" | alphagenome_get_rna_seq() |
"ATAC" | alphagenome_get_atac() |
"CAGE" | alphagenome_get_cage() |
"DNASE" | alphagenome_get_dnase() |
"CHIP_TF" | alphagenome_get_chip_tf() |
"CHIP_HISTONE" | alphagenome_get_chip_histone() |
"SPLICE_SITES" | alphagenome_get_splice_sites() |
"SPLICE_JUNCTIONS" | alphagenome_get_splice_junctions() |
"PROCAP" | alphagenome_get_procap() |
"CONTACT_MAPS" | alphagenome_get_contact_maps() |
Optional character vector of UBERON or CL ontology terms for tissue or cell type filtering (e.g.,
"UBERON:0002048" for lung). When NULL (the default), no tissue filtering is applied and the API returns predictions across all available tissue contexts.Return value
An R list produced by converting the Python prediction object via
reticulate::py_to_r(). The list contains named slots corresponding to each requested output modality. Use the modality-specific extractor functions to access structured $values and $metadata from each slot.Errors
The function will stop with an informative message under these conditions:- Missing
access_token—"API key is not provided." - Missing
genomic_region—"Genomic region is not provided." - Malformed
genomic_region—"genomic_region must be in 'chr:start-end' format." - Invalid
organism— lists available organism enum values from the Python package - Invalid entry in
requested_outputs— lists availableOutputTypeenum values alphagenomePython package not installed —"The 'alphagenome' Python package is not installed. Please run: pip install alphagenome"