Flexible protein sequence patterns