snapatac2.read_mtx#

snapatac2.read_mtx(mtx_file, *, obs_names=None, var_names=None, file=None, backend=None, sorted=False)#

Read Matrix Market file.

Parameters:
  • mtx_file – File name of the input matrix market file.

  • obs_names – File that stores the observation names.

  • var_names – File that stores the variable names.

  • file – File name of the output “.h5ad” file.

  • backend – Backend to use for writing the output file.

  • sorted – If true, the input matrix is assumed to be sorted by rows. Sorted input matrix can be read faster.