Typically you do your framing first. Just keep in mind the plumbing while doing the framing and you can save a headache later on. Do you need to header off a joist for the toilet waste, do you need a 2 x 6 wall on one side, etc.
You are going to have to run the pipes through the studs. Once the pipes are in you can't get the studs in without cutting them completely through?