Skip to content

Commit 9a12ec7

Browse files
committed
set default to rna_count_based
1 parent ec1b033 commit 9a12ec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tangram/mapping_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def map_cells_to_space(
152152
target_count=None,
153153
random_state=None,
154154
verbose=True,
155-
density_prior=None,
155+
density_prior='rna_count_based',
156156
):
157157
"""
158158
Map single cell data (`adata_sc`) on spatial data (`adata_sp`).
@@ -176,7 +176,7 @@ def map_cells_to_space(
176176
target_count (int): Optional. The number of cells to be filtered. Default is None.
177177
random_state (int): Optional. pass an int to reproduce training. Default is None.
178178
verbose (bool): Optional. If print training details. Default is True.
179-
density_prior (ndarray or str): Spatial density of spots, when is a string, value can be 'rna_count_based' or 'uniform', when is a ndarray, shape = (number_spots,). This array should satisfy the constraints sum() == 1. If not provided, the density term is ignored.
179+
density_prior (str, ndarray or None): Spatial density of spots, when is a string, value can be 'rna_count_based' or 'uniform', when is a ndarray, shape = (number_spots,). This array should satisfy the constraints sum() == 1. If None, the density term is ignored. Default value is 'rna_count_based'.
180180
181181
Returns:
182182
a cell-by-spot AnnData containing the probability of mapping cell i on spot j.

0 commit comments

Comments
 (0)