 {
   runtype = "plangen.RunType.RUN_ALL";
 }
-string db_file = argv("db_file");
+string plan_json     = argv("plan_json");
+string dataframe_csv = argv("dataframe_csv");
+string db_file       = argv("db_file");
+// END WORKFLOW ARGUMENTS
 
 // For compatibility with obj():
 global const string FRAMEWORK = "keras";
 
-// file plan_json = input("/home/wozniak/plan.json");
-file plan_json =
-  input("/home/wozniak/proj/SV.develop/workflows/cp-leaveout/plangen_cell8-p2_drug8-p2.json");
-
+/** RUN STAGE: A recursive function that manages the stage dependencies */
 (void v)
 run_stage(int N, int S, string this, int stage, void block,
           string plan_id, string db_file, string runtype)

  v = propagate();
}

(void v) run_single(string node, int stage, void block, string plan_id)
{
  json_fragment = make_json_fragment(node, stage);
  if (stage == 0)
  {
    // db_setup() => // cf. junk.swift
    v = propagate();
  }
  else

import string;
import sys;

// BEGIN WORKFLOW ARGUMENTS
// Data split factor with default
N = string2int(argv("N", "2"));
// Maximum stage number with default
