From 1ffe1e56f52e66676a08fe74d90cd16c164d757f Mon Sep 17 00:00:00 2001
From: Peter Steinbach <steinbach@scionics.de>
Date: Thu, 4 Jun 2015 14:00:07 +0200
Subject: [PATCH] fixed wrong indexing in define_xml_tif

---
 spim_registration/timelapse/Snakefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spim_registration/timelapse/Snakefile b/spim_registration/timelapse/Snakefile
index 1cb115d..628a367 100644
--- a/spim_registration/timelapse/Snakefile
+++ b/spim_registration/timelapse/Snakefile
@@ -85,7 +85,7 @@ rule define_xml_tif:
 	   config["define_xml_tif"],
 	   jdir=JOBDIR,
 	   path_bsh=config["common"]["bsh_directory"] + config["define_xml_tif"]["bsh_file"],
-           timepoints="1-"+str(config["common"]["ntimepoints"])
+           timepoints="0-"+str(int(config["common"]["ntimepoints"])-1)
         )
 	
 	cmd_string +=" > {log} 2>&1"
-- 
GitLab