dynamo.tl.converter

dynamo.tl.converter(data_in, from_type='adata', to_type='vlm', dir='.')[source]

Convert adata to loom object or vice versa.

Parameters:
  • data_in (Union[vcy.VelocytoLoom, anndata.AnnData]) – the object to be converted.

  • from_type (Literal['adata', 'vlm']) – the type of data_in. Defaults to “adata”.

  • to_type (Literal['adata', 'vlm']) – convert to which type. Defaults to “vlm”.

  • dir (str) – the path to save the loom file. Defaults to “.”.

Raises:

ImportError – velocyto not installed.

Returns:

the converted object.