Skip to content

Commit 4b65e41

Browse files
authored
Merge pull request #30 from DRL/hotfix
hotfix
2 parents d7d55c4 + 8a157c6 commit 4b65e41

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

bloblib/BtPlot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def plotScatter(self, cov_lib, info_flag, out_f):
547547
group_y_array = array(self.stats[group]['covs'][cov_lib])
548548
elif self.plot == 'covplot':
549549
group_x_array = array(self.stats[group]['covs'][cov_lib])
550-
group_y_array = array([self.cov_y_dict.get(name, 0.02) for name in self.stats[group]['name']])
550+
group_y_array = array([self.cov_y_dict[name] if self.cov_y_dict[name] > 0.02 else 0.02 for name in self.stats[group]['name']])
551551
else:
552552
BtLog.error('34', self.plot)
553553
marker_size_array = []

bloblib/covplot.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ def main():
128128
plotObj.exclude_groups = exclude_groups
129129
plotObj.version = blobDb.version
130130
plotObj.format = format
131-
plotObj.max_cov = axis_max
131+
if max_cov <= axis_max:
132+
plotObj.max_cov = max_cov
133+
else:
134+
plotObj.max_cov = axis_max
132135
plotObj.no_title = no_title
133136
plotObj.multiplot = multiplot
134137
plotObj.hist_type = hist_type
@@ -159,7 +162,7 @@ def main():
159162
plotObj.ylabel = ylabel
160163
if (xlabel):
161164
plotObj.xlabel = xlabel
162-
out_f = "%s.%s.%s.p%s.%s.%s" % (blobDb.title, taxrule, rank, max_group_plot, hist_type, min_length)
165+
out_f = "%s.%s.%s.p%s.%s.%s.%s" % (blobDb.title, taxrule, rank, max_group_plot, hist_type, min_length, cov_f.replace(".","_"))
163166
if catcolour_dict:
164167
out_f = "%s.%s" % (out_f, "catcolour")
165168
if ignore_contig_length:

blobtools

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ except ImportError:
4343
sys.exit("[ERROR]\t: The module docopt is not installed. \n \tPlease run : pip install docopt")
4444

4545

46-
__version__ = "blobtools v0.9.19.2"
46+
__version__ = "blobtools v0.9.19.3"
4747
MAINDIR = join(dirname(__file__), '')
4848
DATADIR = join(MAINDIR, 'data/')
4949
LIBDIR = join(MAINDIR, 'bloblib/')
@@ -71,5 +71,5 @@ if __name__ == '__main__':
7171
elif args['<command>'] == 'taxify':
7272
exit(call(['python', LIBDIR + 'taxify.py'] + argv))
7373
else:
74-
exit(call(['./blobtools', '--help']))
74+
exit(call(['python', MAINDIR + 'blobtools.py', '--help']))
7575

blobtools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
sys.exit("[ERROR]\t: The module docopt is not installed. \n \tPlease run : pip install docopt")
4444

4545

46-
__version__ = "blobtools v0.9.19"
46+
__version__ = "blobtools v0.9.19.3"
4747
MAINDIR = join(dirname(__file__), '')
4848
DATADIR = join(MAINDIR, 'data/')
4949
LIBDIR = join(MAINDIR, 'bloblib/')
@@ -71,5 +71,5 @@
7171
elif args['<command>'] == 'taxify':
7272
exit(call(['python', LIBDIR + 'taxify.py'] + argv))
7373
else:
74-
exit(call(['./blobtools', '--help']))
74+
exit(call(['python', MAINDIR + 'blobtools.py', '--help']))
7575

0 commit comments

Comments
 (0)