Shifting problems after removing and replacing rear wheel
Per your comments, looks like you just needed to re-seat the rear wheel.  To be fair, I will say there are things you can do while changing a tire that may cause problems like this.  But having to adjust the disc brake, then the shifting acting wrong is a dead giveaway that the wheel went back in a bit of a different angle than it came out.