*(I have an issue when running the drop pipeline. ...
# drop
j
(I have an issue when running the drop pipeline. Please let me know if this is not the right place to post my question.) Hi team, I'm running the nf-core/drop pipeline and encountered a persistent “Failed to publish file” error. My dataset contains three RNA groups: Blood, Fibroblasts, and Other. The pipeline starts processing the Other group, but after running for quite a while (around a day, during the FRASER aberrant splicing step), I manually stopped the pipeline and changed some configurations. When I restarted with
-resume
, I began hitting a persistent “Failed to publish file” error:
Copy code
ERROR ~ Failed to publish file: 
/home/jiashengw/my_project/NF_DROP/work/fb/70e66acca5fd6a1252359cb08b1d37/savedObjects/Other; 
to: /home/jiashengw/my_project/NF_DROP/output/processed_data/aberrant_splicing/datasets/savedObjects/Other [copy]
-- See log file for details
After this, the pipeline terminates with the standard
Please refer to troubleshooting docs
message. I tried deleting everything under
.../savedObjects/
and resuming the pipeline, but the same error appears again after some time. It seems that multiple FRASER post-processing steps (e.g. CALCULATESTATS, EXTRACTRESULTS, SUMMARY) may be trying to publish to the same
savedObjects/<group>
directory concurrently, leading to a
DirectoryNotEmptyException
. Has anyone encountered a similar issue or found a workaround? Should these FRASER publishing steps be serialized, or is there a recommended configuration to prevent concurrent writes to the same directory? Any insights would be greatly appreciated. Below is the relevant _config_:
Copy code
process {
  // ---------- FRASER ----------
  withName: /DROP:ABERRANTSPLICING:FRASER_.*/ {
    cpus     = 8
    time     = '48h'
    memory   = { [64.GB, 96.GB, 128.GB][ Math.min(task.attempt-1, 2) ] }
    maxForks = 6
  }

    withName: /DROP:ABERRANTSPLICING:FRASER_(EXTRACTRESULTS|CALCULATESTATS|ANNOTATEGENES|SUMMARY).*/ {
      cpus     = 2
      time     = '24h'
      memory   = { [24.GB, 32.GB, 48.GB][ Math.min(task.attempt-1, 2) ] }
      maxForks = 1
  }
}
Below is the main code:
Copy code
nextflow run nf-core/drop -r dev \
  -profile singularity \
  -c /home/jiashengw/my_project/NF_DROP/data_config/drop_slurm.config \
  --input  /home/jiashengw/my_project/NF_DROP/data_config/samplesheet.filtered.tsv \
  --outdir /home/jiashengw/my_project/NF_DROP/output \
  --genome hg38 \
  --ucsc_fasta /home/jiashengw/my_project/NF_DROP/data_config/hg38.fa \
  --gene_annotation /home/jiashengw/my_project/NF_DROP/data_config/gene_annotation.yaml \
  -resume
I also attached a screen shot if that helps. Please let me know if you need more details. Many thanks in advance!
n
Hi this is an interesting issue! The FRASER setup has been copy pasted from the snakemake pipeline now and will be reworked in the future for better integration with Nextflow. Issues like this are sadly going to keep happening sometime 😕 What exactly did you change in the configuration when you stopped the pipeline? And have you tried deleting the whole output folder?
j
Thanks for the quick reply! 😃 When I resumed the pipeline, the only parameters I changed were the
cpus
and
maxForks
values (to speed things up a bit). After that change, I started getting the “Failed to publish file” error. I tried to delete the entire
output/
folder and resumed the pipeline again according to your suggestion. So far, the error hasn’t appeared (it usually popped up within the first couple of minutes). The pipeline now seems to be running normally, though I’ll keep an eye on it to confirm that it’s truly progressing and not getting stuck again like yesterday. I’ll keep you updated — thank you for the suggestion! At least for now, the error is gone and everything looks stable. By the way, do you have any estimate for when the reworked FRASER integration might be released? Thanks again for your help and for maintaining this pipeline!
n
Awesome, let me know if the error were to happen again
I don't have an ETA for the rework right now and it probably won't be part of the first release but it will come eventually
j
Hi, just wanted to give you a quick update — the pipeline has now completed successfully! It seems that removing the entire
output/
folder
was indeed the solution to that issue. Hopefully, this workaround can also help others who might run into the same problem. Thanks again for your help and support!
🎉 2
n
Awesome! I'm glad to hear that, I think it might have had something to do with a corrupt file in the output folder 😛