Skip to content
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

CalledProcessError in installRPackages.R #528

Open
gaynora7 opened this issue Apr 8, 2024 · 5 comments
Open

CalledProcessError in installRPackages.R #528

gaynora7 opened this issue Apr 8, 2024 · 5 comments

Comments

@gaynora7
Copy link

gaynora7 commented Apr 8, 2024

Hi Gagneur Lab,

I'm having some issues recently when executing DROP (snakemake aberrantSplicing in this case). I keep getting the following error:

WARNING: 7 files missing in samples annotation. Ignoring... /vcu_gpfs2/home/gaynora/DROP/udx_1015/Output/processed_data/aberrant_expression/params/config/AberrantExpression_config.tsv Param Files do not match. Updating to current Sample Annotation

/vcu_gpfs2/home/gaynora/DROP/udx_1015/Output/processed_data/aberrant_splicing/params/config/AberrantSplicing_config.tsv Param Files do not match. Updating to current Sample Annotation

check for missing R packages CalledProcessError in file /vcu_gpfs2/home/gaynora/DROP/udx_1015/Snakefile, line 13: Command '['Rscript', PosixPath('/vcu_gpfs2/home/gaynora/mambaforge/envs/drop_env_133/lib/python3.8/site-packages/drop/installRPackages.R'), PosixPath('/vcu_gpfs2/home/gaynora/mambaforge/envs/drop_env_133/lib/python3.8/site-packages/drop/requirementsR.txt')]' returned non-zero exit status 1. File "/vcu_gpfs2/home/gaynora/DROP/udx_1015/Snakefile", line 13, in <module> File "/vcu_gpfs2/home/gaynora/mambaforge/envs/drop_env_133/lib/python3.8/site-packages/drop/setupDrop.py", line 35, in installRPackages File "/vcu_gpfs2/home/gaynora/mambaforge/envs/drop_env_133/lib/python3.8/subprocess.py", line 448, in check_returncode

Not sure how to fix this error, could someone please provide some suggestions?

Thanks!

Python version 3.8.17
Conda version 23.3.17
Drop version 1.3.3
R version 4.3.1

@vyepez88
Copy link
Collaborator

vyepez88 commented Apr 9, 2024

Hi, not sure, did the demo run through?
Also, it seems that 7 (either RNA-seq BAM or DNA VCF) files mentioned in your sample annotation do not exist.

@gaynora7
Copy link
Author

gaynora7 commented Apr 9, 2024

Demo ran fine! No issues there

Yes, I updated my sample annotation file to fix the "files missing in sample annotation" error. I still get the same error involving requirementsR.txt I gave in the original post.

I think it is related to this post: #510 (comment)

Someone proposed an ammendment to the installRPackages.R script. I tried changing the script with the proposed fix, but then I got this error:

check for missing R packages OSError in file /vcu_gpfs2/home/gaynora/DROP/udx_1015/Snakefile, line 13: [Errno 8] Exec format error: PosixPath('/vcu_gpfs2/home/gaynora/mambaforge/envs/drop_env_133/lib/python3.8/site-packages/drop/installRPackages.R') File "/vcu_gpfs2/home/gaynora/DROP/udx_1015/Snakefile", line 13, in File "/vcu_gpfs2/home/gaynora/mambaforge/envs/drop_env_133/lib/python3.8/site-packages/drop/setupDrop.py", line 40, in installRPackages File "/vcu_gpfs2/home/gaynora/mambaforge/envs/drop_env_133/lib/python3.8/subprocess.py", line 493, in run File "/vcu_gpfs2/home/gaynora/mambaforge/envs/drop_env_133/lib/python3.8/subprocess.py", line 858, in init File "/vcu_gpfs2/home/gaynora/mambaforge/envs/drop_env_133/lib/python3.8/subprocess.py", line 1720, in _execute_child

@AtaJadidAhari
Copy link
Collaborator

Hi, can you please share your config file?
it seems like it passes the requirements.txt installation part and gets an error in packages related to your config at line 40 of setupDrop.py:

39: pkg_assembly_name = config.genome.getBSGenomeName()
40: response = subprocess.run(["Rscript", script, pkg_assembly_name], stderr=subprocess.STDOUT)

where it tries to install BSgenome based on your genome version, which I would assume it's hg38 since the demo ran through for you. Can you please install this package before running the pipeline using BiocManager::install("BSgenome.Hsapiens.UCSC.hg38") in your environment and rerun the pipeline?

@gaynora7
Copy link
Author

gaynora7 commented Apr 23, 2024

Hi,
Attached is my config file!
I installed BSgenome.Hsapiens.UCSC.hg38 in the environment, but I am still getting the same error.

Also of note- I get this error in my output file when I execute the snakemake job:
Error: unexpected ',' in:
"
if (!pckg_name %in% installed$Package || (!is.na(version) && compareVersion(installed[Package == pckg_name, Version]),"
Execution halted

Perhaps something is wrong with the syntax in the installRPackages.R script?

config_file.txt

@vyepez88
Copy link
Collaborator

Hi @gaynora7 , can you please try with the latest version of DROP (1.4.0)?
We updated the installRpackages script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants