It's according to the person's individual situation but you can sometimes convert from a chapter 13 to a chapter 7 & still keep your home.

Have you already talked to an attorney & they told you that you couldn't in your case due to the divorce or some other reason?