@@ -125,6 +125,8 @@ def location_and_density(
125125 groups : Union [str , List [str ], List [List [str ]]],
126126 groupnames : Optional [Union [str , List [str ]]] = None ,
127127 plot_density : Optional [bool ] = True ,
128+ resolution : Optional [bool ] = 10 ,
129+ bandwsith : Optional [float ] = 75 ,
128130 dot_size : Optional [Union [float , List [float ]]] = 7 ,
129131 na_dot_size : Optional [float ] = 1.5 ,
130132 title : Optional [str ] = None ,
@@ -158,6 +160,10 @@ def location_and_density(
158160 might be ['CD4 T cell', 'CD8 T cell'] that will label the CD4 and CD8 T cells)
159161 plot_density
160162 Plot the density plots alongside the embedding plot.
163+ resolution
164+ Resolution parameter to pass to :func:`monkeybread.calc.cell_density`
165+ bandwidth
166+ Bandwidth parameter to pass to :func:`monkeybread.calc.cell_density`
161167 dot_size
162168 The size of dots in the embedding for the cells of intests (specified in `groups`). To plot
163169 each group with a different dot size, a list of sizes can be provided.
@@ -314,8 +320,8 @@ def location_and_density(
314320 adata ,
315321 groupby = f'is_{ groupname } ' ,
316322 groups = 'True' ,
317- resolution = 15.0 ,
318- bandwidth = 75.
323+ resolution = resolution ,
324+ bandwidth = bandwidth
319325 )
320326 alpha = 1.0
321327 cell_density (
0 commit comments