updated filtering to use labels files to determine which samples to keep