Seurat containers fail
The R container objects (Seurat & SummarizedExperiment) can't be created. This was on plate-seq but I don't see a reason that it is specific to that.
[Thu Nov 4 13:02:19 2021]
Job 772: Creating a Seurat object from plate-based data.
Activating conda environment: /mnt/workspace/hschult/fucci/scRNAseq.preprocessing/.snakemake/conda/94a40f309f73de64568ad28ff21a52cc
Activating conda environment: /mnt/workspace/hschult/fucci/scRNAseq.preprocessing/.snakemake/conda/98d3b95779cea426d6f8aa872bc2bcac
Error in initialize(value, ...) : object 'nan' not found
Calls: Snakemake -> new -> initialize -> initialize
Execution halted
[Thu Nov 4 13:02:34 2021]
Error in rule container_plate_seurat:
jobid: 772
output: output/data/seurat.rds
conda-env: /mnt/workspace/hschult/fucci/scRNAseq.preprocessing/.snakemake/conda/94a40f309f73de64568ad28ff21a52cc
Traceback (most recent call last):
File "/home/hschult/.conda/snake/lib/python3.6/site-packages/snakemake/executors/__init__.py", line 593, in _callback
raise ex
File "/home/hschult/.conda/snake/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/hschult/.conda/snake/lib/python3.6/site-packages/snakemake/executors/__init__.py", line 579, in cached_or_run
run_func(*args)
File "/home/hschult/.conda/snake/lib/python3.6/site-packages/snakemake/executors/__init__.py", line 2461, in run_wrapper
raise ex
File "/home/hschult/.conda/snake/lib/python3.6/site-packages/snakemake/executors/__init__.py", line 2442, in run_wrapper
runtime_sourcecache_path,
File "/mnt/workspace/hschult/fucci/scRNAseq.preprocessing/src/container_plate.snake", line 75, in __rule_container_plate_seurat
File "/home/hschult/.conda/snake/lib/python3.6/site-packages/snakemake/script.py", line 1371, in script
executor.evaluate()
File "/home/hschult/.conda/snake/lib/python3.6/site-packages/snakemake/script.py", line 381, in evaluate
self.execute_script(fd.name, edit=edit)
File "/home/hschult/.conda/snake/lib/python3.6/site-packages/snakemake/script.py", line 718, in execute_script
self._execute_cmd("Rscript --vanilla {fname:q}", fname=fname)
File "/home/hschult/.conda/snake/lib/python3.6/site-packages/snakemake/script.py", line 425, in _execute_cmd
**kwargs
File "/home/hschult/.conda/snake/lib/python3.6/site-packages/snakemake/shell.py", line 266, in __new__
raise sp.CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'source /opt/miniconda/bin/activate '/mnt/workspace/hschult/fucci/scRNAseq.preprocessing/.snakemake/conda/94a40f309f73de64568ad28ff21a52cc';
set -euo pipefail; Rscript --vanilla /mnt/workspace/hschult/fucci/scRNAseq.preprocessing/.snakemake/scripts/tmp4ky2_rf_.container_plate_seurat.R' returned non-zero exit status 1.
Error in initialize(value, ...) : object 'nan' not found
Calls: Snakemake -> new -> initialize -> initialize
Execution halted
The problem seems to occure during the init of the snakemake object. So no code of the script is executed. This means that the only point where a problem could be is in the parameters of the rules. I couldn't find any obvious problems in the parameters. A more in depth investigation is needed starting with a minimal example to reproduce this error.