moscot.base.problems.CompoundProblem

class moscot.base.problems.CompoundProblem(adata, **kwargs)[source]

Base class for all biological problems.

This class translates a biological problem to multiple OT problems.

Methods

add_problem(key, problem, *[, overwrite])

Add a subproblem.

load(path)

Load the model from a file.

prepare(policy, key[, subset, reference, ...])

Prepare the individual OT subproblems.

pull(*args, **kwargs)

Pull mass from target to source.

push(*args, **kwargs)

Push mass from source to target.

remove_problem(key)

Remove a subproblem.

save(path[, overwrite])

Save the problem to a file.

solve([stage])

Solve the individual OT subproblems.

Attributes

adata

Annotated data object.

problem_kind

Kind of the underlying problem.

problems

OT subproblems that define the biological problem.

solutions

Solutions to the problems.

stage

Problem stage.

Parameters: