Assignment of functional groups in Gram-positive bacteria