addpath(genpath('/home/sam/Documents/MATLAB/Kilosort'))

dirNames = {'20160912';'20160913';'20160916';'20160920';'20160927';'20160929'};
%%run kilosort
for i  = 1:length(dirNames)
    
    dirName = ['/home/sam/mnt/mothership/camkii4/' dirNames{i}];


sl = regexp(dirName,'/');
basename = dirName(sl(end)+1:end);
master_file(dirName,basename)

end