forked from kdharris101/iss
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathiss_OMP_ConstantBackground_WeightDotProduct.m
57 lines (49 loc) · 2.36 KB
/
iss_OMP_ConstantBackground_WeightDotProduct.m
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%% iss: code for processing of in situ sequencing
% Kenneth D. Harris and Xiaoyan Qian
% GPL 3.0 https://www.gnu.org/licenses/gpl-3.0.en.html
%
% to use:
% o = iss_OMP; % create structure, default parameters
% % change any parameters you want, and set o.FileN
% o = o.extract_and_filter; % create top-hat filtered tiffs for each tile
% o = o.find_spots; % find spot positions in global coordinates
% o = o.call_spots; % allocate each spot to a gene
% o = o.call_cells; % identify cells
%
% this current file iss.m just contains default parameter values
classdef iss_OMP_ConstantBackground_WeightDotProduct < iss_OMP
properties
%To stop blow up when using weights.
ompWeightShift = 0.01;
%1.0 means each round treated equally, The lower the value,
%the greater the influence of the round with the largest residual.
ompWeightPower = 0.9;
%Need to normalise bled codes so rounds where gene efficiencies low
%don't contribute when working out which gene to add next.
%Rounds With GeneEfficiencies less than ompNormBledCodeShift won't
%contribute very much.
%ompNormBledCodeScale determines the sharpness of the drop off in
%influence i.e. larger value means low gene efficiency rounds
%contribute less.
ompNormBledCodeShift = 0.5;
ompNormBledCodeScale = 7;
ompNormBledCodeUnbledBoost = 1;
%ompGetCoefMethod = 1 means get_omp_coefs is used.
%ompGetCoefMethod = 2 means get_omp_coefs2 is used.
ompGetCoefMethod = 1;
%If ompGetCoefMethod = 2:
%For a particular gene, if after the first gene has been added to every pixel,
%there are a group of ompIntenseClusterNo pixels, each with
%Coef>ompIntenseCoefThresh and are closer than ompIntenseClusterDist
%to each other then all pixels closer than ompIntenseDistThresh
%will also be assigned this gene.
ompIntenseCoefThresh = 0.3;
ompIntenseClusterNo = 3;
ompIntenseClusterDist = 2;
ompIntenseDistThresh = 8;
%For quality thresholding, NeighbNonZeros =
%o.ompNeighbNonZeros(:,1)*ompNearPosNeighbMultiplier + o.ompNeighbNonZeros(:,2)
%I.e. central positive pixels contribute more.
ompNeighbNearPosNeighbMultiplier = 2;
end
end