fritzsedlazeck / Spectre

Copy number caller for long read data including SNV utilization
MIT License
54 stars 3 forks source link

Crash on SNV module #21

Open adbeggs opened 7 months ago

adbeggs commented 7 months ago

First attempt since my last round of queries... running with Clair3 SNVs and get:

Traceback (most recent call last):
  File "/rds/projects/b/beggsa-clinicalnanopore/software/condaenvs/spectre2/bin/spectre", line 8, in <module>
    sys.exit(main())
  File "/rds/projects/b/beggsa-clinicalnanopore/software/condaenvs/spectre2/lib/python3.10/site-packages/spectre/spectre.py", line 614, in main
    spectre_run.spectre_exe()
  File "/rds/projects/b/beggsa-clinicalnanopore/software/condaenvs/spectre2/lib/python3.10/site-packages/spectre/spectre.py", line 349, in spectre_exe
    spectre_main.cnv_call()
  File "/rds/projects/b/beggsa-clinicalnanopore/software/condaenvs/spectre2/lib/python3.10/site-packages/spectre/spectreCNV.py", line 70, in cnv_call
    self.snv_analysis.snv_copy_number_state()
  File "/rds/projects/b/beggsa-clinicalnanopore/software/condaenvs/spectre2/lib/python3.10/site-packages/spectre/analysis/snv_analysis.py", line 230, in snv_copy_number_state
    self.snv_multimodal_detect()
  File "/rds/projects/b/beggsa-clinicalnanopore/software/condaenvs/spectre2/lib/python3.10/site-packages/spectre/analysis/snv_analysis.py", line 103, in snv_multimodal_detect
    self.het_dump()
  File "/rds/projects/b/beggsa-clinicalnanopore/software/condaenvs/spectre2/lib/python3.10/site-packages/spectre/analysis/snv_analysis.py", line 131, in het_dump
    het_dump_file = gzip.open(f'{self.spectre_args.out_dir}/debug/het_dump.txt.gz', 'wt')
  File "/rds/projects/b/beggsa-clinicalnanopore/software/condaenvs/spectre2/lib/python3.10/gzip.py", line 58, in open
    binary_file = GzipFile(filename, gz_mode, compresslevel)
  File "/rds/projects/b/beggsa-clinicalnanopore/software/condaenvs/spectre2/lib/python3.10/gzip.py", line 174, in __init__
    fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/rds/projects/b/beggsa-clinicalnanopore/to_share_via_globus/Rare_Disease_Hannah_Titherage_200623/D2325440/20230620_0810_3E_PAO44618_97828260/spectre2a/debug/het_dump.txt.gz'
philippesanio commented 7 months ago

Hi @adbeggs

Which install did you use for Spectre pip or the local installation? This issue has been fixed two commits ago (0e96275) and is already part of the local installation. The changes will be part of the new pip version 0.2.1. However, the new version will be pushed after we have addressed some changes to the population mode.

Local installation with pip:

pip install build
git clone https://github.com/fritzsedlazeck/Spectre.git
cd ./Spectre
python3 -m build
pip install dist/spectre-cnv-<VERSION>.tar.gz # replace <VERSION> with e.g. 0.2.0

Please let me know if that fixed the issue for the time being. Thanks, Philippe

adbeggs commented 7 months ago

Hi Phillipe

My bad, must have missed a commit, I will try again

A

From: Philippe Sanio @.> Sent: Tuesday, April 23, 2024 1:26 PM To: fritzsedlazeck/Spectre @.> Cc: Andrew Beggs (Cancer and Genomic Sciences) @.>; Mention @.> Subject: Re: [fritzsedlazeck/Spectre] Crash on SNV module (Issue #21)

CAUTION: This email originated from outside the organisation. Do not click links or open attachments unless you recognise the sender and know the content is safe.

Hi @adbeggshttps://github.com/adbeggs

Which install did you use for Spectre pip or the local installation? This issue has been fixed two commits ago (0e96275https://github.com/fritzsedlazeck/Spectre/commit/0e96275bd36945238a3947a24a0d0fcffa3e07b5) and is already part of the local installation. The changes will be part of the new pip version 0.2.1. However, the new version will be pushed after we have addressed some changes to the population mode.

Local installation with pip:

pip install build

git clone https://github.com/fritzsedlazeck/Spectre.git

cd ./Spectre

python3 -m build

pip install dist/spectre-cnv-.tar.gz # replace with e.g. 0.2.0

Please let me know if that fixed the issue for the time being. Thanks, Philippe

— Reply to this email directly, view it on GitHubhttps://github.com/fritzsedlazeck/Spectre/issues/21#issuecomment-2072166029, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC7KTDCIHMOTL3WOX64HPW3Y6ZHNBAVCNFSM6AAAAABGUX57PWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZSGE3DMMBSHE. You are receiving this because you were mentioned.Message ID: @.***>

philippesanio commented 6 months ago

Hi @adbeggs

Just wanted to check if the new Spectre version 0.2.1 fixed your issues?

Cheers, Philippe