A computational investigation of solubility, functionality and the adaptation in subcellular compartments of proteins