do not claim BK with out spending HOURS researching that. I would highly doubt the need to claim BK in your instance. Your home was Foreclosed,I would suggest to me the bank got the security back they wanted. If the bank comes after you or your X for deficiencies, then you may have to consider BK. If you choose BK, getting a loan will not be easy and will not be available for an additional 5 years according to current lending standards, not in 1 year like you are hoping for.
here are a couple blogs i wrote on buying the home of your dreams and another one an making sure you can afford it.
I hope those are helpful reads. If you want please choose to follow the blog for more updates. Thank you