Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:KrishnaswamyLab/PHATE into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Jun 8, 2018
2 parents 571a842 + 7a4ecd0 commit 25f5953
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ Python/doc/build/

# Mac
.DS_Store

# Matlab
*.m~
14 changes: 7 additions & 7 deletions Matlab/phate.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
% e.g. 10 or 15. Defaults to 5.
%
% 'a' - alpha of alpha decaying kernel. when a=[] knn (unweighted) kernel
% is used. Defaults to 10.
% is used. Defaults to 15.
%
% 't' - number of diffusion steps. Defaults to [] wich autmatically picks
% the optimal t.
Expand Down Expand Up @@ -50,16 +50,16 @@
% 'sqrt' - sqrt(P). (not default but often produces superior
% embeddings)
%
% 'gamma' - 2/(1-\gamma)*P^((1-\gamma)/2) (default, with gamma=1)
% 'gamma' - 2/(1-\gamma)*P^((1-\gamma)/2)
%
% 'gamma' - gamma value for gamma potential method. Value between -1 and
% 1. -1 is diffusion distance. 1 is log potential. 0 is sqrt. Smaller
% gamma is a more locally sensitive embedding whereas larger gamma is a
% more globally sensitive embedding. Defaults to 1.
% more globally sensitive embedding. Defaults to 0.5.
%
% 'pot_eps' - epsilon value added to diffusion operator prior to
% computing potential. Only used for 'pot_method' is 'log', i.e.:
% -log(P + pot_eps). Defaults to 1e-3.
% -log(P + pot_eps). Defaults to 1e-7.
%
% 'n_landmarks' - number of landmarks for fast and scalable PHATE. [] or
% n_landmarks = npoints does no landmarking, which is slower. More
Expand All @@ -83,13 +83,13 @@
mds_method = 'mmds';
distfun = 'euclidean';
distfun_mds = 'euclidean';
pot_method = 'gamma';
pot_method = 'log';
K = [];
a = 10;
a = 15;
Pnm = [];
t_max = 100;
pot_eps = 1e-7;
gamma = 1;
gamma = 0.5;

% get input parameters
for i=1:length(varargin)
Expand Down
3 changes: 1 addition & 2 deletions Matlab/run_phate_EB.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
ylabel(h, 'time');

%% PHATE 2D
%Y_PHATE_2D = phate(data, 't', 20, 'pot_method', 'log', 'pot_eps', 1e-7);
Y_PHATE_2D = phate(data, 't', 20);

%% plot PHATE 2D
Expand All @@ -50,7 +49,7 @@
ylabel(h, 'time');

%% PHATE 3D
Y_PHATE_3D = phate(data, 't', 18);
Y_PHATE_3D = phate(data, 't', 20, 'ndim', 3);

%% plot PHATE 3D
figure;
Expand Down

0 comments on commit 25f5953

Please sign in to comment.