We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6001bde + 06635cf commit d7fd94aCopy full SHA for d7fd94a
1 file changed
plantcv/utils/converters.py
@@ -73,7 +73,7 @@ def json2csv(json_file, csv_file):
73
row = [sample, var, obs[var]["value"][i], obs[var]["label"][i]]
74
csv.write(",".join(map(str, meta_row + row)) + "\n")
75
else:
76
- csv.write(",".join(map(str, meta_row + [var, "NA", "NA"])) + "\n")
+ csv.write(",".join(map(str, meta_row + [sample, var, "NA", "NA"])) + "\n")
77
csv.close()
78
79
# If the file does not exist raise an error
0 commit comments