Vscodeでipynbファイルを以下のように作成しましたが、エラーとなってしまいました。
ipynb
1import subprocess 2 3cmd_htseq = r"htseq-count -f bam C:\test\test.bam C:\test\test.gtf > C:\test\count_data.txt" 4subprocess.run(cmd_htseq.split())
--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) in 2 3 cmd_htseq = r"htseq-count -f bam C:\test\test.bam C:\test\test.gtf > C:\test\count_data.txt" ----> 4 subprocess.run(cmd_htseq.split()) ~\anaconda3\lib\subprocess.py in run(input, capture_output, timeout, check, *popenargs, **kwargs) 486 kwargs['stderr'] = PIPE 487 --> 488 with Popen(*popenargs, **kwargs) as process: 489 try: 490 stdout, stderr = process.communicate(input, timeout=timeout) ~\anaconda3\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text) 798 c2pread, c2pwrite, 799 errread, errwrite, --> 800 restore_signals, start_new_session) 801 except: 802 # Cleanup if the child failed starting. ~\anaconda3\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session) 1205 env, 1206 os.fspath(cwd) if cwd is not None else None, -> 1207 startupinfo) 1208 finally: 1209 # Child is launched. Close the parent's copy of those pipe FileNotFoundError: [WinError 2] 指定されたファイルが見つかりません。
どうすれば、実行出来るでしょうか?
あなたの回答
tips
プレビュー