sainsc.io.read_StereoSeq

sainsc.io.read_StereoSeq(filepath, *, resolution=None, gene_name=False, exon_count=False, sep='\t', n_threads=None, **kwargs)

Read a Stereo-seq GEM file.

Parameters:
  • filepath (PathLike or str) – Path to the Stereo-seq file.

  • resolution (float, optional) – Center-to-center distance of Stere-seq beads in nm, if None it will try to detect it from the chip definition in the file header if one exists.

  • gene_name (bool) – If True will use the ‘geneName’ column otherwise the ‘geneID’ column is used as gene identifier.

  • exon_count (bool) – If True will use the ‘ExonCount’ column otherwise the ‘MIDCount’ column is used as counts.

  • 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:

LazyKDE