Commit 836ba13a authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE

add a header

parent bca90f1e
......@@ -79,6 +79,7 @@ def fetch_attribute(args):
bio_samples_attributes = {k: v for k, v in
sorted(bio_samples_attributes.items(), key=lambda item: item[1]["cpt"], reverse=True)}
with open("bio_samples_attributes.csv", 'w') as bio_samples_attributes_txt:
for k, v in bio_samples_attributes.items():
v["values"] = list(v["values"])
bio_samples_attributes_txt.write("%s\t%i\t%s\n" % (k, v["cpt"], "\t".join(v["values"][:5])))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment