Creating a custom preprocessing pipeline. To assemble a preprocessing pipeline, one simply needs to stack relevant methods (built-in or custom) into the intended order of execution. For instance: Constructed pipelines can then be applied exactly as single methods via their apply() method to any data loaded within RamanSPy. As pipelines in RamanSPy are objects, they can also be directly saved in a convenient file format, such as pickle files. As such, they can then be reloaded, reused and shared as needed.