vispr is broken
Issue #60
new
I am following the nature protocols article of “Integrative analysis of pooled CRISPR genetic screens using MAGeCKFlute“. When I run the command on
step 7: Processing of CRISPR screen data with MAGeCK or MAGeCK-VISPR,
(B) Process CRISPR screen data with MAGeCK-VISPR,
(vii) (Optional) Visualize the results with VISPR
$vispr server results/*.vispr.yaml
I got the following error information:
I use Ubuntu 18.04, and Python 3.6 in miniconda3.
Loading data.
/home/belter/miniconda3/envs/bio-info/lib/python3.6/site-packages/vispr/results/__init__.py:124: FutureWarning: read_table is deprecated, use read_csv instead, passing sep='\t'.
results = pd.read_table(path, na_filter=False, low_memory=False)
/home/belter/miniconda3/envs/bio-info/lib/python3.6/site-packages/vispr/results/target.py:32: RuntimeWarning: divide by zero encountered in log10
self.df["log10-p-value"] = -np.log10(self.df["p-value"])
Traceback (most recent call last):
File "/home/belter/miniconda3/envs/bio-info/bin/vispr", line 6, in <module>
sys.exit(vispr.cli.main())
File "/home/belter/miniconda3/envs/bio-info/lib/python3.6/site-packages/vispr/cli.py", line 207, in main
init_server(*args.config, host=args.host, port=args.port)
File "/home/belter/miniconda3/envs/bio-info/lib/python3.6/site-packages/vispr/cli.py", line 42, in init_server
app.screens.add(config, parentdir=os.path.dirname(path))
File "/home/belter/miniconda3/envs/bio-info/lib/python3.6/site-packages/vispr/results/__init__.py", line 29, in add
self.screens[screen] = Screen(config, parentdir=parentdir)
File "/home/belter/miniconda3/envs/bio-info/lib/python3.6/site-packages/vispr/results/__init__.py", line 76, in __init__
get_path(config["targets"]["results"]))
File "/home/belter/miniconda3/envs/bio-info/lib/python3.6/site-packages/vispr/results/__init__.py", line 147, in parse_target_results
for condition in conditions
File "/home/belter/miniconda3/envs/bio-info/lib/python3.6/site-packages/vispr/results/__init__.py", line 147, in <dictcomp>
for condition in conditions
File "/home/belter/miniconda3/envs/bio-info/lib/python3.6/site-packages/vispr/results/__init__.py", line 145, in <dictcomp>
for selection in selections
File "/home/belter/miniconda3/envs/bio-info/lib/python3.6/site-packages/vispr/results/__init__.py", line 139, in get_results
return target.Results(res.copy(), table_filter=table_filter)
File "/home/belter/miniconda3/envs/bio-info/lib/python3.6/site-packages/vispr/results/target.py", line 46, in __init__
pval_cdf.index = np.maximum(0, pval_cdf.index)
File "pandas/_libs/interval.pyx", line 301, in pandas._libs.interval.Interval.__richcmp__
TypeError: unorderable types: Interval() <= int()