Assign ids to genes