File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 88setup (
99 name = 'stringMLST' ,
1010 scripts = ['stringMLST.py' ],
11- version = '0.3.6' ,
11+ version = '0.3.6.1 ' ,
1212 description = 'Fast k-mer based tool for alignment and assembly-free multi locus sequence typing (MLST) directly from genome sequencing reads.' ,
1313 author = 'Jordan Lab' ,
1414 author_email = 'pypi@atc.io' ,
Original file line number Diff line number Diff line change 1515except ImportError :
1616 from urllib import urlopen , urlretrieve
1717import argparse
18- version = """ stringMLST v0.3.6 (updated : February 16 , 2017) """
18+ version = """ stringMLST v0.3.6.1 (updated : February 27 , 2017) """
1919"""
2020LICENSE TERMS FOR stringMLST
21211. INTENT/PURPOSE:
@@ -519,8 +519,11 @@ def loadWeightDict(weightFile):
519519 lines = weightTableFile .readlines ()
520520 for line in lines :
521521 array = line .rstrip ().rsplit ('\t ' )
522- loc = array [0 ].rsplit ('_' )[0 ]
523- allele = array [0 ].rsplit ('_' )[1 ]
522+ try :
523+ (loc , allele ) = array [0 ].replace ('-' ,'_' ).rsplit ('_' ,1 )
524+ except ValueError :
525+ print ("Error : Allele name in locus file should be seperated by '_' or '-'" )
526+ exit (0 )
524527 if loc not in weightDict :
525528 weightDict [loc ] = {}
526529 weightDict [loc ][allele ] = float (array [1 ])
You can’t perform that action at this time.
0 commit comments