Skip to content

Commit

Permalink
Added version info to each file
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholst committed Apr 17, 2017
1 parent 2c7a676 commit 7655112
Show file tree
Hide file tree
Showing 32 changed files with 97 additions and 2 deletions.
3 changes: 3 additions & 0 deletions apace/ACEcode.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%
% Maps active (non-zero) ACE parameters to a integer code
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

Code = [1 2 3];
x = sum( Code(abs(ACE)>0) );
Expand Down
3 changes: 3 additions & 0 deletions apace/ACEfit.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
% null hypothesis, and thus the pivotal test statistic is recommendated in
% permutation test.
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

X = ACEfit_Par.X;
Y = ACEfit_Par.Y;
Expand Down
3 changes: 3 additions & 0 deletions apace/ACEfit_Boot.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%
% Bootstrapping.
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

nB = size(Boot_kin,1);
Boot_kin = triu(Boot_kin);
Expand Down
3 changes: 3 additions & 0 deletions apace/ACEfit_Boot_Parallel.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ function ACEfit_Boot_Parallel(ACEfit_Par,RunID)
%
% Parallel Computation.
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

nBt = ACEfit_Par.nBootPerRun;

Expand Down
3 changes: 3 additions & 0 deletions apace/ACEfit_Boot_Parallel_Results.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ function ACEfit_Boot_Parallel_Results(ACEfit_Par)
%
% Merge together results of RunID.
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

mean_A = zeros(ACEfit_Par.nBoot,1);
wh2_A = zeros(ACEfit_Par.nBoot,1);
Expand Down
3 changes: 3 additions & 0 deletions apace/ACEfit_Perm.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
%
% Perm_label - Permutation relabeling
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

X = ACEfit_Par.X;
Y = ACEfit_Par.Y;
Expand Down
3 changes: 3 additions & 0 deletions apace/ACEfit_Perm_Parallel.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ function ACEfit_Perm_Parallel(ACEfit_Par,RunID)
%
% Parallel Computing.
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

nPm = ACEfit_Par.nPermPerRun;

Expand Down
3 changes: 3 additions & 0 deletions apace/ACEfit_Perm_Parallel_Results.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ function ACEfit_Perm_Parallel_Results(ACEfit_Par)
%
% Merge together results of RunID.
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

mean_A = zeros(ACEfit_Par.nPerm,1);
wh2_A = zeros(ACEfit_Par.nPerm,1);
Expand Down
3 changes: 3 additions & 0 deletions apace/ACEfit_Results.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
function ACEfit_Results(ACEfit_Par,varargin)
% FORMAT ACEfit_Results(ACEfit_Par[,FWEalpha,FDRalpha])
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

if nargin>=2
FWEalpha = varargin{1};
Expand Down
3 changes: 3 additions & 0 deletions apace/APACEsummary.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
%
% [Ests,CIs,Ps,Names] = APACEsummary(ACEfit_Par) - Also return values
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

if nargin<=1
StdOut = 1;
Expand Down
3 changes: 3 additions & 0 deletions apace/AgHe_Method.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ function AgHe_Method(ACEfit_Par,varargin)
% for permutation & bootstrap
% AgHe_Method(ACEfit_Par,'_Norm',Palpha,Balpha) - Save results with the suffix,
% also set Perm & Bootstrap alpha
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

if size(ACEfit_Par.Y,1)==1
error('Aggregate heritability is designed for multiple phenotypes!')
Expand Down
3 changes: 3 additions & 0 deletions apace/Boot_CIs.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ function Boot_CIs(ACEfit_Par,varargin)
%
% Generate Bootstrap CIs.
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

if nargin>=2
Balpha = varargin{1};
Expand Down
3 changes: 3 additions & 0 deletions apace/Bootstrap_CI.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
% ST - bootstrap estimates and the original estimate
% alpha - level
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

% 1-alpha/2 quantile of the standard normal distribution
ST_alpha = spm_invNcdf(1-alpha/2);
Expand Down
4 changes: 4 additions & 0 deletions apace/CheckCIFTIfun.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

function OK = CheckCIFTIfun(WBC)
global CIFTI_OK
if ~isempty(CIFTI_OK)
Expand Down
3 changes: 3 additions & 0 deletions apace/CheckData.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
% LoadData.m).
% Vs.ImMks - Information on mask data.
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

%
% Fill-in defaults
Expand Down
3 changes: 3 additions & 0 deletions apace/CreateBoot.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
% nG3 - number of subjects or subject pairs or families in group 3
% nBoot - number of bootstrapping replicates
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

