Unique-sample selection via near-infrared spectral subtraction