predict_variant

predict_variant#

DnaClient.predict_variant(interval, variant, *, organism=Organism.HOMO_SAPIENS, requested_outputs, condition=None, cell_conditioning=None, cell_condition_name=None)[source]#

Generate predictions for a given DNA variant.

Parameters:
  • interval (Interval) – DNA interval to make prediction for.

  • variant (Variant) – DNA variant to make prediction for.

  • organism (Organism (default: <Organism.HOMO_SAPIENS: 9606>)) – Organism to use for the prediction.

  • requested_outputs (Iterable[OutputType]) – Iterable of OutputTypes indicating which subsets of predictions to return.

  • condition (ModelCondition | str | None (default: None)) – The condition or composite curie to generate the prediction for.

  • cell_conditioning (AnnData | None (default: None)) – Optional human single-cell raw UMI counts (AnnData, up to MAX_CONDITIONING_CELLS cells). Unlocks OutputType.SC_GENE_EXPRESSION_DENOISED (denoised single-cell gene expression; one channel per strand, in CPM).

  • cell_condition_name (str | None (default: None)) – Optional label for expression conditioning. When provided, the output track names are suffixed with this name. Must be provided when cell_conditioning is used.

Return type:

VariantOutput

Returns:

Variant output for the provided DNA interval and variant.