I just ran metaphlan 4 beta (installed from github) with mpa_vJan21_CHOCOPhlAnSGB_202103 index. The alignment goes well but at the end it gives an error:
File "/usr/local/bin/metaphlan", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/metaphlan/metaphlan.py", line 1133, in main
rank = ranks2code[clade.split('|')[-1][0]]
KeyError: 't'```
The command I ran:
```metaphlan --nproc 48 --input_type 'fastq' --bowtie2out metagenome.bowtie2.bz2 -o profiled_metagenome.txt --CAMI_format_output --tmp_dir /mnt/data/workdir/tmp_dir --bowtie2db /mnt/data/workdir/mpa_vJan21_CHOCOPhlAnSGB_202103 --index mpa_vJan21_CHOCOPhlAnSGB_202103 R1.fastq,R2.fastq```
The output files for the bowtie2out and for the profiled_metagenome.txt are both created. However, the profiled_metagenome.txt file container results up to species level, without the SGBs level.