From 5d941e47e27a3cd2c47f8ee51f5523d180f8a5b2 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 8 Jan 2021 01:48:14 -0600 Subject: Set JSON indentation --- workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py b/workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py index 1f7a428..3b9813c 100755 --- a/workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py +++ b/workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py @@ -54,7 +54,7 @@ for xmlfn in args.files: jsonfn = basename + ".json" with open(jsonfn, 'w') as outfile: print(f" writing {jsonfn}") - json.dump(meta, outfile, indent=4) + json.dump(meta, outfile, indent=2) # --- write FASTA fa = basename+".fa" seq = genbank.get_sequence(id,gb) -- cgit v1.2.3