我正在运行一个生物信息学软件来创建一个自定义的gtf文件。我不确定生物信息学的细节在这里有什么关系。 我是一个生物学家,所以对计算机程序只有基本的了解。我已经能算出几个错误,但这一个对我来说毫无意义。在
回溯(最近一次呼叫):
File "/home/everestial007/anaconda2/bin/g2gtools", line 4, in <module>
__import__('pkg_resources').run_script('g2gtools==0.1.27', 'g2gtools')
File "/home/everestial007/anaconda2/lib/python2.7/site-packages/setuptools-20.3-py2.7.egg/pkg_resources/__init__.py", line 726, in run_script
File "/home/everestial007/anaconda2/lib/python2.7/site-packages/setuptools-20.3-py2.7.egg/pkg_resources/__init__.py", line 1484, in run_script
File "/home/everestial007/anaconda2/lib/python2.7/site-packages/g2gtools-0.1.27-py2.7.egg/EGG-INFO/scripts/g2gtools", line 117, in <module>
G2GToolsApp()
File "/home/everestial007/anaconda2/lib/python2.7/site-packages/g2gtools-0.1.27-py2.7.egg/EGG-INFO/scripts/g2gtools", line 75, in __init__
getattr(self, args.command)()
File "/home/everestial007/anaconda2/lib/python2.7/site-packages/g2gtools-0.1.27-py2.7.egg/EGG-INFO/scripts/g2gtools", line 78, in convert
g2gtools.g2g_commands.command_convert(sys.argv[2:], self.script_name + ' convert')
File "/home/everestial007/anaconda2/lib/python2.7/site-packages/g2gtools-0.1.27-py2.7.egg/g2gtools/g2g_commands.py", line 89, in command_convert
file_convert(args.chain, args.input, args.output, args.format, args.reverse)
File "/home/everestial007/anaconda2/lib/python2.7/site-packages/g2gtools-0.1.27-py2.7.egg/g2gtools/g2g.py", line 62, in file_convert
convert_gtf_file(chain_file=chain_file, input_file=input_file, output_file=output_file, reverse=reverse)
File "/home/everestial007/anaconda2/lib/python2.7/site-packages/g2gtools-0.1.27-py2.7.egg/g2gtools/gtf.py", line 156, in convert_gtf_file
for record in gtf_file:
File "/home/everestial007/anaconda2/lib/python2.7/site-packages/g2gtools-0.1.27-py2.7.egg/g2gtools/gtf.py", line 49, in next
self.current_record = parse_gtf_line(self.current_line)
File "/home/everestial007/anaconda2/lib/python2.7/site-packages/g2gtools-0.1.27-py2.7.egg/g2gtools/gtf.py", line 101, in parse_gtf_line
'attributes': parse_attributes(elem[8])
File "/home/everestial007/anaconda2/lib/python2.7/site-packages/g2gtools-0.1.27-py2.7.egg/g2gtools/gtf.py", line 67, in parse_attributes
if val[0] == '"':
IndexError: string index out of range***
我已经能够导航到相应的文件夹,找到合适的文件,打开它并找到特定的行和消息。在
1)我不清楚不同子目录的行是如何和为什么相关的。错误信息的意思是什么?在
2)我在结尾处得到“IndexError:string index out of range”?这是什么意思?我在想第if val[0] == '"':
行中的编码有问题
目前没有回答
相关问题 更多 >
编程相关推荐