use*_*528 2 python linux command-line arguments
我是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,'
Run Code Online (Sandbox Code Playgroud)
只需删除逗号:
python Filter_Pindel_del_vcf.py Del.vcf Output_D Outputfile
Run Code Online (Sandbox Code Playgroud)