WinPin Ng
11/24/2025, 9:32 AMnextflow run nf-core/rnafusion -r 4.0.0 \
-profile singularity \
--references_only --tools fusionreport \
--cosmic_username "USERNAME" --cosmic_passwd "PASSWORD" \
--genomes_base $GENOMEBASE \
--outdir $GENOMEBASE
The run failed with the following error (just a snippet)
/opt/conda/lib/python3.13/site-packages/urllib3/connectionpool.py:1097: InsecureRequestWa
rning: Unverified HTTPS request is being made to host 'cosmic-downloads-production.cog.sang
er.ac.uk'. Adding certificate verification is strongly advised. See: https://urllib3.readth
edocs.io/en/latest/advanced-usage.html#tls-warnings
warnings.warn(
Extracted Cosmic_Fusion_v101_GRCh38.tsv.gz to ./Cosmic_Fusion_v101_GRCh38.tsv.gz
Decompressed ./Cosmic_Fusion_v101_GRCh38.tsv.gz to ./Cosmic_Fusion_v101_GRCh38.tsv
Downloading finished
[Errno 39] Directory not empty: 'tmp_dir'
Traceback (most recent call last):
File "/opt/conda/lib/python3.13/site-packages/fusion_report/app.py", line 71, in run
Download(params)
~~~~~~~~^^^^^^^^
File "/opt/conda/lib/python3.13/site-packages/fusion_report/download.py", line 22, in __init__
self.download_all(params)
~~~~~~~~~~~~~~~~~^^^^^^^^
File "/opt/conda/lib/python3.13/site-packages/fusion_report/download.py", line 69, in download_all
Net.clean()
~~~~~~~~~^^
File "/opt/conda/lib/python3.13/site-packages/fusion_report/common/net.py", line 250, in clean
shutil.rmtree("tmp_dir")
File "/opt/conda/lib/python3.13/shutil.py", line 763, in rmtree
_rmtree_safe_fd(stack, onexc)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.13/shutil.py", line 707, in _rmtree_safe_fd
onexc(func, path, err)
~~~~~^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.13/shutil.py", line 658, in _rmtree_safe_fd
os.rmdir(name, dir_fd=dirfd)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 39] Directory not empty: 'tmp_dir'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/conda/bin/fusion_report", line 12, in module
app.run()
~~~~~~~^^
File "/opt/conda/lib/python3.13/site-packages/fusion_report/app.py", line 78, in run
raise AppException(ex) from ex
fusion_report.common.exceptions.app.AppException: [Errno 39] Directory not empty: 'tmp_dir'
[Errno 39] Directory not empty: 'tmp_dir'
but I was able to retrieve the downloaded references in "work" folder where the pipeline failed. So I manually copied the 3 databases (cosmic.db, fusiongdb2.db, mitelman.db) to a separate fusion_report_db folder and also added a placeholder DB-timestamp.txt file for completion. The path is added as --fusionreport_ref "${FUSIONREPREF}"
Next, I ran the pipeline using the following command
nextflow run nf-core/rnafusion -r 4.0.0 \
-c "${NXFCONFIG}" \
-w ${WORK_DIR} \
-profile singularity \
--tools all \
--input "${INPUT}" \
--genomes_base "${GENOMES_BASE}" \
--fusionreport_ref "${FUSIONREPREF}" \
--outdir "${RESULTS_DIR}" \
-resume
The pipeline completed successfully, but the sample_fusionreport_index.html output is only showing that the fusions were found in Mitelman and FusionGDB2, including very common fusions such as EML4--ALK. If I open the starfusion output sample.starfusion.fusion_predictions.tsv directly, I do see "Cosmic" in some of the annotations.
Am I perhaps missing something? Is there a reason why Cosmic is not appearing in the report?
Thanks in advance for your help,
WinPin