Kevin Tan's EEGLAB pipeline performs ICA-based EEG preprocessing and source localization
A detailed practical, algorithmic and theoretical overview of this pipeline can be found here: https://github.com/kevmtan/EEGpipeline/wiki
Read the above wiki before using this pipeline