klarman-cell-observatory / scplot Goto Github PK
View Code? Open in Web Editor NEWSingle cell interactive plotting tools
License: BSD 3-Clause "New" or "Revised" License
Single cell interactive plotting tools
License: BSD 3-Clause "New" or "Revised" License
Adapt scvelo plot
to show animated transitions, similar to http://hint.fm/wind/
Categorical types get mixed up in violin plots. It's also visible in the notebook:
It doesn't happen in composition plots. I suspect it's because violin calls __fix_color_by_data_type
and composition does not. Conversion to string in __fix_color_by_data_type
might lead to the mixing.
This is also related to the PR #3 . I think if you outsource color assignment to scanpy, everything will be easier and cleaner on the scplot side.
This would be super cool. I saw that it's missing in hvplot (holoviz/hvplot#225) but how about using plotly for this? I know it wouldn't be visually consistent with bokeh but better than nothing, no?
import chart_studio.plotly as py
import plotly.express as px
import scanpy as sc
import pandas as pd
adata = sc.datasets.paul15()
sc.pp.normalize_total(adata, target_sum=10000)
sc.pp.log1p(adata)
sc.pp.neighbors(adata)
sc.tl.umap(adata, n_components=3)
df = pd.DataFrame(adata.obsm['X_umap'], columns=['x', 'y', 'z'])
df['gene'] = adata[:, 'Gata1'].X
fig = px.scatter_3d(df, x='x', y='y', z='z', color='gene', width=1600, height=1000)
py.iplot(fig) # more options here https://plot.ly/python/3d-scatter-plots/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.