Commit d3c021fa authored by Sander Bollen's avatar Sander Bollen
Browse files

make sure r1 and r2 are always in the same order

parent 8bb26318
......@@ -61,13 +61,17 @@ except OSError:
def get_r1(wildcards):
s = SAMPLE_CONFIG['samples'].get(wildcards.sample)
r1 = [x['R1'] for _, x in s['libraries'].items()]
r1 = []
for l in sorted(s['libraries'].keys()):
r1.append(s['libraries'][l]['R1'])
return r1
def get_r2(wildcards):
s = SAMPLE_CONFIG['samples'].get(wildcards.sample)
r2 = [x['R2'] for _, x in s['libraries'].items()]
r2 = []
for l in sorted(s['libraries'].keys()):
r2.append(s['libraries'][l]['R1'])
return r2
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment