Metabolomics PCA analysis - disontinuous ROI

Hello all,
I’ve tried to perform PCA analysis after using the pipeline to remove regions corresponding to an expected contaminant. Result is the same as that obtained with full spectra. I wonder such a region removal only applies to pipeline commands. Is there any way of computing PCA in a discontinuous ROI?
Thanks
Antonio