Skip to content

Commit abb44a0

Browse files
update
1 parent be9d641 commit abb44a0

1 file changed

Lines changed: 6 additions & 44 deletions

File tree

cli/mintflow_cli_recover_outputs.py

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -432,49 +432,6 @@ def _convert_TrueFalse_to_bool(dict_input):
432432
))
433433
print("\n\n")
434434

435-
assert False
436-
437-
# check if path_output is not emtpy, and raise warnings otherwise ===
438-
if len(os.listdir(args.path_output)) != 0:
439-
warnings.warn(
440-
"\n\nThe specified path_output {} is not empty. It's recommeneded to empty path_output so files from different runs are not mixed.\n\n".format(args.path_output)
441-
)
442-
443-
444-
445-
# dump the scatters (i.e. neighbourhood graphs) ======
446-
# Train
447-
path_scatters = os.path.join(
448-
args.path_output,
449-
'Toinspect_NeighbourhoodGraphs'
450-
)
451-
if not os.path.isdir(path_scatters):
452-
os.mkdir(path_scatters)
453-
454-
path_scatters = os.path.join(
455-
path_scatters,
456-
'Train'
457-
)
458-
if not os.path.isdir(path_scatters):
459-
os.mkdir(path_scatters)
460-
list_slice.show_scatters_4cli(path_output=path_scatters)
461-
462-
# Test
463-
path_scatters = os.path.join(
464-
args.path_output,
465-
'Toinspect_NeighbourhoodGraphs'
466-
)
467-
if not os.path.isdir(path_scatters):
468-
os.mkdir(path_scatters)
469-
470-
path_scatters = os.path.join(
471-
path_scatters,
472-
'Test'
473-
)
474-
if not os.path.isdir(path_scatters):
475-
os.mkdir(path_scatters)
476-
test_list_slice.show_scatters_4cli(path_output=path_scatters)
477-
478435

479436

480437
if args.flag_verbose:
@@ -489,7 +446,7 @@ def _convert_TrueFalse_to_bool(dict_input):
489446
pprint(list_slice.map_Batchname_to_inflowBatchID)
490447
print("\n\n")
491448

492-
449+
# Note: due to the implementation in `utils_multislice.py` the assigned cell type and batchIDs do not vary in different runs.
493450

494451
if args.flag_verbose:
495452
with torch.no_grad():
@@ -502,6 +459,7 @@ def _convert_TrueFalse_to_bool(dict_input):
502459
)
503460
)
504461

462+
505463
# TODO: assert that the 1st tissue is assigned batch ID '0' ===
506464

507465
for kv in config_model['dict_pname_to_scaleandunweighted'].split("&"):
@@ -671,6 +629,10 @@ def _convert_TrueFalse_to_bool(dict_input):
671629
pprint(kwargs_newadjmatpredloss)
672630
print("\n\n")
673631

632+
633+
assert False
634+
635+
674636
# compute/report the maximum number of subgraphs
675637
print("Computing some initial stats (max number of central nodes, etc) for each tissue.")
676638
list_maxsize_subgraph = []

0 commit comments

Comments
 (0)