Skip to content

Commit

Permalink
correction for path in demo.m file. It now work on linux and with the…
Browse files Browse the repository at this point in the history
… smple data porvided in the repo
  • Loading branch information
bouromain committed Apr 12, 2021
1 parent 52f96d0 commit e09d249
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 108 deletions.
102 changes: 1 addition & 101 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,106 +1,6 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
*.pkl

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject

# Image
*.tif
*.tiff
*.jpg
*.bmp

# Matlab files
*.asv
*.mat
*.fig
/SampleData/Figures
/SampleData/Results/*
/SampleData/Figures/*

# PyCharm
.idea/
18 changes: 11 additions & 7 deletions CellReg/demo.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,25 @@

%% Setting paths for the cell registration procedure:

% we need to find the path up-two levels
[fileroot,~,~] = fileparts(mfilename('fullpath'));
[fileroot,~,~] = fileparts(fileroot);


% Defining the results_directory and creating the figures_directory:
results_directory='D:\dev\Cell registration\CellReg\SampleData\Results';
results_directory= fullfile(fileroot,'SampleData', 'Results') ;

figures_directory=fullfile(results_directory,'Figures');
if exist(figures_directory,'dir')~=7
mkdir(figures_directory);
end

figures_visibility='on'; % either 'on' or 'off' (in any case figures are saved)

file_names={'D:\dev\Cell registration\CellReg\SampleData\spatial_footprints_01.mat' ,...
'D:\dev\Cell registration\CellReg\SampleData\spatial_footprints_02.mat' ,...
'D:\dev\Cell registration\CellReg\SampleData\spatial_footprints_03.mat' ,...
'D:\dev\Cell registration\CellReg\SampleData\spatial_footprints_04.mat' ,...
'D:\dev\Cell registration\CellReg\SampleData\spatial_footprints_05.mat'};

% define path of sample data
for it = 1:5
file_names{it} = fullfile(fileroot, 'SampleData',sprintf('spatial_footprints_0%1i.mat',1));
end

%% Stage 1 - Loading the spatial footprints of cellular activity:
% This stage loads a new data set which includes several sessions with the
Expand Down

0 comments on commit e09d249

Please sign in to comment.