Skip to content

Commit

Permalink
Slice gene kwarg to filtered genes if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
asistradition committed Jun 16, 2024
1 parent becbe13 commit 9079289
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inferelator_velocity/programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ def program_select(
if n_comps is None:

if mcv_loss_arr is None:
if 'subset_genes_for_depth' in standardization_kwargs.keys():
standardization_kwargs['subset_genes_for_depth'] = (
standardization_kwargs['subset_genes_for_depth'][
d.var_names.isin(data.var_names)
]
)

mcv_loss_arr = mcv_pcs(
d.layers['counts'],
n=1,
Expand Down

0 comments on commit 9079289

Please sign in to comment.