nf-core / atacseq

ATAC-seq peak-calling and QC analysis pipeline
https://nf-co.re/atacseq
MIT License
179 stars 116 forks source link

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

Open kasiabla opened 2 months ago

kasiabla commented 2 months ago

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

JoseEspinosa commented 1 month ago

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 commented 1 week ago

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