Cavity scaling: automated refinement of cavity-aware motifs in protein function prediction.