scmorph.io.read

Contents

scmorph.io.read#

scmorph.io.read(filename, **kwargs)[source]#

Read csv, h5ad or sql files.

This function wraps read_cellprofiler_csv(), read_sql() and read_h5ad() and uses to appropriate one depending on file ending. For details, see the respective functions.

Parameters:
filename str

Path to .csv or h5ad file

kwargs Any

Other parameters passed to the corresponding functions.

Return type:

AnnData

Returns:

The read in AnnData object, possibly after conversion.