KeyError: 'PRJNAxxxxx'

Hello,

I’ve received the same error for the following viral genomes: PRJNA39931, PRJNA16327, and PRJNA15182. I am using mpa_v30_CHOCOPhlAn_201901.

Can you please help me with this?

Here’s the full trace:

Traceback (most recent call last):
  File "/usr/local/bin/metaphlan", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 1072, in main
    pars['tax_lev']+"__" if pars['tax_lev'] != 'a' else None )
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 739, in relative_abundances
    tot_ab += clade.compute_abundance()
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 523, in compute_abundance
    sum_ab = sum([c.compute_abundance() for c in self.children.values()])
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 523, in <listcomp>
    sum_ab = sum([c.compute_abundance() for c in self.children.values()])
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 523, in compute_abundance
    sum_ab = sum([c.compute_abundance() for c in self.children.values()])
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 523, in <listcomp>
    sum_ab = sum([c.compute_abundance() for c in self.children.values()])
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 523, in compute_abundance
    sum_ab = sum([c.compute_abundance() for c in self.children.values()])
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 523, in <listcomp>
    sum_ab = sum([c.compute_abundance() for c in self.children.values()])
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 523, in compute_abundance
    sum_ab = sum([c.compute_abundance() for c in self.children.values()])
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 523, in <listcomp>
    sum_ab = sum([c.compute_abundance() for c in self.children.values()])
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 523, in compute_abundance
    sum_ab = sum([c.compute_abundance() for c in self.children.values()])
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 523, in <listcomp>
    sum_ab = sum([c.compute_abundance() for c in self.children.values()])
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 523, in compute_abundance
    sum_ab = sum([c.compute_abundance() for c in self.children.values()])
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 523, in <listcomp>
    sum_ab = sum([c.compute_abundance() for c in self.children.values()])
  File "/usr/local/lib/python3.6/dist-packages/metaphlan/metaphlan.py", line 535, in compute_abundance
    ext_clade = self.taxa2clades[ext]
KeyError: 'PRJNA39931'

I also encountered the same problem. Hope the developer can help to solve it