Check for s_${lane}_02_matrix.txt as well as s_${lane}_1_matrix.txt
[htsworkflow.git] / htsworkflow / pipelines / test / simulate_runfolder.py
index 50fca0a06251d922a13873ffa0eba5a3248111a4..5b79c2ea19ee4e12a250fed9026c1792722bda6c 100644 (file)
@@ -186,8 +186,9 @@ def make_matrix_dir_rta160(bustard_dir):
         os.mkdir(destdir)
         
     source = os.path.join(TESTDATA_DIR, '61MMFAAXX_4_1_matrix.txt')
-    for lane in LANE_LIST:
-        destination = os.path.join(destdir, 's_%d_1_matrix.txt' % ( lane, ))
+    lane_fragments = [ "_%d" % (l,) for l in LANE_LIST]
+    for fragment in lane_fragments:
+        destination = os.path.join(destdir, 's%s_1_matrix.txt' % ( fragment, ))
         shutil.copy(source, destination)
         
 def make_phasing_dir(bustard_dir):