Hi all, I'm trying to run rnafusion using the test...
# rnafusion
w
Hi all, I'm trying to run rnafusion using the test data and it doesn't seem like the fusion report includes cosmic annotation. I set up the rnafusion pipeline in a local server following these steps: (1) download references from S3 AWS bucket; (2) download fusion_report_db separately with cosmic username and password following the instructions in the nf-core/rnafusion page
Copy code
nextflow 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)
Copy code
/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
Copy code
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