Network generation #110
Replies: 13 comments
-
Hi Sara,
B cell clone/clonotype network As this is reliant on
|
Beta Was this translation helpful? Give feedback.
-
Thanks Kelvin. So I did the clustering and I want to know how each value is assigned to each part of the clone_id. 11_10_4_47 My question is how 11 is calculated? And for other parts of the clone_id? How the numbers are calculated? Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi Sara, this is already described in detail in the documentation/tutorial: https://sc-dandelion.readthedocs.io/en/latest/notebooks/3_dandelion_findingclones-10x_data.html |
Beta Was this translation helpful? Give feedback.
-
Hi Kelvin. I already rad all the tutorial. But it is not clear for me if a clone_id is: 11_10_4_47; |
Beta Was this translation helpful? Give feedback.
-
In other words, how I should interpret the "11"? or other sub_ids? |
Beta Was this translation helpful? Give feedback.
-
It’s just a random number - you don’t have to overinterpret it. Just know that if a cell/contig has 11, it means it’s shares the same sub-id as other contigs that have 11. |
Beta Was this translation helpful? Give feedback.
-
O, okay. That was good to know. Thank you so much. |
Beta Was this translation helpful? Give feedback.
-
Kelvin, Thank you again. I have two other questions after reading the tutorial, and other references you provided: Is this correct? 2- Also, in the visualization of the network we could see that each node is probably representing more than a cell. Is there any way that we make the node size larger according to the number of cell it is including? Thank you so much. Sara |
Beta Was this translation helpful? Give feedback.
-
Hi Sara, the networks are constructed only within each clone/cluster, hence there’s no intercluster edges. The construction of the edges is as described above: the only time you would see edges between ‘1_1_1_1’ and ‘1_2_1_2’ is if a cell contains more than one pair of contigs i.e. the cell’s clone_id is ‘1_1_1_1 | 1_2_1_2’ because there’s two possible combinations. hence, to partly answer your 2nd question, each node is a cell, and not a contig. There’s no immediate plans to construct a version of the plot that you described but it’s potentially through scirpy. However, there’s a couple of things i will need to implement for it to work properly. See scverse/scirpy#286 |
Beta Was this translation helpful? Give feedback.
-
Thank you Kelvin.
Related to my first question: in the network generated by dandelion, I
could see part of the network that there is no clone_id for some of the
nodes. How is this possible?
I am confused actually.
I actually don't know how the nodes and edges are connected, when there is
no clone_id for them.
Thanks,
Sara
…On Thu, Oct 14, 2021 at 12:15 PM Kelvin ***@***.***> wrote:
Hi Sara,
the networks are constructed only within each clone/cluster, hence there’s
no intercluster edges.
This is controlled by the ‘clone_id’ column - so for example, a single
network will be constructed between cells that are tagged as clone
‘1_1_1_1’ and a separate network is constructed for clone ‘1_2_1_2’.
The construction of the edges is as described above:
A) for a given clone, a minimum spanning tree is constructed and only
these edges are kept.
B) if two bcrs have 100% identity, then there would be additional edges
that are added to the network. The 85% similarity is only for clone
definition.
the only time you would see edges between ‘1_1_1_1’ and ‘1_2_1_2’ is if a
cell contains more than one pair of contigs i.e. the cell’s clone_id is
‘1_1_1_1 | 1_2_1_2’ because there’s two possible combinations.
hence, to partly answer your 2nd question, each node is a cell, and not a
contig. There’s no immediate plans to construct a version of the plot that
you described but it’s potentially through scirpy. However, there’s a
couple of things i will need to implement for it to work properly. See
scverse/scirpy#286 <scverse/scirpy#286>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVVJONU5B3PFZLAR7DIOMYLUG36YTANCNFSM5FL7PPBQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Can you show me what the plot looks like, and dataframe? It’s difficult for me to imagine how that is possible unless they have the same clone id |
Beta Was this translation helpful? Give feedback.
-
Thanks Kelvin.
Unfortunately, the data is confidential and I can not share. But I think I
can ask my question in different way:
When I read the dandelion object " dandelion_results.h5"
I get the below keys:
['/data', '/edges', '/metadata', '/metadata/meta/values_block_0/meta',
'/graph/graph_0', '/graph/graph_1', '/distance/VDJ_1',
'/distance/VDJ_2', '/distance/VJ_1', '/distance/VJ_2']
When I read:
f = pd.read_hdf('/Users/saramoein/Documents/BCR/dandelion_results.h5',
key='/edges')
Is it true that I claim the f.edges defines the network edges?
Thanks again Kelvin.
…On Thu, Oct 14, 2021 at 2:05 PM Kelvin ***@***.***> wrote:
Can you show me what the plot looks like, and dataframe? It’s difficult
for me to imagine how that is possible unless they have the same clone id
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVVJONQWWRZ3QCM3KZC3K6DUG4LXFANCNFSM5FL7PPBQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Sure. you can also inspect it in: vdj = ddl.read_h5('dandelion_results.h5'
vdj.edges As i'm unable to see what's wrong with your plot/data and you can not provide me with the requisite info that i asked for, i will close this issue now. |
Beta Was this translation helpful? Give feedback.
-
Hi Kelvin,
I have 2 question about the way the network is generated:
1- how connections between different cells is generated? Because for some of the cells we don't have data, but still I see that there is connection between them. Is there any way of replacement in the cells based on the colon id? If not how the connections are made?
2- Also, I wanted to ask is there any way to know which node was the start of the mutation? Is there any way to know about the roots?
Thanks,
Sara
Beta Was this translation helpful? Give feedback.
All reactions