regvelo.tools.in_silico_block_regulation_simulation

regvelo.tools.in_silico_block_regulation_simulation(model, adata, regulator, target, n_samples=30, effects=0.0)[source]

Simulate in-silico blocking of a specific regulation between a regulator and a target gene.

Parameters:
  • model (str) – Path to the pretrained REGVELOVI model.

  • adata (AnnData) – Annotated data matrix containing gene expression and cell-specific information.

  • regulator (str) – Name of the regulator gene whose effect on the target gene will be blocked.

  • target (str) – Name of the target gene affected by the regulator.

  • n_samples (int) – Number of samples to generate during the simulation. Default is 100.

  • effects (float) – Effect value to set for the (target, regulator) edge. Use 0.0 for a complete block.

Return type:

AnnData

Returns:

: AnnData

Updated AnnData object with perturbation results added as new outputs.