AlphaGenome 2#
Client, endpoints, outputs, conditions and scorers for AlphaGenome 2.
DNA client#
|
Creates a model client for a given API key. |
Enumeration of available model checkpoints. |
|
Enumeration of all the available organisms. |
|
Validate that the input sequence length is supported by the model. |
|
|
Client for interacting with a DNA model server. |
Sequence lengths#
Supported input sequence lengths, for use with sequence_length arguments and
validate_sequence_length(). Input
gradient endpoints support only SEQUENCE_LENGTH_100KB and
SEQUENCE_LENGTH_1MB.
- alphagenome.models.v2.dna_client.SEQUENCE_LENGTH_16KB = 16384#
16,384 bp (2^14).
- alphagenome.models.v2.dna_client.SEQUENCE_LENGTH_100KB = 131072#
131,072 bp (2^17).
- alphagenome.models.v2.dna_client.SEQUENCE_LENGTH_500KB = 524288#
524,288 bp (2^19).
- alphagenome.models.v2.dna_client.SEQUENCE_LENGTH_1MB = 1048576#
1,048,576 bp (2^20).
Limits#
- alphagenome.models.v2.dna_client.MAX_CONDITIONING_CELLS = 256#
Maximum number of cells accepted per
cell_conditioningcall (256).
Endpoints#
The DnaClient exposes the following
endpoints:
Method |
Description |
|---|---|
Predict tracks for a raw DNA sequence ( |
|
Predict tracks for a reference genome interval ( |
|
Predict tracks for the REF and ALT alleles of a variant ( |
|
Score the effect of a variant ( |
|
Score an interval ( |
|
Score all single-base variants in an interval (in silico mutagenesis). |
|
Compute input gradients of a gene’s predicted expression ( |
|
Encode raw single-cell UMI counts (human) into per-cell embeddings with the cell encoder, without running the sequence model. |
|
List reference conditions with the imputation mode ( |
|
Get the metadata for tracks observed during training. |
DNA output#
Enumeration of all the available types of outputs. |
|
|
Model outputs for a single prediction. |
|
Metadata detailing the content of model output. |
Model outputs for a variant prediction. |
|
Metadata for a single target gene. |
|
Model outputs for an input sequence gradient prediction. |
Conditions#
Reference conditions (condition=) are built with model_condition; expression
conditioning inputs (cell_conditioning=) are prepared with
gene_counts_condition.
Metadata describing the type of a model condition. |
|
Get a ModelCondition from a list of ontology curies. |
|
Converts AnnData rows to a CellConditioningInput proto. |
|
Subsamples an AnnData object into a mapping of condition label to AnnData. |
Variant scorers#
Enum indicating the type of variant scorer aggregation. |
|
Enum indicating the type of variant scoring. |
|
Variant scorer for center mask scorers. |
|
Variant scorer for contact map scorers. |
|
Variant scorer for gene-mask log fold change scoring. |
|
Variant scorer for gene-mask active allele scoring. |
|
Variant scorer for gene-mask scoring for splicing. |
|
Variant scorer for CpG methylation. |
|
Variant scorer for polyadenylation QTLs (paQTLs). |
|
Variant scorer for splice junction scoring. |
|
Returns the recommended variant scorers for a given organism. |
|
Formats an |
|
Formats scores into a tidy (long) pandas DataFrame. |
- alphagenome.models.v2.variant_scorers.RECOMMENDED_VARIANT_SCORERS#
Immutable mapping from a short name (e.g.
'RNA_SEQ','ATAC','SC_GENE_EXPRESSION_DENOISED','SC_GENE_EXPRESSION') to a variant scorer configured with our recommended settings for that output type. Each output type has a log-fold-change style scorer and, where applicable, an_ACTIVEvariant that scores absolute activity. Useget_recommended_scorers()to get the subset supported for a given organism and request type.
Interval scorers#
Enum indicating the type of interval scorer aggregation. |
|
Enum indicating the type of interval scoring. |
|
Interval scorer for gene-mask scoring. |
- alphagenome.models.v2.interval_scorers.IntervalScorerTypes#
Union type alias of supported AlphaGenome 2 interval scorer configurations.