Error Using --write-details in waafle_orgscorer (WAAFLE Tutorial Step 3)

Hello,

I’m currently working through Step 3 of the WAAFLE tutorial using the demo dataset.

When I attempt to run waafle_orgscorer with the --write-details argument using the following command:

waafle_orgscorer
demo_contigs.fna
demo_contigs.blastout
demo_contigs.gff
chocophlan2_taxonomy.tsv
–write-details

I encounter the following error:

Loading taxonomy.
Initializing contigs.
Adding gene coordinates.
Traceback (most recent call last):
File “/rds/user/caf77/hpc-work/waafle/bin/waafle_orgscorer”, line 10, in
sys.exit(main())
File “/rds/user/caf77/hpc-work/waafle/lib/python3.6/site-packages/waafle/waafle_orgscorer.py”, line 937, in main
wu.write_rowdict( None, c_formats[“details”], file=details )
File “/rds/user/caf77/hpc-work/waafle/lib/python3.6/site-packages/waafle/utils.py”, line 152, in write_rowdict
print( delim.join( [k.upper( ) for k in format] ), file=file )
File “/rds/user/caf77/hpc-work/waafle/lib/python3.6/gzip.py”, line 260, in write
data = memoryview(data)
TypeError: memoryview: a bytes-like object is required, not ‘str’

It seems the issue arises when writing the details file.

I would appreciate any guidance or suggestions to resolve this issue.