score_variants#
- DnaClient.score_variants(intervals, variants, conditions=None, variant_scorers=(), *, organism=Organism.HOMO_SAPIENS, cell_conditionings=None, cell_condition_names=None, progress_bar=True, max_workers=5)[source]#
Generate variant scores for a sequence of variants.
- Parameters:
intervals (
Interval|Sequence[Interval]) – DNA interval(s) to make prediction for. If a single interval is provided, then the same interval will be used for all variants.variants (
Sequence[Variant]) – Sequence of DNA variants to make prediction for.conditions (
Sequence[ModelCondition|str] |None(default:None)) – Optional sequence of conditions or composite curies to generate the predictions for.variant_scorers (
Sequence[CenterMaskScorer|ContactMapScorer|GeneMaskLFCScorer|GeneMaskActiveScorer|GeneMaskSplicingScorer|MethylationScorer|PolyadenylationScorer|SpliceJunctionScorer] (default:())) – Sequence of variant scorers to use for scoring. If no variant scorers are provided, the recommended variant scorers for the organism will be used.organism (
Organism(default:<Organism.HOMO_SAPIENS: 9606>)) – Organism to use for the prediction.cell_conditionings (
Sequence[AnnData] |None(default:None)) – Optional sequence of expression conditioning inputs (AnnData).cell_condition_names (
Sequence[str] |None(default:None)) – Optional sequence of labels for expression conditioning. Must be provided whencell_conditioningsis used.progress_bar (
bool(default:True)) – If True, show a progress bar.max_workers (
int(default:5)) – Number of parallel workers to use.
- Return type:
- Returns:
List of
AnnDatalists corresponding to score_variant outputs for each variant.