nf-core / circdna

Pipeline for the identification of extrachromosomal circular DNA (ecDNA) from Circle-seq, WGS, and ATAC-seq data that were generated from cancer and other eukaryotic cells.
https://nf-co.re/circdna
MIT License
25 stars 14 forks source link

AmpliconArchitect related paths must be absolute not relative #50

Closed SPPearce closed 1 year ago

SPPearce commented 1 year ago

Description of the bug

The AmpliconArchitect related processes use this structure to set an environment variable: export AA_DATA_REPO=${params.aa_data_repo} without staging the files in that path into the work directory. If given an absolute path, this works, but if a relative path is given then the pipeline will fall over with a non-obvious failure message ending in :

ERROR:root:#TIME 1679058301.012 interval_list: Unable to open interval file "data_repo/GRCh38/". Traceback (most recent call last): File "~/.nextflow/assets/nf-core/circdna/bin/amplified_intervals.py", line 154, in <module> bamFileb2b = b2b.bam_to_breakpoint(bamFile, coverage_stats=cstats) File "~/.nextflow/assets/nf-core/circdna/bin/bam_to_breakpoint.py", line 129, in __init__ self.median_coverage(window_list=coverage_windows) File "~/.nextflow/assets/nf-core/circdna/bin/bam_to_breakpoint.py", line 540, in median_coverage coverage_stats_file = open(hg.DATA_REPO + "/coverage.stats", "a") IOError: [Errno 2] No such file or directory: 'data_repo/coverage.stats'

I see several ways to fix this:

Command used and terminal output

No response

Relevant files

No response

System information

No response

DSchreyer commented 1 year ago

Thanks for bringing this to my attention. I will note this down in the documentation and when running ampliconarchitect.

DSchreyer commented 1 year ago

Included in the newest release