Selecting proirs based on group

Thank you so much @junpenglao!