Skip to content

Refit error in sigprofiler_extract #470

Description

@jrcodina

I am getting two error when trying to run sigprofiler_extract. The first one is due to a possibly deprecated argument in SigProfilerExtractor called "refit". The second one is probably related to the fact that i am using a Windows PC.

I manually installed SigProfilerExtractor because conda was giving me another problems and that is why I have the python path option. I have tried this with and without the refit and refit_plot options.

> sigprofiler_extract(
+   nmf_matrix = nmf_sample,
+   output = "./sigprofiler/",
+   genome_build = "hg19",
+   use_conda = FALSE,  # do NOT auto-create environment
+   py_path   = "C:/Users/jrc356/.conda/envs/sigprofiler_env/python.exe",
+   refit  = FALSE,  # explicitly turn off refit so it won't pass that param
+   refit_plot = FALSE
+ )
Loading required namespace: reticulate
Python environment configuration.
====================
python:         C:/Users/jrc356/.conda/envs/sigprofiler_env/python.exe
libpython:      C:/Users/jrc356/.conda/envs/sigprofiler_env/python311.dll
pythonhome:     C:/Users/jrc356/.conda/envs/sigprofiler_env
version:        3.11.11 | packaged by Anaconda, Inc. | (main, Dec 11 2024, 16:34:19) [MSC v.1929 64 bit (AMD64)]
Architecture:   64bit
numpy:          C:/Users/jrc356/.conda/envs/sigprofiler_env/Lib/site-packages/numpy
numpy_version:  1.26.4

NOTE: Python version was forced by use_python() function
The follow samples dropped due to null catalogue:
	GENIE-JHU-00143-00324, GENIE-MSK-P-0051808-T01-IM6, GENIE-MSK-P-0081238-T02-IM7, GENIE-UHN-OCT886607-ARC1, GENIE-MSK-P-0025374-T01-IM6, GENIE-NKI-PSNJ-VDY8, GENIE-MSK-P-0045205-T01-IM6, GENIE-MSK-P-0008424-T01-IM5, GENIE-MSK-P-0029386-T01-IM6, GENIE-WAKE-F2263-01, GENIE-MSK-P-0051608-T02-IH3, GENIE-MSK-P-0019281-T01-IM6, GENIE-MSK-P-0030600-T01-IH3, GENIE-COLU-700-1, GENIE-MSK-P-0016617-T01-IM6, GENIE-UCSF-782593-90632T, GENIE-MSK-P-0044869-T01-IH3, GENIE-MSK-P-0033310-T01-IM6
unused argument (refit_denovo_signatures = refit)Error detected, try recalling with python command.
===
C:/Users/jrc356/.conda/envs/sigprofiler_env/python.exe -c "from SigProfilerExtractor import sigpro as sig;sig.sigProfilerExtractor('matrix','./sigprofiler/','C:\Users\jrc356\AppData\Local\Temp\RtmpuA1nnQ/dir8e9c7fc35e75/sigprofiler_input.txt',reference_genome='GRCh37',opportunity_genome='GRCh37',minimum_signatures=2,maximum_signatures=5,nmf_replicates=10,exome=False,nmf_init='random',refit_denovo_signatures=False,make_decomposition_plots=False,cpu=-1)"
===
  File "<string>", line 1
    from SigProfilerExtractor import sigpro as sig;sig.sigProfilerExtractor('matrix','./sigprofiler/','C:\Users\jrc356\AppData\Local\Temp\RtmpuA1nnQ/dir8e9c7fc35e75/sigprofiler_input.txt',reference_genome='GRCh37',opportunity_genome='GRCh37',minimum_signatures=2,maximum_signatures=5,nmf_replicates=10,exome=False,nmf_init='random',refit_denovo_signatures=False,make_decomposition_plots=False,cpu=-1)
                                                                                                                                                                                           ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
[1] 1

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions