Module: PyCytoData.exceptions

exception PyCytoData.exceptions.AutoChannelError(channel: List[str])[source]

Bases: Exception

Auto Channel Failure.

This error is thrown when the auto_channels option has failed due to regex unable to match necessary channels.

Parameters:

channels (List[str]) – The necessary channels.

exception PyCytoData.exceptions.DimensionMismatchError(n: int, var: str)[source]

Bases: Exception

Error for mismatched dimensions.

This error is thrown when the given attribute does not match the length of the data in the class.

Parameters:
  • n (int) – The desired length of the attribute.

  • var (str) – The name of the attribute.

exception PyCytoData.exceptions.ExpressionMatrixDimensionError(shape: Tuple[int, ...])[source]

Bases: Exception

Error for Expression Matrix Dimension Error.

This error is thrown when the given expression matrix is not or cannot be cast into a two dimensional array.

Parameters:

shape (Tuple[int, ...]) – The actual shape of the expression matrix.