We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06b26d2 commit 1b160cfCopy full SHA for 1b160cf
1 file changed
dissect/prepare_data.py
@@ -132,11 +132,11 @@ def dataset(config):
132
133
else:
134
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())
137
# Normalization
138
if config["deconv_params"]["normalize_simulated"] == "cpm":
139
sc.pp.normalize_total(X_sim, target_sum=1e6)
+ if "parse" in str(type(X_sim.X)):
+ X_sim.X = np.array(X_sim.X.todense())
140
elif not config["deconv_params"]["normalize_simulated"]:
141
pass
142
0 commit comments