Releases: KrishnaswamyLab/PHATE
PHATE v0.3.0
Changeset:
- add
cluster
submodule- adds
cluster.kmeans
function to perform KMeans on the diffusion potential
- adds
- add
dpi
argument toplot.rotate_scatter3d
PHATE v0.2.10
Changeset:
- phate.plot.scatter now accepts a list of matplotlib colors
- phate.plot.scatter now returns the axis on which the plot was drawn
- minor logging changes
PHATE v0.2.9
Changes:
- Use
tasklogger
for logging; fixes issues with Windows 7 verbose output - Use
scprep
in tutorials for simpler analysis - Change default value of alpha to 40 for faster computation of kernel
phate.plot.scatter
now takes keyword argumentsx
,y
andz
rather than a list-likephate.plot.scatter
has keyword arguments for axis label prefixlabel_prefix
(as an alternative to labelling axes individually), plot titletitle
, and legend locationlegend_loc
- minor bugfixes
PHATE v0.2.8
PHATE v0.2.8 adds plotting utilities:
phate.plot.scatter2d
: 2D scatterplotphate.plot.scatter3d
: 3D scatterplotphate.plot.rotate_scatter3d
: rotating 3D scatterplot (gif or mp4)
All plotting functions accept either data or a PHATE object as input. The color vector c
can be continuous or categorical, and need not be numeric. Legends / colorbars are generated with randomized point order on the canvas.
Sparse fast alpha and gamma informational distances
PHATE now implements a sparse, fast alpha decay kernel which has minimal memory requirements, compared to the old alpha decay which required a parwise distance matrix. Alpha decay now runs by default. In order to use the k nearest neighbors kernel, run with a=None
.
Other notable changes:
graphtools
implementation of kernel matricesgamma
replacespotential_method
for the selection of informational distances.gamma=1
is equivalent to a log potential (default) andgamma=0
is equivalent to a square root potential- arguments
alpha_decay
andpotential_method
are deprecated. - PHATE is now implemented as a visualization method in Scanpy: https://scanpy.readthedocs.io/
Accept affinity and distance matrices
The Python version of PHATE now accepts both distance matrices and affinity matrices with the keyword knn_dist='precomputed'
.
We assume distance matrices have only zeroes along the diagonal, and affinity matrices have no zeroes on the diagonal.
Introduce scanpy support
PHATE now accepts scanpy's native AnnData format
PHATE 2.0 (Fast scalable PHATE)
Version 2.0 implements fast scalable PHATE in Python (2.7, >=3.5), MATLAB and R.
PHATE now runs in seconds to minutes on tens of thousands of cells. Benchmarking shows runtime of ~3 hours on >1,000,000 cells.
Key changes:
- t is automatically chosen using Von Neumann Entropy using t='auto' by default.
- n_landmark determines the number of landmarks to use for scalable PHATE. n_landmark=None ([] on MATLAB, NA in R) specifies exact PHATE.
- default parameters have changed: k=15, a=10 but is ignored if n_cells>=n_landmark.