-
Notifications
You must be signed in to change notification settings - Fork 16
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
Can we order the top N genes within degplot #33
Comments
Hi! thank you for the comment. Sadly there is no way right now, but I can make a quick change on Monday to allow this. Thank you for the idea! |
@klai001, you may want to try this new version, it may do what you expect. You will need to install with |
I forgot to say, that you would need to get the gene names first and sort them in the order that you wish, and then use the |
Hi Lorena Plot 2-after adding in the genes= parameter var_genes <- apply(normcounts, 1, var) select_var <- names(sort(var_genes, decreasing=TRUE))[1:50] c2<-degPlot(dds=normcounts, n=50, xs = "group",group="group",groupLab = "sampletype",ann = c("gene_id","symbol"),color="Accent",genes=select_var) |
Hi, I cannot see the plots. But you are not going to get the same genes with this two commands. The first plot the top significant genes according to p-adj value. And the other just the top variable, that is not the same. There is something odd in the first command, did you forget to put here Anyway, these two commands won't give you the same results. In the first command the top significant genes are expressed, in the other the top variable. That is not the same. If you could same me a reproducible code, I could try to give more tips. o, with This will plot with -adj and FC:
I hope this helps. |
Hi Lorena
I noticed that DEGplot() orders the top N genes alphabetically.
I was wondering if there's an argument I can call upon to order the gene plots of N (e.g. top 20) according to the degree of variation it has instead of alphabetical order of the gene names
The text was updated successfully, but these errors were encountered: