Hi Francesco,
A related question, rather issue:
I run metaphlan2.py with mpa_v20 successfully but when I ask metaphlan2.py to use the mpa_v29 by passing this --index v294_CHOCOPhlAn_201901,
I got the following error:
Help message for read_fastx.py
Traceback (most recent call last):
File "/scif/apps/MetaPhlAn2/metaphlan2/metaphlan2.py", line 1565, in <module>
metaphlan2()
File "/scif/apps/MetaPhlAn2/metaphlan2/metaphlan2.py", line 1457, in metaphlan2
tree = TaxTree( mpa_pkl, ignore_markers )
File "/scif/apps/MetaPhlAn2/metaphlan2/metaphlan2.py", line 1134, in __init__
add_lens( self.root )
File "/scif/apps/MetaPhlAn2/metaphlan2/metaphlan2.py", line 1131, in add_lens
lens.append( add_lens( c ) )
File "/scif/apps/MetaPhlAn2/metaphlan2/metaphlan2.py", line 1131, in add_lens
lens.append( add_lens( c ) )
File "/scif/apps/MetaPhlAn2/metaphlan2/metaphlan2.py", line 1131, in add_lens
lens.append( add_lens( c ) )
[Previous line repeated 4 more times]
File "/scif/apps/MetaPhlAn2/metaphlan2/metaphlan2.py", line 1132, in add_lens
node.glen = sum(lens) / len(lens)
TypeError: unsupported operand type(s) for +: 'int' and 'tuple'
I checked the bowtie2out and samout files and they were created, here the first five lines of each file:
D00535:105:CD1MBANXX:3:1102:15530:83073_1:N:0:AGGCAGAA+GAGCCTTA 329__B2UJE8__OR214_02957
D00535:105:CD1MBANXX:3:1307:11308:81771_1:N:0:AGGCAGAA+GAGCCTTA 329__B2UJE8__OR214_02957
D00535:105:CD1MBANXX:3:1101:3257:2186_1:N:0:AGGCAGAA+GAGCCTTA 329__A0A0B1ZCK1__BEK68_22290
D00535:105:CD1MBANXX:3:1101:9153:30973_1:N:0:AGGCAGAA+GAGCCTTA 305__F6G7E3__KR96_18365
D00535:105:CD1MBANXX:3:1205:13241:66934_1:N:0:AGGCAGAA+GAGCCTTA 305__F6G7E3__KR96_18365
@HD VN:1.0 SO:unsorted
@SQ SN:1774__A0A145SSN4__BKG84_01780 LN:549
@SQ SN:1774__A0A1S1KP69__BKG84_29780 LN:371
@SQ SN:1774__A0A0E3TQG9__BKG84_03055 LN:489
@SQ SN:1774__A0A0E3XU86__BKG84_13495 LN:480
but the output with the relative abundances is empty.
Any clue of why is this happening?
Thanks,
Monica
On Monday, September 9, 2019 at 4:37:53 PM UTC-5, Francesco Beghini wrote: