Skip to content
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

line graph #1

Closed
zluo001pfr opened this issue Oct 6, 2022 · 9 comments
Closed

line graph #1

zluo001pfr opened this issue Oct 6, 2022 · 9 comments

Comments

@zluo001pfr
Copy link

Hi Dr Li,

I am trying to use your code for my RNA-seq data and I am up to the line graph part. I have a graph here but it looks a bit odd and seems the lines jumped between my tissues (bud2, 3, 6, 7). I am hoping you might have some suggestions about what I have done wrong.
000004

@cxli233
Copy link
Owner

cxli233 commented Oct 6, 2022

When this happens, usually it is because the replicates are not averaged, or not averaged properly. Can you make sure every gene only has 4 observations (bud2, 3, 6, 7)? If you have more than 1 observations per time point (?), it leads to "jumpy" time points. Please review the code chunk where you average to reps. Try removing library or sample name from the group_by() step.

@zluo001pfr
Copy link
Author

thanks for the super quick reply. I will check my code. thank you very much. while you are here, sorry. more questions.. i have plot the edge table but it looked different from yours. is this ok?
image

@cxli233
Copy link
Owner

cxli233 commented Oct 6, 2022

It seems all your genes are either positively correlated with each other, or anit-correlated with each other. How many genes did you put into the correlation? This is an indicator of not having enough genes correlation. I think this is fine... If you are getting results that make biological sense, I wouldn't be too worried about it.

@zluo001pfr
Copy link
Author

thanks again. I used the high var (top 40%) and high F (F>2.5) genes which are about 8600 genes from a dataset that has >30k genes.

@cxli233
Copy link
Owner

cxli233 commented Oct 6, 2022

That seems fine. I never seen patterns like this, but I think it should be okay.

@cxli233 cxli233 closed this as completed Oct 6, 2022
@zluo001pfr
Copy link
Author

cool, thanks

@zluo001pfr
Copy link
Author

When this happens, usually it is because the replicates are not averaged, or not averaged properly. Can you make sure every gene only has 4 observations (bud2, 3, 6, 7)? If you have more than 1 observations per time point (?), it leads to "jumpy" time points. Please review the code chunk where you average to reps. Try removing library or sample name from the group_by() step.

Hi Dr Li, me again. I should mention that I have 3 factors in this exp, position (x4, bud 2,3,6,7), timepoint (x2, 3h and 24h), and treatment (x2, high and low). so maybe that's why I have this issue. I group_by(gene, position, time_point, treatment). but i graph using just two factors.

@cxli233
Copy link
Owner

cxli233 commented Oct 6, 2022 via email

@zluo001pfr
Copy link
Author

thank you. fixed it. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants