-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGiveMeDefaultParams.m
More file actions
40 lines (34 loc) · 2.02 KB
/
GiveMeDefaultParams.m
File metadata and controls
40 lines (34 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
function params = GiveMeDefaultParams()
%-------------------------------------------------------------------------------
% Parameters of the 2D/3D spatial coordinate grid:
%-------------------------------------------------------------------------------
params.resolution = 50; % number of points to split each dimension into
params.numDims = 3;
params.extentSim = 1/sqrt(params.numDims); % physical extent of the grid (square: linear dimension)
%-------------------------------------------------------------------------------
% Details of the expression maps to generate (what parameters of what generative model):
%-------------------------------------------------------------------------------
params.numGradients = 1861;
params.whatGradients = 'spatialLag'; % 'linear' 'poly', 'Gaussian', 'GaussianFixedScale', 'ExpDecaySingle'
params.ensembleParams = struct();
params.ensembleParams.rho = 0.4164; % relative strength of spatial autocorrelation (relative to noise)
params.ensembleParams.d0 = []; % spatial scale
% Normalization of each gradient:
params.normalizeHow = 'scaledSigmoid'; % 'zscore','mixedSigmoid','subtractMean'
%-------------------------------------------------------------------------------
% Spatial binning for plotting and analysis:
%-------------------------------------------------------------------------------
params.subsampleSpace = 1000; % only keep this many random points for spatial analysis
params.numBins = 20;
params.includeScatter = false;
%-------------------------------------------------------------------------------
% Time Variation:
% --A combination of isotropic spatial scaling, and 'zooming out'--
% spatialScalingFactor = [1,1.5,2,2.5,3]; % in absolute units relative to *original* grid (undistorted by scaling).
% spatialScalingFactors = [3.52,5.7,6.6,7.84,10.56,12.8,13.6];
% spatialScalingFactor = [1,1,1,1,1];
% For genes that scale--fraction of average distance
params.d0scalingFactor = 15.5798;
% This proportion of genes obey the d0 scaling factor, other genes stay put.
params.propGenesThatScale = 1;
end