Skip to content

Commit e08c269

Browse files
committed
Add credits
- create a printCredit function called by getData - add those credits at the top of batch.m and getOption
1 parent 9be9fa3 commit e08c269

File tree

4 files changed

+87
-1
lines changed

4 files changed

+87
-1
lines changed

batch.m

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
% __ ____ ____ _ _ _
2+
% / _)( _ \( _ \ | | / \ | )
3+
% ( (_ )___/ )___/ | |_ / _ \ | \
4+
% \__)(__) (__) |___||_/ \_||__)
5+
%
6+
% Thank you for using the CPP lap pipeline - version 0.0.3.
7+
%
8+
% Current list of contributors includes
9+
% Mohamed Rezk
10+
% Rémi Gau
11+
% Olivier Collignon
12+
% Ane Gurtubay
13+
% Marco Barilari
14+
%
15+
% Please cite using the following DOI:
16+
% https://doi.org/10.5281/zenodo.3554332
17+
%
18+
% For bug report, suggestions for improvements or contributions see our github repo:
19+
% https://github.com/cpp-lln-lab/CPP_BIDS_SPM_pipeline
20+
121
clear
222
clc
323

getOption.m

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
function opt = getOption()
2+
% __ ____ ____ _ _ _
3+
% / _)( _ \( _ \ | | / \ | )
4+
% ( (_ )___/ )___/ | |_ / _ \ | \
5+
% \__)(__) (__) |___||_/ \_||__)
6+
%
7+
% Thank you for using the CPP lap pipeline - version 0.0.3.
8+
%
9+
% Current list of contributors includes
10+
% Mohamed Rezk
11+
% Rémi Gau
12+
% Olivier Collignon
13+
% Ane Gurtubay
14+
% Marco Barilari
15+
%
16+
% Please cite using the following DOI:
17+
% https://doi.org/10.5281/zenodo.3554332
18+
%
19+
% For bug report, suggestions for improvements or contributions see our github repo:
20+
% https://github.com/cpp-lln-lab/CPP_BIDS_SPM_pipeline
21+
22+
223
% returns a structure that contains the options chosen by the user to run
324
% slice timing correction, pre-processing, FFX, RFX.
425

@@ -60,5 +81,4 @@
6081
% scripts
6182
save('opt.mat','opt')
6283

63-
6484
end

subfun/checkDependencies.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
function checkDependencies()
22
% Checks that that the right dependencies are installed. ALso loads the spm defaults.
33

4+
printCredits()
45

56
SPM_main = 'SPM12';
67
SPM_sub = '7487';

subfun/printCredits.m

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
function printCredits()
2+
3+
version = '0.0.3';
4+
5+
contributors = {...
6+
'Mohamed Rezk',...
7+
'Rémi Gau', ...
8+
'Olivier Collignon',...
9+
'Ane Gurtubay', ...
10+
'Marco Barilari'};
11+
12+
DOI_URL = 'https://doi.org/10.5281/zenodo.3554332';
13+
14+
repoURL = 'https://github.com/cpp-lln-lab/CPP_BIDS_SPM_pipeline';
15+
16+
disp( '____________________________________________________________________________________________');
17+
disp( '____________________________________________________________________________________________');
18+
disp( ' ');
19+
disp( ' __ ____ ____ _ _ _ ');
20+
disp( ' / _)( _ \( _ \ | | / \ | ) ');
21+
disp( '( (_ )___/ )___/ | |_ / _ \ | \ ');
22+
disp( ' \__)(__) (__) |___||_/ \_||__)');
23+
disp( ' ');
24+
25+
splash = 'Thank you for using the CPP lap pipeline - version %s. ';
26+
fprintf(splash, version)
27+
fprintf('\n\n');
28+
29+
fprintf('Current list of contributors includes\n')
30+
for iCont = 1:numel(contributors)
31+
fprintf(' %s\n', contributors{iCont})
32+
end
33+
fprintf('\b\n\n')
34+
35+
fprintf('Please cite using the following DOI: \n %s\n\n', DOI_URL)
36+
37+
fprintf('For bug report, suggestions for improvements or contributions see our github repo: \n %s\n\n', repoURL)
38+
39+
40+
disp( '____________________________________________________________________________________________');
41+
disp( '____________________________________________________________________________________________');
42+
43+
fprintf('\n\n')
44+
45+
end

0 commit comments

Comments
 (0)