score_interval

score_interval#

DnaClient.score_interval(interval, condition=None, interval_scorers=(), *, organism=Organism.HOMO_SAPIENS, cell_conditioning=None, cell_condition_name=None)[source]#

Generate interval scores for a single given interval.

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

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

  • interval_scorers (Sequence[GeneMaskScorer] (default: ())) – Sequence of interval scorers to use for scoring. If no interval scorers are provided, the recommended interval scorers for the organism will be used.

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

  • 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 and the biosample_name column is set in the var metadata. Must be provided when cell_conditioning is used.

Return type:

list[AnnData]

Returns:

List of AnnData interval scores.