Skip to content

Commit 45c0a3c

Browse files
committed
Update get_links() for new db XML schema
1 parent 84e7433 commit 45c0a3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stringMLST.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
except ImportError:
1616
from urllib import urlopen, urlretrieve
1717
import argparse
18-
version = """ stringMLST v0.6.2 (updated : March, 5 2019) """
18+
version = """ stringMLST v0.6.3 (updated : September 02, 2020) """
1919
"""
2020
2121
stringMLST free for academic users and requires permission before any commercial
@@ -265,7 +265,7 @@ def get_links(xmlData, savePath, speciesName):
265265
for database in mlst:
266266
for child in database:
267267
if child.tag == "profiles":
268-
profileURL = child[1].text
268+
profileURL = child[0].text
269269
if child.tag == "loci":
270270
for locus in child:
271271
lociList[locus.text.rstrip()] = locus[0].text

0 commit comments

Comments
 (0)