the Scientific Research Committee - IslamToday.net
If the dissection is a requirement of your biology class or of scientific research in general, you may do it.
Please note that the pig is impure. If any substance from the pig touches your skin or clothing, it will have to be thoroughly washed off before you may pray.
And Allah knows best.
Source: Islam Today