You could just assign `sample_ids = sample_ids_temp` or what's the reasoning for doing it on a per sample basis?