neural activity processing pipeline