-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rscript runtime Error occurred #765
Comments
Hi @HeejunJang , How did you install CNVkit ? Recommended way is to install it inside its own Conda environment Hope this helps ! |
Hello, |
Hi @HeejunJang , That can be a PATH issue, here is what you can try :
If
Hope this will help ! |
Hello, $ Rscript --help --options accepted are 'file' may contain spaces but not shell metacharacters It seems Rscript is in my PATH. |
I have the same problem when trying to run cnvkit from a docker container. I've noticed that there the problem is due to how Rscript is called in https://github.com/etal/cnvkit/blob/master/cnvlib/segmentation/__init__.py. If I leave out the
Is there a specific reason why the |
I did some additional root-cause analysis and at least for the docker container the main problem is that when calling Rscript with the The way I solved it is by changing in the Dockerfile how the DNAcopy package is installed from: @HeejunJang I would suggest you try to reinstall the DNAcopy package using the following command: @etal @tetedange13 I think this is a problem multiple people are facing, so it might be good to update the Readme/Dockerfile or alternatively update the code (is the |
@28rietd |
... and I've pushed the 0.9.9 image containing the fix to Docker Hub here: https://hub.docker.com/repository/docker/etal/cnvkit/general# |
Hello
I'll report another issues.
Segmenting /work/hjjang/CNV/result/20221005/F20220718_js-yoon_001_41.markdup/F20220718_js-yoon_001_41.markdup.cnr ...
Segmenting with method 'cbs', significance threshold 0.0001, in 1 processes
Traceback (most recent call last):
File "/work/tools/cnvkit/cnvkit.py", line 9, in
args.func(args)
File "/work/tools/cnvkit/cnvlib/commands.py", line 138, in _cmd_batch
pool.submit(batch.batch_run_sample,
File "/work/tools/cnvkit/cnvlib/parallel.py", line 19, in submit
return SerialFuture(func(*args))
File "/work/tools/cnvkit/cnvlib/batch.py", line 186, in batch_run_sample
segments = segmentation.do_segmentation(cnarr, segment_method,
File "/work/tools/cnvkit/cnvlib/segmentation/init.py", line 61, in do_segmentation
rets = list(pool.map(_ds, ((ca, method, threshold, variants,
File "/work/tools/cnvkit/cnvlib/segmentation/init.py", line 89, in _ds
return _do_segmentation(*args)
File "/work/tools/cnvkit/cnvlib/segmentation/init.py", line 161, in _do_segmentation
seg_out = core.call_quiet(rscript_path,
File "/work/tools/cnvkit/cnvlib/core.py", line 31, in call_quiet
raise RuntimeError("Subprocess command failed:\n$ %s\n\n%s"
RuntimeError: Subprocess command failed:
$ Rscript --no-restore --no-environ /tmp/tmpc_fswy72
I installed R package DNAcopy.
but still have same error.
The text was updated successfully, but these errors were encountered: