Skip to content

Commit

Permalink
fix scpoli load_query_data
Browse files Browse the repository at this point in the history
  • Loading branch information
Koncopd committed Oct 12, 2023
1 parent 44fda6a commit 3dbbb76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scarches/models/scpoli/scpoli_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ def load_query_data(
attr_dict, model_state_dict, var_names = cls._load_params(reference_model)
adata = _validate_var_names(adata, var_names)
else:
attr_dict = reference_model._get_public_attributes()
attr_dict = deepcopy(reference_model._get_public_attributes())
model_state_dict = reference_model.model.state_dict()
init_params = cls._get_init_params_from_dict(attr_dict)

Expand All @@ -767,7 +767,7 @@ def load_query_data(
if len(condition_keys) > 1:
adata.obs['conditions_combined'] = adata.obs[condition_keys].apply(lambda x: '_'.join(x), axis=1)
else:
adata.obs['conditions_combined'] = adata.obs[condition_keys].apply(lambda x: '_'.join(x))
adata.obs['conditions_combined'] = adata.obs[condition_keys]
new_conditions_combined = adata.obs['conditions_combined'].unique().tolist()
for item in new_conditions_combined:
if item not in conditions_combined:
Expand Down

0 comments on commit 3dbbb76

Please sign in to comment.