sainsc.LazyKDE.from_dataframe
- classmethod sainsc.LazyKDE.from_dataframe(df, *, n_threads=None, **kwargs)
Construct a LazyKDE from a DataFrame.
The DataFrame must provide a ‘gene’, ‘x’, and ‘y’ column. If a ‘count’ column exists it will be used as counts else a count of 1 (single molecule) per row will be assumed.
- Parameters:
df (polars.DataFrame | DataFrame)
n_threads (int, optional) – Number of threads used for reading and processing file. If None this will default to the number of available CPUs.
kwargs – Other keyword arguments are passed to
sainsc.GridCounts.from_dataframe().