- changed status to closed
lib5c dd-curve crashes when plotting only one rep
Issue #18
closed
seems related to the creation of the legend within seaborn but I have not spent any time tracing it
here's the command and resulting stack trace:
(clean-venv)[tgg@node107 comparison-manuscript]$ lib5c dd-curve -p bedfiles/4kb_bins.bed -R test/%r.png cqn/jointexpress/bin_16_4/pNPC2_binned.counts
loading counts
encountered exception, falling back to series operation
Traceback (most recent call last):
File "/home/tgg/clean-venv/bin/lib5c", line 9, in <module>
load_entry_point('lib5c==0.4.3-alpha.5', 'console_scripts', 'lib5c')()
File "/home/tgg/clean-venv/lib/python2.7/site-packages/lib5c/tools/lib5c_toolbox.py", line 100, in lib5c_toolbox
args.func(root_parser, args)
File "/home/tgg/clean-venv/lib/python2.7/site-packages/lib5c/tools/dd_curve.py", line 120, in dd_curve_tool
plot_kwargs={'ylim': ylim},
File "<decorator-gen-5>", line 2, in plot_distance_dependence
File "/home/tgg/clean-venv/lib/python2.7/site-packages/lib5c/util/parallelization.py", line 140, in parallel_func
results = map(wrapped_function, args_list)
File "/home/tgg/clean-venv/lib/python2.7/site-packages/lib5c/util/parallelization.py", line 98, in wrapped_function
return f(*args)
File "/home/tgg/clean-venv/lib/python2.7/site-packages/lib5c/plotters/distance_dependence.py", line 107, in plot_distance_dependence
data=joined, ci=None, palette=palette, hue_order=hue_order)
File "/home/tgg/clean-venv/lib/python2.7/site-packages/seaborn/categorical.py", line 3016, in pointplot
plotter.plot(ax)
File "/home/tgg/clean-venv/lib/python2.7/site-packages/seaborn/categorical.py", line 1696, in plot
self.annotate_axes(ax)
File "/home/tgg/clean-venv/lib/python2.7/site-packages/seaborn/categorical.py", line 395, in annotate_axes
leg.set_title(self.hue_title)
AttributeError: 'NoneType' object has no attribute 'set_title'
Comments (1)
-
reporter - Log in to comment
major overhaul of counts/primermap parsing and plotting API
plotting API is now formalized in a new decorator:
@lib5c.util.plotting.plotter
most plotters now follow this API, except for the old heatmap plotters and cluster heatmap plotters, as well as legacy plotters
primermap/counts parsing is now standardized in line with modules2016: only two functions are supported:
load_primermap()
andload_counts()
all tools have been updated to reflect this change
lib5c.tools.helpers.resolve_level()
has been broken up intolib5c.tools.helpers.resolve_level()
andlib5c.tools.helpers.resolve_primerfile()
- this helper is only needed in a small number of toolslib5c.tools.parents.level_parser
has been broken up intolib5c.tools.parents.level_parser
andlib5c.tools.parents.primerfile_parser
-level_parser
is used rarely whileprimerfile_parser
is ubiquitousthis closes
#23, closes#21, closes#18, closes#22, closes#11, and closes#9→ <<cset f4e899afa042>>