The IDIP framework for assessing protein function and its application to the prion protein