code to transform annotation files into hdf5 tables;