Closed ypriverol closed 4 years ago
Hi Yasset,
I am not sure that the code you are showing applies to that line. Would you be able to share a minimal example of a problematic file (or not minimal, depending on how sensitive the data are)?
I think I see the failure path. In _cast_value
https://github.com/levitsky/pyteomics/blob/master/pyteomics/mztab.py#L81-L82, there is an indiscriminant decision that if something starts with a "[" it must be a param group. The solution is to try to parse the value as a parameter and if we fail, return the string unparsed, or somehow inject the name of the column being parsed and know whether that column can be a param in that context. Easier to do the former for now.
@ypriverol This issue got auto-closed by merging #4, but please drop a comment on whether it's actually fixed for you now.
@mobiusklein Thank you for stepping in!
@levitsky:
We are using pyteomics for some of our pipelines. I have seen that when the description of the protein contains
[ ]
the current mzTab fail reading the description part.it fails in the following line: