diff options
author | Pjotr Prins | 2021-01-08 01:34:04 -0600 |
---|---|---|
committer | Pjotr Prins | 2021-01-08 01:34:04 -0600 |
commit | a9964da4a9efb1b068f80c0b632d0cc7bf923c58 (patch) | |
tree | 7b4b11913e8acfd4e00c5d3946bebc9576164a6d | |
parent | 97a820f250063d223007d3d8fea5901a1bfac77d (diff) | |
download | bh20-seq-resource-a9964da4a9efb1b068f80c0b632d0cc7bf923c58.tar.gz bh20-seq-resource-a9964da4a9efb1b068f80c0b632d0cc7bf923c58.tar.lz bh20-seq-resource-a9964da4a9efb1b068f80c0b632d0cc7bf923c58.zip |
Get correct GenBank ID with version, see #122
-rwxr-xr-x | workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py | 2 |
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: |