aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2021-01-08 01:12:49 -0600
committerPjotr Prins2021-01-08 01:12:49 -0600
commit97a820f250063d223007d3d8fea5901a1bfac77d (patch)
treecb3cd41d267b238188c5b410c5926535b39535d1
parentc080c3cffedcc0cc99496b5e70fcfdf998978f16 (diff)
downloadbh20-seq-resource-97a820f250063d223007d3d8fea5901a1bfac77d.tar.gz
bh20-seq-resource-97a820f250063d223007d3d8fea5901a1bfac77d.tar.lz
bh20-seq-resource-97a820f250063d223007d3d8fea5901a1bfac77d.zip
FASTA file should not have leading space
-rwxr-xr-xworkflows/pull-data/genbank/transform-genbank-xml2yamlfa.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py b/workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py
index 1a8035d..cdd8d2b 100755
--- a/workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py
+++ b/workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py
@@ -60,7 +60,7 @@ for xmlfn in args.files:
seq = genbank.get_sequence(id,gb)
print(f" writing {fa}")
with open(fa,"w") as f2:
- f2.write(f"> {id}\n")
+ f2.write(f">{id}\n")
f2.write(seq)
# print(seq)
except genbank.GBError as e: