-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
group.by in DotPlot seems not working #158
Comments
Hi Jason, Thanks for kind words and detailed issue report!! You are correct In terms of You can check that out in the "develop" branch and hopefully full release on CRAN in next few days. Once the CRAN release goes through I'll work on the Best, |
Hi Jason, The fix for this is now live in develop branch v2.1.0 and will be part of version 2.1.0 official release (hopefully approved later this week. If you have any issues after updating to develop branch or after official release please let me know and I'll reopen the issue here. Thanks! |
Hi Sam @samuel-marsh , Thank you so much for the bug fix! It seems that now the option # scCustomize version 2.1.1
DotPlot_scCustom(
seurat_object = ifnb,
features = c("HBB", "HBA1", "CD3D", "S100A9"),
group.by = "seurat_clusters_stim",
)
I've also tried to However,
This line of code would return an error message DotPlot_scCustom(
seurat_object = ifnb,
features = c("HBB", "HBA1", "CD3D", "S100A9"),
group.by = c("seurat_clusters", "stim"),
)
# Error in !is.null(x = group.by) && group.by != "ident" :
# 'length = 2' in coercion to 'logical(1)' I suggest either an example to generate an additional column (in the Best, |
Hi Sam @samuel-marsh, Sorry for the additional message but I'm just wondering if you have checked my follow-up post because this issue has already been set to Closed. In brief, in the current version, it seems that the Thanks so much in advance. Best, |
Hi @jasonleongbio, I did see the original message but had not yet had time to respond (one person team here). After looking at it more closely you are right and the documentation is indeed wrong and I have just updated that in the develop branch (v2.1.2.9003). If you do indeed want to plot two meta data variables you can use Best, |
Hi Sam @samuel-marsh, Thanks so much for the update! I have to apologize as I didn't mean to urge you on the issue, but I was just worried whether the message reached your mailbox or not because the issue has been set to Closed. I do agree that the Best, |
Thank you for developing such a great tool and I really enjoy using
scCustomize
a lot.I was trying to reproduce a "(multi-sample) data integration" example using SeuratV5 (and visualize the results using scCustomize).
I was basically following the tutorial by the Seurat team.
However, when I tried to visualize several selected differentially expressed genes in the control vs stimulated conditions, the
DotPlot_scCustom
function seems not to be able to show the two conditions separately, although the documentation says it can accept agroup.by
option.Then, I tried to visualize the expression levels and percentage of expression of given genes using
DotPlot_scCustom()
.This is just fine, and it will simply show a DotPlot of these selected genes in each identified cluster.
![cluster_16_test_1](https://private-user-images.githubusercontent.com/39048321/305919705-23a6e30a-08b7-4fb3-b069-c28adc356f60.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MzIzNzAsIm5iZiI6MTcyMTkzMjA3MCwicGF0aCI6Ii8zOTA0ODMyMS8zMDU5MTk3MDUtMjNhNmUzMGEtMDhiNy00ZmIzLWIwNjktYzI4YWRjMzU2ZjYwLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDE4Mjc1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThhNzU5MWI3NTE5YjBmMGY3OGRmZjQxYjM3ZWEyMWZmYzk1NTc1ZGNiZmU4ZDE4NjYyNWQxZDc0NDYzOTJjOTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0yf4EOTixJrdit74_y9OHUQn3n0z0TPFkowSULKCG5E)
However, when I tried to visualize this for each condition separately, just like how the Seurat package does, it gave me the very same plot. I expected the y-axis now became "1_CTRL", "1_STIM", "2_CTRL", "2_STIM", etc., but what was shown instead were still 1, 2, 3, etc.
In addition, I also tried with the option
split.by
, but it didn't work either.I also tried to create a new column in the metadata that combines the cluster identity and the ctrl/stim conditions by the following code, and tried to set
group.by
to this newly created column. However, it didn't work either.Therefore, these indicate the
group.by
orsplit.by
options seem not to be working as expected.However, surprisingly, the
Clustered_DotPlot()
function is fine.I'm pleased to provide further information if needed.
Thank you so much in advance!
Jason.
sessionInfo() output
The text was updated successfully, but these errors were encountered: