-
Notifications
You must be signed in to change notification settings - Fork 54
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
Codes to generate tables that summarise clonal expansion and sharing for a metadata column in Seurat object #427
Comments
Hey Quang, Thanks for reaching out - based on my understanding of your needs - you'll have to manually summarize the meta data. But I would use the This could be a straight forward dplyr Good luck and hope that helps, |
Thanks Nick! Always very prompt and helpful. With your pointers, I wrote these 2 rough functions. Not the best, but hope they are helpful to others who prefer numerical summaries. They generate tables that summarize the numerical values of clonal expansion and sharing between clusters (with specification of the clone sequences) taking the input after attaching TCR info from For anyone interested and crazy about knowing exactly the numbers, check out https://github.com/denvercal1234GitHub/TCRClone_NumericalSummary AIMSTo be able to generate tables that summarize the numerical values of clonal expansion and sharing after performing TCR clonal analysis using scRepertoire or other packages on the Seurat object. PREPARE INPUT FROM SEURAT OBJECT WITH TCR ASSIGNMENTFor 2 aims (assess TCR clonal expansion and clonal sharing numerically), it starts with a Seurat object after
AIM 1: SUMMARIZE CLONAL EXPANSION FOR EACH CLUSTER
If wanting only the counts
If wanting both the county and sequences of the expanded clones
AIM 2. SUMMARIZE WHICH CLONES FROM WHICH CLUSTERS SHARED WITH WHICH OTHER CLUSTERS AND WHICH CLONES NOT SHARED WITH ANY CLUSTERS
To report how many clones that are unique (not shared with anyone) from a cluster, e.g., T1, and their clone sequences
***To report how many clone(s) that are shared from this cluster with any other clusters, the sequences of the clone(s), and occurrence of that clone in the "receiving" cluster ***
|
@denvercal1234GitHub a bit of a shameless plug but I recommend you to check out the APackOfTheClones package which does some of what you ask for in its exported utilities. |
Hi, Nick,
I hope all is well.
I am revisiting some old data with
scRepertoire
and unfortunately could not find a robust way to get a table of both the number of clones that shared between different cluster ID and the sequence of these clones in my Seurat object that has the clone info.Previously, I had used
clonalNetwork()
exportTable
, which gave me the cluster IDs that have any clone shared, but it does not give the number of the clones that are shared (only theweight
, which only allows me to rank how much sharing but then I cannot tell how many of clones shared in that weight coming from unique clone versus duplicated).When, I used
clonalNetwork()
exportClone
together withfilter.identity
, it give me the sequence of the clones shared from that cluster identity, but then I have no way to know which sequence belong to which cluster ID that this identity shares with. lol.Do you recommend just summarise manually from the Seurat meta.data?
Thank you for your help!
The text was updated successfully, but these errors were encountered: