Sample assignment