Commit 72d420ad authored by Thonier Florian's avatar Thonier Florian
Browse files

utils; correction of conditions for normalized_reads count

link to #3943
parent 8940a141
......@@ -54,7 +54,8 @@ def concatenate_with_padding(d,
d[key] = d1[key]
### For field normalized_reads, we prefer set it at None if not available for a timepoint
# Create a specific loop for it
if key not in d2 and key != "normalized_reads":
if key not in d2:
if key != "normalized_reads":
d[key] += t2
elif key == "normalized_reads":
d[key] += [None]*len(d2["reads"])
......@@ -65,7 +66,8 @@ def concatenate_with_padding(d,
if type(d2[key]) is not list:
if key not in d and key != "normalized_reads":
if key not in d:
if key != "normalized_reads":
d[key] = t1 + d2[key]
elif key == "normalized_reads":
d[key] = [None]*len(d1["reads"]) + d2[key]
Markdown is supported
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