% Derive seed from time
rng('shuffle');
Expand Down
4 changes: 4 additions & 0 deletions apace/CreatePerm.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
% nG2 - number of subjects or subject pairs in group 2
% nPerm - number of permutations
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

if nPerm>mynchoosek(nG1+nG2,nG1)
error('Too many permutations requested! Please set %d or a smaller number for ''nPerm''!',mynchoosek(nG1+nG2,nG1))
end
Expand Down
3 changes: 3 additions & 0 deletions apace/Dims.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
% NIFTI header.
% For CIFTI, input can be an cell array, and then a matrix with 7 columns is
% returned with the cooresponding dimensional information.
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

if isa(X,'nifti')
if length(X)==1
Expand Down
3 changes: 3 additions & 0 deletions apace/FileFormats.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version: http://github.com/nicholst/APACE/tree/$Format:%h$
$Format:%ci$

Input files for APACE can be specified in one of 4 general formats:

1. String, the name of a text file of filepaths to nifti OR cifti
Expand Down
3 changes: 3 additions & 0 deletions apace/FileType.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
% by a Analyze image.
%
% For convenience, if a numeric variable is passed, it is classified as "MATRIX"
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

Type = 'UNKOWN';
CIFTIext = '';
Expand Down
3 changes: 3 additions & 0 deletions apace/LRSD_ACE_VEC.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
% hh - Variance parameter estimate
% hh* - The parameter estimates of the possible models [E AE CE ACE]
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

[nElm,n] = size(Res);
nMZSD = size(I_MZ,1);
Expand Down
3 changes: 3 additions & 0 deletions apace/LoadData.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%
% Loads the data (actually, mostly already loaded)
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

switch Vs.FileType

Expand Down
3 changes: 3 additions & 0 deletions apace/Mk_ZTZpinv.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
% 4*nOTW 4*nOTW 4*nOTW
% 2*(nDZSD+nSibSD)+4*nOTW 4*nOTW 2*(n^2-n) ];
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

pinvZTZ = cell(4,1);

Expand Down
3 changes: 3 additions & 0 deletions apace/Ndim.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
function nd = Ndim(X)
% Generic support function
% Returns the number of non-trivial dimensions
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

if isa(X,'nifti')
nd = zeros(length(X),1);
Expand Down
3 changes: 3 additions & 0 deletions apace/PrepData.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%
% Updata 'ACEfit_Par' with the input data information
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

% Start of "ACEfit" computations; shuffle into expected order.
ACEfit_Par = Reorder(ACEfit_Par);
Expand Down
3 changes: 3 additions & 0 deletions apace/PrepParallel.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ function PrepParallel(ACEfit_Par)
%
% Update the input structure array 'ACEfit_Par' for parallelization
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

if ( ~isfield(ACEfit_Par,'nPerm') || isempty(ACEfit_Par.nPerm) )
ACEfit_Par.nPerm = 1000;
Expand Down
3 changes: 3 additions & 0 deletions apace/ProcData.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%
% Process data for further computation
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

nElm = size(Y,1);

Expand Down
3 changes: 3 additions & 0 deletions apace/Reorder.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
% 2 - DZ twins
% 3 - Siblings
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

%
% Fill-in defaults
Expand Down
3 changes: 3 additions & 0 deletions apace/WK_ParallelOutline.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
%
% Preparation
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

% % Uncomment this to hide figures (for the rest of your Matlab session!).
% % This is useful if you don't want to see the large number of figure
Expand Down
3 changes: 3 additions & 0 deletions apace/WriteData.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ function WriteData(X,Vs,fname,fpath)
%
% Write data, based on template image
%
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

if length(Vs.Dim)==1
Dim = [Vs.Dim 1];
Expand Down
4 changes: 3 additions & 1 deletion apace/abline.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
% Like Splus' abline. Line is plotted and then moved behind all other
% points on the graph.
%
% $Id: abline.m,v 1.1 2013/06/04 10:38:11 nichols Exp $
%_______________________________________________________________________
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

if (nargin==2) & isstr(a)
a = lower(a);
Expand Down
3 changes: 2 additions & 1 deletion apace/clone_vol.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
% Clones a volume, while discarding any information we don't want to
% clone.
%_______________________________________________________________________
% $Id$
% Version: http://github.com/nicholst/APACE/tree/$Format:%h$
% $Format:%ci$

if iscell(Vtemplate)
V = Vtemplate{1};
Expand Down

0 comments on commit 7655112

Please sign in to comment.