it depends on the contract relationship between the school, your boss, and you, potentially even the organization that provided funding for this research project.
My feeling is that when you agreed to work for your current boss, you might have signed away any IP rights to your boss. you can contact your school and find this out easily though.