You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the pipeline on multiple plate mode, some PDF plate QC reports can have correct file names but sharing the same report contents.
Process doc loads R object *qc_for_doc.Rdata into workspace at the start. When multiple R instances were running under same work directory, they access to the same workspace at the same time. The variables in objects will be loaded more than once from multiple doc processes, hence the error.
One solution is to run each R instance in its nextflow temporary work directory, and assign process output to qc_dir/$plate publishDir.
Update 18 Sep 2024: rmarkdown::render by default writes intermediate files to the same folder as .Rmd file. These files are deleted once the final outputs are produced. Setting rmarkdown::render(..., intermediates_dir='{params.plateqc_dir}', knit_root_dir='{params.plateqc_dir}, clean=FALSE)') doesn't stop this behaviour.
Copy the .Rmd file to nextflow temporary work directory should resolve this issue.
The text was updated successfully, but these errors were encountered:
When running the pipeline on multiple plate mode, some PDF plate QC reports can have correct file names but sharing the same report contents.
Process
doc
loads R object*qc_for_doc.Rdata
into workspace at the start. When multiple R instances were running under same work directory, they access to the same workspace at the same time. The variables inobjects
will be loaded more than once from multipledoc
processes, hence the error.One solution is to run each R instance in its nextflow temporary work directory, and assign process output to
qc_dir/$plate
publishDir.Update 18 Sep 2024:
rmarkdown::render
by default writes intermediate files to the same folder as .Rmd file. These files are deleted once the final outputs are produced. Settingrmarkdown::render(..., intermediates_dir='{params.plateqc_dir}', knit_root_dir='{params.plateqc_dir}, clean=FALSE)')
doesn't stop this behaviour.Copy the .Rmd file to nextflow temporary work directory should resolve this issue.
The text was updated successfully, but these errors were encountered: