Saving dataset as N5 using Big Stitcher on cluster

Hello,

I am trying to use Big Stitcher to save a dataset using the N5 format on a computing cluster. The script I have works on my local machine, but gives the following error when trying to run on the cluster. I am also including the macro code I am using below. Thanks for your help.

Using spimdata version: 0.9-revision
Using multiview-reconstruction version: 0.8.4
true
true
angles selected: 0
channels selected: 0
illuminations selected: 0
tiles selected: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45
Timepoints selected: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at net.imagej.patcher.HeadlessGenericDialog.getNextNumber(HeadlessGenericDialog.java:172)
at net.preibisch.mvrecon.fiji.plugin.resave.N5Parameters.getParamtersIJ(N5Parameters.java:105)
at net.preibisch.mvrecon.fiji.plugin.resave.Resave_N5.run(Resave_N5.java:56)
at ij.IJ.runUserPlugIn(IJ.java:235)
at ij.IJ.runPlugIn(IJ.java:198)
at ij.Executer.runCommand(Executer.java:150)
at ij.Executer.run(Executer.java:68)
at ij.IJ.run(IJ.java:317)
at ij.IJ.run(IJ.java:328)
at ij.macro.Functions.doRun(Functions.java:686)
at ij.macro.Functions.doFunction(Functions.java:98)
at ij.macro.Interpreter.doStatement(Interpreter.java:278)
at ij.macro.Interpreter.doStatements(Interpreter.java:264)
at ij.macro.Interpreter.run(Interpreter.java:160)
at ij.macro.Interpreter.run(Interpreter.java:93)
at ij.macro.Interpreter.run(Interpreter.java:104)
at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:161)
at ij.plugin.Macro_Runner.runMacroFile(Macro_Runner.java:145)
at ij.IJ.runMacroFile(IJ.java:165)
at net.imagej.legacy.IJ1Helper$4.call(IJ1Helper.java:1165)
at net.imagej.legacy.IJ1Helper$4.call(IJ1Helper.java:1161)
at net.imagej.legacy.IJ1Helper.runMacroFriendly(IJ1Helper.java:1095)
at net.imagej.legacy.IJ1Helper.runMacroFile(IJ1Helper.java:1161)
at net.imagej.legacy.LegacyCommandline$Macro.handle(LegacyCommandline.java:185)
at org.scijava.console.DefaultConsoleService.processArgs(DefaultConsoleService.java:99)
at org.scijava.AbstractGateway.launch(AbstractGateway.java:103)
at net.imagej.Main.main(Main.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.imagej.launcher.ClassLauncher.launch(ClassLauncher.java:291)
at net.imagej.launcher.ClassLauncher.run(ClassLauncher.java:198)
at net.imagej.launcher.ClassLauncher.main(ClassLauncher.java:89)

My Macro

PROJECT_FILENAME = “stitching_info.xml”;
INPUT_DATA_PATH = “/grid/osten/data_norepl/elowsky/Vglut1-GFP-F2-2_test/”;
OUTPUT_XML_PATH = “/grid/osten/data_norepl/elowsky/Vglut1-GFP-F2-2_stitching_output_N5/”;
VOXEL_SIZE_X = 0.37;
VOXEL_SIZE_Y = 0.37;
VOXEL_SIZE_Z = 2.5;
GRID_TYPE = “[Left & Down]”;
TILES_X = 23;
TILES_Y = 2;
OVERLAP_X = 10;
OVERLAP_Y = 30;
SUBSAMPLING_FACTORS = “[{ {1,1,1}, {2,2,1}, {4,4,2}, {8,8,4}, {16,16,8}, {32,32,16} }]”;
N5_BLOCK_SIZES = “[{ {128,128,64}, {128,128,64}, {128,128,64}, {128,128,64}, {128,128,64}, {128,128,64} }]”;
COMPRESSION = “[Raw (no compression)]”;
NUM_THREADS = 24;
XML_PATH = OUTPUT_XML_PATH + PROJECT_FILENAME;
N5_OUT_PATH = OUTPUT_XML_PATH + “n5”;

run(“As N5 …”, “select=”+XML_PATH+" resave_angle=[All angles] resave_channel=[All channels] resave_illumination=[All illuminations] resave_tile=[All tiles] resave_timepoint=[All Timepoints] compression="+COMPRESSION+" subsampling_factors="+SUBSAMPLING_FACTORS+" n5_block_sizes="+N5_BLOCK_SIZES+" output_xml="+XML_PATH+" output_n5="+N5_OUT_PATH+" write_xml write_data");