bio2rdf/bio2rdf-scripts — pull request #231 by amarillion (2013-06-20 12:54:07+00:00)
Title: 003 hgnc parser update

Hi,

These changes to hgnc.php might be useful.

I noticed that the current hgnc.tab has one fewer columns than the script was expecting, and as a consequence some variables were shifted around. The first commit should fix that. It also noticed quotes weren't escaped in one field, so I've added a call to SafeLiteral for that.

The second patch in this pull request adds a check that the contents of the header is what is expected, to get an early warning if the format changes again. It looks for an exact string match of the header, which may be more strict than necessary. Let me know if you prefer me to do it in another way.

--
Martijn