dpeerlab / Palantir

Single cell trajectory detection
https://palantir.readthedocs.io
GNU General Public License v2.0
213 stars 50 forks source link

Update access of neighbor distances from Anndata #41

Closed ManuSetty closed 4 years ago

ManuSetty commented 4 years ago

Need a fix for deprecation warning

 self.func_ir.loc))
/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/palantir/utils.py:43: FutureWarning: This location for 'distances' is deprecated. It has been moved to .obsp[distances], and will not be accesible here in a future version of anndata.
  kNN = temp.uns['neighbors']['distances']
ManuSetty commented 4 years ago

Fixed in a1b20c233bd7b441498ff1c85d6141f71a4fa968. Awaiting push to master