Describe the bug
I am running CRISPRessoBatch (v2.3.3) on a set of samples using both guide_seq and expected_hdr_amplicon_seq. The individual samples process successfully, and the quantification data for each is generated correctly. However, the run crashes during the final batch comparison step ("Performing comparison of batches"). This error does not occur unless both parameters are inculded in the batch.tsv
The error is a TypeError in CRISPRessoBatchCORE.py at line 637. It appears the code attempts to subtract the sgRNA cut site integer from include_idxs, which is stored as a Python list instead of a numpy array.
Expected behavior
The software should successfully generate the batch summary plots (overlaying the quantification windows relative to the sgRNA cut site) and complete the execution without crashing.
To reproduce
Run CRISPRessoBatch using the Docker image pinellolab/crispresso2:v2.3.3.
Use a batch settings file containing amplicons that have an expected_hdr_amplicon_seq and guide_seq defined.
Include flags --place_report_in_output_folder, --debug, and --dump.
CRISPRessoBatch
-bs batch_settings.tsv
--display_name BATCH_NAME
--zip_output
--place_report_in_output_folder
--n_processes 6
--verbosity 4
--debug
--dump
Debug output
INFO @ (90.0% done):
Reporting summary for amplicon: "AMPLICON_NAME"
DEBUG @ (90.0% done):
Plotting nucleotide quilt for AMPLICON_NAME
INFO @ (93.0% done):
Reporting summary for amplicon: "AMPLICON_WITH_SGRNA"
INFO @ (93.0% done):
All guides are equal.
Performing comparison of batches for amplicon 'AMPLICON_WITH_SGRNA'
CRITICAL @ (93.0% done):
ERROR: unsupported operand type(s) for -: 'list' and 'int'
Traceback (most recent call last):
File "/opt/conda/lib/python3.12/site-packages/CRISPResso2-2.3.3-py3.12-linux-x86_64.egg/CRISPResso2/CRISPRessoBatchCORE.py", line 637, in main
sub_include_idxs = include_idxs - sgRNA_plot_idxs[0]
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for -: 'list' and 'int'
Describe the bug
I am running CRISPRessoBatch (v2.3.3) on a set of samples using both guide_seq and expected_hdr_amplicon_seq. The individual samples process successfully, and the quantification data for each is generated correctly. However, the run crashes during the final batch comparison step ("Performing comparison of batches"). This error does not occur unless both parameters are inculded in the batch.tsv
The error is a TypeError in CRISPRessoBatchCORE.py at line 637. It appears the code attempts to subtract the sgRNA cut site integer from include_idxs, which is stored as a Python list instead of a numpy array.
Expected behavior
The software should successfully generate the batch summary plots (overlaying the quantification windows relative to the sgRNA cut site) and complete the execution without crashing.
To reproduce
Run CRISPRessoBatch using the Docker image pinellolab/crispresso2:v2.3.3.
Use a batch settings file containing amplicons that have an expected_hdr_amplicon_seq and guide_seq defined.
Include flags --place_report_in_output_folder, --debug, and --dump.
CRISPRessoBatch
-bs batch_settings.tsv
--display_name BATCH_NAME
--zip_output
--place_report_in_output_folder
--n_processes 6
--verbosity 4
--debug
--dump
Debug output
INFO @ (90.0% done):
Reporting summary for amplicon: "AMPLICON_NAME"
DEBUG @ (90.0% done):
Plotting nucleotide quilt for AMPLICON_NAME
INFO @ (93.0% done):
Reporting summary for amplicon: "AMPLICON_WITH_SGRNA"
INFO @ (93.0% done):
All guides are equal.
Performing comparison of batches for amplicon 'AMPLICON_WITH_SGRNA'
CRITICAL @ (93.0% done):
ERROR: unsupported operand type(s) for -: 'list' and 'int'
Traceback (most recent call last):
File "/opt/conda/lib/python3.12/site-packages/CRISPResso2-2.3.3-py3.12-linux-x86_64.egg/CRISPResso2/CRISPRessoBatchCORE.py", line 637, in main
sub_include_idxs = include_idxs - sgRNA_plot_idxs[0]
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for -: 'list' and 'int'