我是Python的新手,并且非常想通过以下Python脚本运行一些文件。
https://github.com/ashutoshkpandey/Variants_call/blob/master/Filter_Pindel_del_vcf.py
我在Linux服务器上运行并安装了Python。我将脚本保存在包含两个必需文件(Del.vcf和Output_D)的目录中。这是我在命令行上输入的内容,但脚本由于某种原因无法找到文件。
$ python Filter_Pindel_del_vcf.py Del.vcf, Output_D, Outputfile
Traceback (most recent call last):
File "Filter_Pindel_del_vcf.py", line 45, in <module>
for row in fileinput.input([Filepath]):
File "/usr/lib64/python2.7/fileinput.py", line 253, in next
line = self.readline()
File "/usr/lib64/python2.7/fileinput.py", line 345, in readline
self._file = open(self._filename, self._mode)
IOError: [Errno 2] No such file or directory: 'Del.vcf,'
答案 0 :(得分:7)
只需删除逗号:
python Filter_Pindel_del_vcf.py Del.vcf Output_D Outputfile
答案 1 :(得分:2)
此脚本使用位置参数。只是丢失逗号,你应该没事:
$ python Filter_Pindel_del_vcf.py Del.vcf Output_D Outputfile