Entering edit mode
23 months ago
firstorthopedicdoctor
▴
30
I am creating a snakemake workflow to download geodatasets. However, I get the following error
```
RuleException: CalledProcessError in file /home/sara/sara/Snakefile, line 8: Command 'set -euo pipefail; Rscript --vanilla /home/sara/sara/.snakemake/scripts/tmps2lv_wlb.meta.R' returned non-zero exit status 1.
File "/home/sara/sara/Snakefile", line 8, in __rule_download
File"/home/sara/mambaforge/envs/snakemake/lib/python3.11/concurrent/futures/thread.py", line 58, in run Shutting down, this might take some time. Exiting because a job execution failed. Look above for error message
```
Here is my snakemake file
configfile: "config.yml"
rule download:
output:
dir= directory("/home/sara/sara/downloads/")
params:
sample=config["Samples"]
script:
"scripts/meta.R"
Here is my config.yml
env:
- bioconductor-oligo
- bioconducor-GEOquery
channels:
- conda-forge
- bioconda
Samples:
- "GSE6955"
- "GSE67311"
Here is the Rscript
library(GEOquery)
getGEOSuppFiles(snakemakege@params[sample],baseDir = snakemake@output[dir])
Syntax error:
getGEOSuppFiles(snakemake@params[['sample']], baseDir = snakemake@output[['dir']])
Thank you, after I fixed it, I had new error message:
R code is for downloading datasets from GEOdatabase, I edited snakmake file but still same error
R code