【发布时间】:2016-06-24 03:25:19
【问题描述】:
我正在使用我的文件运行一个简单的 python 程序。这个程序在我的一台机器上运行良好,文件为fileA.bed。但是该程序在具有相同文件的另一台机器上不起作用。我安装了相同的python版本,2.7.6,相同的必需模块,scipy('0.15.1'),numpy('1.8.2'),iced('0.2.2-git')(两台机器上的版本相同)。错误消息与ValueError: column index exceeds matrix dimensions 有关(请参见下文)。请帮忙看看是什么原因造成的?
python Dense.py -b fileA.bed
Traceback (most recent call last):
File "Dense.py", line 34, in <module>
counts = io.load_counts(args.filename, lengths=lengths)
File "$PATH/Python-2.7.6/venv_iced_2.2/lib/python2.7/site-packages/iced/io/_io_else.py", line 30, in load_counts
counts = sparse.coo_matrix((X[:, 2], (X[:, 0], X[:, 1])), shape=shape)
File "$PATH/Python-2.7.6/venv_iced_2.2/lib/python2.7/site-packages/scipy/sparse/coo.py", line 206, in __init__
self._check()
File "$PATH/Python-2.7.6/venv_iced_2.2/lib/python2.7/site-packages/scipy/sparse/coo.py", line 262, in _check
raise ValueError('column index exceeds matrix dimensions')
ValueError: column index exceeds matrix dimensions
【问题讨论】:
标签: python-2.7 numpy scipy