The pop_clean_rawdata function is able to exclude externals. See https://github.com/sccn/clean_rawdata/issues/28