Intelligent assigment of tags to ReadGroup, WriteGroup or both