Resolve bug in filtering function for proteins based on scancount