Updated write_metadata for edgeRlib