Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deeptools IndexError #1275

Closed
martindemko opened this issue Aug 19, 2020 · 2 comments
Closed

Deeptools IndexError #1275

martindemko opened this issue Aug 19, 2020 · 2 comments
Labels
bug: module Bug in a MultiQC module

Comments

@martindemko
Copy link

martindemko commented Aug 19, 2020

Description of bug:

MultiQC Error log:

Module deeptools raised an exception: Traceback (most recent call last):
  File "/mnt/ssd/ssd_1/snakemake/.snakemake/conda/54d73197/lib/python3.6/site-packages/multiqc/multiqc.py", line 569, in run
    output = mod()
  File "/mnt/ssd/ssd_1/snakemake/.snakemake/conda/54d73197/lib/python3.6/site-packages/multiqc/modules/deeptools/deeptools.py", line 74, in __init__
    n['plotProfile'] = self.parse_plotProfile()
  File "/mnt/ssd/ssd_1/snakemake/.snakemake/conda/54d73197/lib/python3.6/site-packages/multiqc/modules/deeptools/plotProfile.py", line 17, in parse_plotProfile
    parsed_data, bin_labels, converted_bin_labels = self.parsePlotProfileData(f)
  File "/mnt/ssd/ssd_1/snakemake/.snakemake/conda/54d73197/lib/python3.6/site-packages/multiqc/modules/deeptools/plotProfile.py", line 111, in parsePlotProfileData
    d[s_name].update({converted_bin_labels[i-1]:float(cols[i+1])})
IndexError: range object index out of range

File that triggers the error:

Sorry, couldn't drop the input file.
Here is the log file:
multiqc.log

MultiQC run details (please complete the following):

  • Command used to run MultiQC:
  • MultiQC Version:
  • Operating System:
  • Python Version:
  • Method of MultiQC installation:

Additional context

@martindemko
Copy link
Author

input.zip
input data - table from deeptools plotProfile using --outFileNameData

@ewels ewels added the bug: module Bug in a MultiQC module label Dec 28, 2020
@ewels ewels changed the title Module deeptools raised an exception Deeptools IndexError Dec 28, 2020
ewels added a commit that referenced this issue Mar 31, 2021
@ewels ewels closed this as completed Mar 31, 2021
@ewels
Copy link
Member

ewels commented Mar 31, 2021

Sorry for the delay in getting to this. I think it's now fixed. The code had a -1 in it that, if removed, solved the issue. I'm not entirely clear on why it was there in the first place, which always makes me a little nervous, but I can't see any differences in the outputs before and after the change in my other test data so hopefully it's fine.

Thanks for reporting + sending the test data. Let me know if you hit any other issues 👍🏻

ewels added a commit to MultiQC/test-data that referenced this issue Mar 31, 2021
vladsavelyev pushed a commit to vladsavelyev/MultiQC_TestData that referenced this issue Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: module Bug in a MultiQC module
Projects
None yet
Development

No branches or pull requests

2 participants