-
Notifications
You must be signed in to change notification settings - Fork 22
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
Potential error in FindLR for datatype = 'DEG' ? #19
Comments
I got the error here |
XiaofeiSunUCSF, I've got the same problem. Can you please show detailed code of the solution? Thanks!!! |
Hi XinYu-pumch, Thank you for sharing your code! |
Hey dude!!!!! I finally sovled the problem!!!!!!!! The bug results from "order = paste(names(genes),genes)" in the function "chordDiagram". It's because the object "genes" doesn't contain the correct name of the data.frame the chordDiagram use. But it's easy to solve it just by simplely creating a new object of "genes". cell_group <- unique(c(data$cell_from, data$cell_to)) And in the function "chordDiagram", "circos.trackPlotRegion" and "highlight.sector", which are in the last three parts of the code of "LRplot" function in "iTALK", you can replase the corresponding parameters by the created object "genes_matrix" to get the correct circos plot. For detailed information, please view my codes: It seems that the link has sth wrong. |
Reply to dlmatera: deg_list=list() res<-NULL Then use the code in the "https://github.com/XinYu-pumch/bioinformatics/blob/master/seurat下游分析/iTALK-LRplot" |
This comment has been minimized.
This comment has been minimized.
Forget my last message. I figured it out finally. |
It's my pleasure that my code can help you. The plots will be totally different when you set different "order". We can discuss if you have other problems :) (But I cannot reply as soon as possible due to different time zones. It's Beijing time zone here and now I'm going to sleep ...... |
Have you tried "cell_col=" function? I just curious why the cell color disappeared(cell color, not gene color) after I assign colors to "cell_col=" ? |
Yes, I also realized the wrong arrow pointing to. |
I've found another way to get the circos plot with appropriate colors. |
Great! Thank you! |
Well, I think you have missed some items in your raw data.
The circosplot has many layers, in the inner of which lie the genes.
Because a receptor can match many ligands, and vice versa, we need
different kinds of colors to distinguish them.
However, there should be an layer outside the inner layer, which consists
of "L" and "R" with relevant colors. It's one of the primary steps to make
a circosplot. I think that's what you are referring to, yet it's not shown
in your pic. So I think there is sth missing in your raw table.
Can you send me a demo of your raw table if it's convenient? Perhaps I can
add some lines of codes.
Jack Zhang <notifications@github.com> 于2020年12月15日周二 上午8:59写道:
… @XinYu-pumch <https://github.com/XinYu-pumch> Hey dude, thanks U code for
us, however I find a new error.
[image: image]
<https://user-images.githubusercontent.com/51999214/102153976-5f11c400-3eb3-11eb-8952-a591af92fb6c.png>
As you can see, the genes come in many colors, but the correct setup is to
have two, one is ligand other is receptor.Due to my poor ability to read
code, I was unable to solve it, although it did not seem to be a big
problem. Thanks again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO354E5OSUNRQIWEESFV6ATSU2YIJANCNFSM4NA34ARA>
.
|
Cool package and useful LR pair database!
I can successfully use the FindLR function, etc. for count data but when I input a list of DEGs for various cell types the result is always returned as "No significant pairs found" - even though I can clearly see LR pairs in the data
Im just using the sample code with the following setup (data1 is seen above)
any advice?
The text was updated successfully, but these errors were encountered: