Comments (4)
I just realized scirpy has used plt.subplot to draw abundance bar plot.
So reusing plt.subplot may not work.
But how could I merge several plot objects from scirpy?
from scirpy.
Other observation while I using ir.pl.group_abundance
is that legend will be resorted by single pair cell number.
ir.pl.group_abundance(adata, groupby='chain_pairing', target_col='seurat_clusters', normalize=True, sort
= 'count')
You can see seurat_clusters {0...8} are reordered by chain_pairing value.
But what if one want to keep original catgeories? For this reason, to bring an order parametre could make it more friendly.
from scirpy.
Hi @UboCA,
thanks for reporting this issue. Actually, I'm a bit surprised that this hasn't surfaced earlier.
With the fix in #379, you should be able to do
adata = ir.datasets.wu2020_3k()
fig, (ax1, ax2) = plt.subplots(1,2, figsize=(12, 4), gridspec_kw={"wspace": 1})
ir.pl.group_abundance(adata, groupby='cluster_orig', target_col='patient',ax=ax1)
ir.pl.group_abundance(adata, groupby='cluster_orig', target_col='source',ax=ax2)
Could you give it a try? You can install the development version using
pip install git+https://github.com/scverse/scirpy@master
Regarding your second suggestion, there's a long-outstanding issue for that: #186
It should be an easy fix and I'm happy to take a PR. Otherwise I'll look into this once the mega PR #356 is complete.
from scirpy.
Got it, many thanks.
Best
from scirpy.
Related Issues (20)
- If integer field is None, writing AIRR files fails HOT 1
- tl.define_clonotypes within_group parameter returns ValueError HOT 1
- Integrate TCRdist3 HOT 5
- Retrieving specific portions of the Immune Receptor beyond the junction (or CDR3). HOT 2
- ir_dist alignment stuck HOT 4
- IEDB database cdr3_aa stored as junction_aa HOT 10
- Unclear default value for the Hamming Distance cut-off HOT 1
- Dandelion interoperability
- Where has UMI count for AIR chains gone? HOT 1
- Large dataset tutorial HOT 1
- Make sure axes of nextwork plots don't have any ticks
- Add the Morisita-Horn index for repertoire overlap similarity scores HOT 1
- Sorting logic in `index_chains()` HOT 3
- Community tutorial page
- ir.tl.ir_query fails with error 'ValueError: max_workers must be greater than 0' HOT 1
- ir.tl.clonotype_modularity - ValueError: Length of values does not match length of index HOT 2
- "read_10x_vdj" not loading data properly HOT 2
- clone definition purely using CDR3 sequence HOT 2
- Optimize TCRdist metric HOT 1
- When running 'ir.tl.define_clonotypes' on MacOS14.4.1, I've got an Error:module 'os' has no attribute 'sched_getaffinity' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scirpy.