-
Notifications
You must be signed in to change notification settings - Fork 55
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
Help understanding getcirclize #239
Comments
Hey Megan, Thanks for reaching out! I'm on a phone right now, so please check code - apologies! I think the origin of the confusion is that Using your code to highlight expanded clones:
The better comparison is looking at the individual clone numbers and not cell numbers, something like:
Does that make sense? I might need to modify the manual to make that more apparent. Let me know if you have any other questions or suggestions. Thanks, |
Hi Nick, Thanks for getting back so quickly. Let's see if I get your explanation right. Sorry, please bear with me. So using my example, in dataset Now, in the Does this imply that that clone is a singleton, but if it is, how can it be shared between two cells? Sorry if i should have caught on with your previous explanation but I still have some trouble understanding this. Thanks so much for your help! |
Hey Megan, Do not worry this is the probably the most confusing of the graphs in scRepertoire (in my opinion). I think where major confusion comes in is the difference in shuffling of clones. Clone Shuffling Steps:
The filtering step may be removing clones that are not in the same classification of cloneType() based on the Let me know and happy to work on troubleshooting. Thanks, |
I am closing this for now - please let me know if you have any additional questions or suggestions. |
Hey Nick, this is something that is probably discussed elsewhere but I was wondering: since the circle plot shows the actual number of clonotypes, I was expecting that when you plot it with proportion=TRUE, the frequencies of the clones would be plotted. However in some clusters, I see that the circle goes from 0 to 1.4 for example and not just up to 1. Is there something I am missing in the calculation here? and how one interpret these plots? |
Thank you for bringing up this issue! The values exceeding 1 when I just pushed the fix into the dev branch and will get things tested (I need to update unit tests as well). Nick |
Hi, thanks for this wonderful tool! So I've been trying to use getCirclize to show how clonal TCR pairs are related across my clusters. But I have trouble understanding how are they summarising this in the dataframe output.
So this is the number of clones I have, categorized into either singletons (single), small expanded (1<clone<==5), and medium (5<clone<=20).
table(meta$cloneType2)
If I run getcirclize onto the entire dataset, using something like:
circles <- getCirclize(Map.sct, group.by = "celltype")
This is my dataframe output:
Now, I only want to plot the clonotype relationship between actual sister clones, ie ignoring all the singletons and only looking at clones that actually expanded. So I made a subset using clonetype, using:
Map.sct2 <- subset(Map.sct, subset = cloneType2 %in% c("Small", "Medium"))
What I don't get is why don't the numbers add up when I re-run circlize on this subset of data?
circles2 <- getCirclize(Map.sct2, group.by = "celltype")
output:
So take for example, in the full dataset, there is 1 clonotype shared between
PD1n
andTfh1
(row no.5 ofcircles
andcircles2
). Why is this shared clonotype gone in my subset of data where only expanded clones are present? If this shared clonotype is part of those that are singletons, how can it be shared?Am I understanding this function wrongly? Thanks a lot for your help!
The text was updated successfully, but these errors were encountered: