sainsc.io.read_gem_file
- sainsc.io.read_gem_file(filepath, *, sep='\t', n_threads=None, **kwargs)
Read a GEM file into a DataFrame.
GEM files are used by e.g. Stereo-Seq and Nova-ST.
The name of the count column should be ‘MIDCount’, however, MIDCounts and UMICount are supported.
- Parameters:
sep (str, optional) – Separator used in
polars.read_csv().n_threads (int, optional) – Number of threads used for reading file and processing. If None or 0 this will default to the number of available CPUs.
kwargs – Other keyword arguments will be passed to
polars.read_csv().
- Return type:
polars.DataFrame
- Raises:
ValueError – If count column has an unknown name.