SigProfilerAssignment
SigProfilerAssignment copied to clipboard
UnboundLocalError with decompose_fit()
Hello! I am trying to use decompose_fit() to decompose a set of denovo signatures into a catalogue of reference signatures. I am passing in the catalogue using the signature_database parameter. Unfortunately, I keep getting the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../SigProfilerAssignment/Analyzer.py", line 28, in decompose_fit
decomp.spa_analyze(
File ".../SigProfilerAssignment/decomposition.py", line 822, in spa_analyze
final_signatures = sub.signature_decomposition(
File "..../SigProfilerAssignment/decompose_subroutines.py", line 446, in signature_decomposition
) = ss.add_remove_signatures(
File "..../SigProfilerAssignment/single_sample.py", line 948, in add_remove_signatures
sub.get_items_from_index(allsigids, selected_signatures)
UnboundLocalError: local variable 'selected_signatures' referenced before assignment
Please let me know if you are able to offer me any help!