From a9964da4a9efb1b068f80c0b632d0cc7bf923c58 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 8 Jan 2021 01:34:04 -0600 Subject: Get correct GenBank ID with version, see #122 --- workflows/pull-data/genbank/transform-genbank-xml2yamlfa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'workflows/pull-data/genbank') 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: -- cgit v1.2.3