Skip to content

Commit 8edc5d6

Browse files
committed
Fix bugs
1 parent 8e648f9 commit 8edc5d6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/umap.nf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ process umaps_of_rbh_matrix {
3434
import numpy as np
3535
from umap import UMAP
3636
37-
3837
figsave = figsaver(format="pdf", output_dir=".")
3938
4039
rbh_m = pd.read_csv("${matrix}", sep="\\t", index_col=0)
@@ -57,8 +56,8 @@ process umaps_of_rbh_matrix {
5756
columns=["UMAP 1", "UMAP 2"],
5857
)
5958
60-
assert rbh_m["target_is_human"].any(), "No human targets present"
61-
assert rbh_m["target_is_bacteria"].any(), "No bacterial targets present"
59+
assert rbh_m.index.get_level_values("target_is_human").values.any(), "No human targets present"
60+
assert rbh_m.index.get_level_values("target_is_bacteria").values.any(), "No bacterial targets present"
6261
6362
target_weights_human = (
6463
rbh_m

0 commit comments

Comments
 (0)