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

AttributeError: module 'matplotlib.cm' has no attribute 'register_cmap' #376

Open
kasiabla opened this issue Jul 15, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@kasiabla
Copy link

Description of the bug

Hello,
Can you help with this error. It repeats when I try to run this command:
nextflow run nf-core/atacseq -profile conda --input ./ATAC_samples.csv --outdir ./results --genome GRCh38 --read_length 150 -r 2.1.2

What is the problem and can you recommend any solution?
Thanks in advance,
Kasia

błąd

-[nf-core/atacseq] Pipeline completed with errors-
ERROR ~ Error executing process > 'NFCORE_ATACSEQ:ATACSEQ:MERGED_LIBRARY_DEEPTOOLS_PLOTFINGERPRINT (WT_REP2)'

Caused by:
  Process `NFCORE_ATACSEQ:ATACSEQ:MERGED_LIBRARY_DEEPTOOLS_PLOTFINGERPRINT (WT_REP2)` terminated with an error exit status (1)


Command executed:

  plotFingerprint \
      --skipZeros --numberOfSamples 500000 --labels WT_REP2.mLb.clN \
       \
      --bamfiles WT_REP2.mLb.clN.sorted.bam \
      --plotFile WT_REP2.mLb.clN.plotFingerprint.pdf \
      --outRawCounts WT_REP2.mLb.clN.plotFingerprint.raw.txt \
      --outQualityMetrics WT_REP2.mLb.clN.plotFingerprint.qcmetrics.txt \
      --numberOfProcessors 12

  cat <<-END_VERSIONS > versions.yml
  "NFCORE_ATACSEQ:ATACSEQ:MERGED_LIBRARY_DEEPTOOLS_PLOTFINGERPRINT":
      deeptools: $(plotFingerprint --version | sed -e "s/plotFingerprint //g")
  END_VERSIONS

Command exit status:
  1

Command output:
  (empty)

Command error:
  Traceback (most recent call last):
    File "/home/kasia/ATAC_seq_Macrogen_2024/work/conda/env-0d01150023c68e439ebff3eb959d98bf/bin/plotFingerprint", line 5, in <module>
      from deeptools.plotFingerprint import main
    File "/home/kasia/ATAC_seq_Macrogen_2024/work/conda/env-0d01150023c68e439ebff3eb959d98bf/lib/python3.11/site-packages/deeptools/plotFingerprint.py", line 11, in <module>
      from deeptools import cm  # noqa: F401
      ^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/kasia/ATAC_seq_Macrogen_2024/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:
  /home/kasia/ATAC_seq_Macrogen_2024/work/3b/029286d47730c44976924716f4f90a

Tip: view the complete command output by changing to the process work dir and entering the command `cat .command.out`

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

Command used and terminal output

No response

Relevant files

No response

System information

No response

@kasiabla kasiabla added the bug Something isn't working label Jul 15, 2024
@JoseEspinosa
Copy link
Member

Might be that you have a conflict in your conda environment, see this post. If you could run it using either singularity or docker I will recommend it.

@kasiabla
Copy link
Author

kasiabla commented Sep 5, 2024

Thank you Jose,
Using docker, it worked!
Great recommendation,
Cheers,
Kasia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants