diff --git a/figures/Figure1/getAllFiles.m b/figures/Figure1/getAllFiles.m new file mode 100644 index 0000000..188d74e --- /dev/null +++ b/figures/Figure1/getAllFiles.m @@ -0,0 +1,18 @@ +function fileList = getAllFiles(dirName) + + dirData = dir(dirName); %# Get the data for the current directory + dirIndex = [dirData.isdir]; %# Find the index for directories + fileList = {dirData(~dirIndex).name}'; %'# Get a list of the files + if ~isempty(fileList) + fileList = cellfun(@(x) fullfile(dirName,x),... %# Prepend path to files + fileList,'UniformOutput',false); + end + subDirs = {dirData(dirIndex).name}; %# Get a list of the subdirectories + validIndex = ~ismember(subDirs,{'.','..'}); %# Find index of subdirectories + %# that are not '.' or '..' + for iDir = find(validIndex) %# Loop over valid subdirectories + nextDir = fullfile(dirName,subDirs{iDir}); %# Get the subdirectory path + fileList = [fileList; getAllFiles(nextDir)]; %# Recursively call getAllFiles + end + +end \ No newline at end of file diff --git a/figures/Figure1C/FrCVWholeDelay.mat b/figures/Figure1C/FrCVWholeDelay.mat new file mode 100644 index 0000000..51b4465 Binary files /dev/null and b/figures/Figure1C/FrCVWholeDelay.mat differ diff --git a/figures/Figure3/PlotVoltageDistFig3.m b/figures/Figure3/PlotVoltageDistFig3.m new file mode 100644 index 0000000..2a542ce --- /dev/null +++ b/figures/Figure3/PlotVoltageDistFig3.m @@ -0,0 +1,143 @@ +% z=readtable('NMO_161366-voltageDistributionPreCosyne.csv'); % old one- on eLife folder +% z= readtable('/Users/darshanr/Dropbox (HHMI)/VoltageWholeCellProject-2018/MultiCompProject/all_chart_output_v3.csv'); + + z= readtable('/Users/darshan/Dropbox/Work/VoltageWholeCellProject-2018/MultiCompProject/all_chart_output_v3_v1.csv'); +%z= readtable('/Users/darshan/Dropbox/Work/VoltageWholeCellProject-2018/MultiCompProject/NMO_161366_different_location.csv'); + + + +%% Plot on-soma Vs distributed- summary +Morphology='NMO_161366'; % L5 mouse +% Morphology='NMO_130658'; % L4 FS mouse +% Morphology='NMO_02484'; % L4 Spiny Stellate mouse + +% Morphology='JM072303'; % L4 Spiny Stellate mouse + + +for kk=1:2 + + if kk==1 + min_dist=-0.5; max_dist=0.001; condValue=2; + else + min_dist=0; max_dist=9e10; condValue=2; + end + + z_morph=z; + zdis=z_morph(strcmp(z_morph.model_name,Morphology),:); + zdis=zdis((zdis.min_dist==min_dist)&(zdis.max_dist