sanger-pathogens/ariba

Megares Downloading Error

ajkarloss opened this issue · 4 comments

Command used "ariba getref megares Megares.out". Many of my colleagues are also reporting the same.

raise Error('Unexpected header in annotations file. Expected columns: ' + ','.join(expected_columns) + ' but got: ' + ','.join(reader.fieldnames))
ariba.megares_zip_parser.Error: Unexpected header in annotations file. Expected columns: group,class,mechanism,header but got: header,type,class,mechanism,group

Hello @ajkarloss ,
looks like the new version of megares comes in a different format. We cannot fix that at the moment, as the software is no longer maintained. But you can constrain Ariba to download an older version as e.g. ariba getref megares --version 1.01 Megares.out.

I have modified the code (megares_zip_parser.py) to parse the MEGARes 2.0.0. Shall I send a pull request?

Thanks, but the original developer has just put in his own pull request that will be able to handle both versions 1 and 2. We will take that one.

:) Thanks.