Skip to content

Commit 1b160cf

Browse files
authored
update prepare_data.py
1 parent 06b26d2 commit 1b160cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dissect/prepare_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ def dataset(config):
132132

133133
else:
134134
X_sim = simulate(X_sc, config["deconv_params"]["simulation_params"])
135-
if "parse" in str(type(X_sim.X)):
136-
X_sim.X = np.array(X_sim.X.todense())
137135
# Normalization
138136
if config["deconv_params"]["normalize_simulated"] == "cpm":
139137
sc.pp.normalize_total(X_sim, target_sum=1e6)
138+
if "parse" in str(type(X_sim.X)):
139+
X_sim.X = np.array(X_sim.X.todense())
140140
elif not config["deconv_params"]["normalize_simulated"]:
141141
pass
142142
else:

0 commit comments

Comments
 (0)