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 – Package velocyto not installed.

Returns:

the converted object.