groupschoof / AHRD

High throughput protein function annotation with Human Readable Description (HRDs) and Gene Ontology (GO) Terms.
https://www.cropbio.uni-bonn.de/
Other
63 stars 21 forks source link

regex debugging #12

Open wmnwmn opened 8 years ago

wmnwmn commented 8 years ago
  1. Added yml file option debug_regex. If true, it causes printout of matched accession and description terms.
  2. Slight rearrangement of regex parsing to produce meaningful error messages in cases where the regex matches overall but one of the fields (accession or description) does not match. Mainly this means moving the trim() operations so as to not produce null pointers, and also printing appropriate error messages.

One thing I also noticed is that the docs and some of the sample yml files contain the double-backslash \\sescaping for regex. However, I have not found this to be necessary, indeed in my usage I have been finding that double-backslash doesn't work. I'm not sure why this is.