Is there a partial recursive function $f$ that maps $e$ to the least element of $W_e$ if $W_e\neq \varnothing$?
Can we apply the $\mu$-operator (minimization) to a partially decidable predicate to get a partial recursive function (as in defining $f(x)=\mu z(z\in W_e)$ if $W_e\neq\varnothing$ and undefined otherwise, since $z\in W_e$ is partially decidable)?
My guess was that there is no such $f$, but I wasn't sure how to show that. Thanks in adavnce.
Your intuition is right: there is no such function.
We can see this in a couple different ways:
Contradiction: Suppose there were such an $f$. Then - given an arbitrary (infinite) c.e. set $A$ - we could compute the sequence $$\min(A), \min(A\setminus\{\min(A)\}), \min(A\setminus\{\min(A), \min(A\setminus\{\min(A)\})\}), ...$$ by iteratively applying $f$. But this precisely enumerates $A$ in order, and so makes $A$ computable. Since there are non-computable sets, this can't happen.
Direct diagonalization: Given a computable function $f$, we can find an $e$ such that $(i)$ $2$ enters $W_e$ at stage $0$, $(ii)$ $1$ enters $W_e$ at stage $n+1$ iff $f(e)$ halts and outputs "$2$" at stage exactly $n$, and $(iii)$ no other numbers enter $W_e$ under any other circumstances. Then we get $\min(W_e)=2$ iff $f(e)\not=2$, so $f$ doesn't do what we want it to.
I haven't provided full details of either case, but the idea should be clear. Filling in the details (of the first one, especially) is a good exercise.