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

Error executing process > 'NFCORE_CUTANDRUN:CUTANDRUN:DEEPTOOLS_QC:DEEPTOOLS_MULTIBAMSUMMARY (all_target_bams)': AttributeError: module 'matplotlib.cm' has no attribute 'register_cmap' #251

Open
haipinghao opened this issue Aug 7, 2024 · 2 comments

Comments

@haipinghao
Copy link

Description of the bug

I ran "nextflow run nf-core/cutandrun -profile test,conda" command after installing conda and nextflow following the instruction and got the error message

Command used and terminal output

$ nextflow run nf-core/cutandrun -profile test,conda
-[nf-core/cutandrun] Pipeline completed with errors-
ERROR ~ Error executing process > 'NFCORE_CUTANDRUN:CUTANDRUN:DEEPTOOLS_QC:DEEPTOOLS_MULTIBAMSUMMARY (all_target_bams)'

Caused by:
  Process `NFCORE_CUTANDRUN:CUTANDRUN:DEEPTOOLS_QC:DEEPTOOLS_MULTIBAMSUMMARY (all_target_bams)` terminated with an error exit status (1)


Command executed:

  multiBamSummary bins \
      --smartLabels --binSize 500 \
      --labels h3k27me3_R1 igg_ctrl_R1 \
      --bamfiles h3k27me3_R1.target.linear_dedup.sorted.bam igg_ctrl_R1.target.linear_dedup.sorted.bam \
      --numberOfProcessors 2 \
      --outFileName all_bam.bamSummary.npz

  cat <<-END_VERSIONS > versions.yml
  "NFCORE_CUTANDRUN:CUTANDRUN:DEEPTOOLS_QC:DEEPTOOLS_MULTIBAMSUMMARY":
      deeptools: $(multiBamSummary --version | sed -e "s/multiBamSummary //g")
  END_VERSIONS

Command exit status:
  1

Command output:
  (empty)

Command error:
  Traceback (most recent call last):
    File "/NGS_Core/CutAndRun/work/conda/env-0d01150023c68e439ebff3eb959d98bf/bin/multiBamSummary", line 5, in <module>
      from deeptools.multiBamSummary import main
    File "/NGS_Core/CutAndRun/work/conda/env-0d01150023c68e439ebff3eb959d98bf/lib/python3.11/site-packages/deeptools/multiBamSummary.py", line 9, in <module>
      import deeptools.countReadsPerBin as countR
    File "/NGS_Core/CutAndRun/work/conda/env-0d01150023c68e439ebff3eb959d98bf/lib/python3.11/site-packages/deeptools/countReadsPerBin.py", line 9, in <module>
      import deeptools.utilities
    File "/NGS_Core/CutAndRun/work/conda/env-0d01150023c68e439ebff3eb959d98bf/lib/python3.11/site-packages/deeptools/utilities.py", line 7, in <module>
      from deeptools import cm  # noqa: F401
      ^^^^^^^^^^^^^^^^^^^^^^^^
    File "/NGS_Core/CutAndRun/work/conda/env-0d01150023c68e439ebff3eb959d98bf/lib/python3.11/site-packages/deeptools/cm.py", line 1087, in <module>
      mpl_cm.register_cmap(_name, _cmap)
      ^^^^^^^^^^^^^^^^^^^^
  AttributeError: module 'matplotlib.cm' has no attribute 'register_cmap'

Work dir:
  /NGS_Core/CutAndRun/work/df/50bbc2679a218fcccf7c49502a3ac4

Tip: when you have fixed the problem you can continue the execution adding the option `-resume` to the run command line

 -- Check '.nextflow.log' file for details

Relevant files

No response

System information

Nextflow version 24.04.4
Hardware: multicore server
Executor: none
Container engine: Conda
OS: Ubuntu
Version of nf-core/cutandrun v3.2.2-g6e1125d

@haipinghao haipinghao added the bug Something isn't working label Aug 7, 2024
@chris-cheshire
Copy link
Contributor

Looks like a cluster issue, is this still a problem?

@chris-cheshire chris-cheshire added pipeline_error and removed bug Something isn't working labels Aug 29, 2024
@haipinghao
Copy link
Author

haipinghao commented Aug 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants