centre-for-virus-research / weeSAM

Script for parsing SAM/BAM files for coverage statistics
GNU General Public License v3.0
14 stars 7 forks source link

maybe a seaboard issue #11

Open josephhughes opened 4 years ago

josephhughes commented 4 years ago

/home1/hugh01j/bin/weeSAM/weeSAM:54: UserWarning: This call to matplotlib.use() has no effect because the backend has already been chosen; matplotlib.use() must be called before pylab, matplotlib.pyplot, or matplotlib.backends is imported for the first time.

The backend was originally set to 'TkAgg' by the following code: File "/home1/hugh01j/bin/weeSAM/weeSAM", line 52, in import seaborn as sb File "/home1/hugh01j/.local/lib/python3.6/site-packages/seaborn/init.py", line 6, in from .rcmod import * File "/home1/hugh01j/.local/lib/python3.6/site-packages/seaborn/rcmod.py", line 5, in from . import palettes, _orig_rc_params File "/home1/hugh01j/.local/lib/python3.6/site-packages/seaborn/palettes.py", line 12, in from .utils import desaturate, set_hls_values, get_color_cycle File "/home1/hugh01j/.local/lib/python3.6/site-packages/seaborn/utils.py", line 11, in import matplotlib.pyplot as plt File "/usr/local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 71, in from matplotlib.backends import pylab_setup File "/usr/local/lib/python3.6/site-packages/matplotlib/backends/init.py", line 16, in line for line in traceback.format_stack()

matplotlib.use('agg')

mvvucak commented 4 years ago

I'll look into it when I have the time. Could be happening because I reintroduced the old plotting function. Did this happen when using the --pretty option or running as normal?

josephhughes commented 4 years ago

running as normal command.

rjorton commented 4 years ago

I think its maybe not to do with weeSAM and to do with paths. If I run it from vanilla command line it is fine, if I run it from within a "screen" terminal window I get the matplotlib/seaborn error