aboutsummaryrefslogtreecommitdiff
path: root/workflows/pull-data
diff options
context:
space:
mode:
authorPjotr Prins2021-01-08 01:34:04 -0600
committerPjotr Prins2021-01-08 01:34:04 -0600
commita9964da4a9efb1b068f80c0b632d0cc7bf923c58 (patch)
tree7b4b11913e8acfd4e00c5d3946bebc9576164a6d /workflows/pull-data
parent97a820f250063d223007d3d8fea5901a1bfac77d (diff)
downloadbh20-seq-resource-a9964da4a9efb1b068f80c0b632d0cc7bf923c58.tar.gz
bh20-seq-resource-a9964da4a9efb1b068f80c0b632d0cc7bf923c58.tar.lz
bh20-seq-resource-a9964da4a9efb1b068f80c0b632d0cc7bf923c58.zip
Get correct GenBank ID with version, see #122
Diffstat (limited to 'workflows/pull-data')
-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 cdd8d2b..1f7a428 100755
--- a/workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py
+++ b/workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py
@@ -44,7 +44,7 @@ for xmlfn in args.files:
valid = None
error = None
meta = {}
- id = gb.find("GBSeq_locus").text
+ id = gb.find("GBSeq_accession-version").text
basename = dir+"/"+id
print(f" parsing {id}")
try: