cpa.ComPertAPI.get_cycle_uncertainty#
- ComPertAPI.get_cycle_uncertainty(genes_from, df_from, df_to, ncells_max=100, direction='forward')[source]#
Uncertainty for a single condition.
- Parameters:
- genes_from torch.Tensor
Genes for comparison.
- df_from pd.DataFrame
Full description of the condition.
- df_to pd.DataFrame
Full description of the control condition.
- ncells_max int, optional (defaul: 100)
Max number of cells to use.
- Returns:
: tuple
with uncertainty estimations: (MSE, 1-R2).