@Zev.Kronenberg
I tried using the function but ran into following error (the last line). Is it something that I'm doing wrong?
plots<-plot.admixture("/my/directory/admixture_linux-1.3.0/")
Loading required package: reshape2
Loading required package: grid
Loading required package: ggplot2
Find out what's changed in ggplot2 at
http://github.com/hadley/ggplot2/releases.
Loading required package: plyr
Loading required package: RColorBrewer
Error in file(file, "rt") : invalid 'description' argument
The key to generating the canonical admixture plots in R is to used a stacked barplot with the coancestry coefficients. Is this what you're doing? It's not clear.
This is the plot from myfile.5.Q using R. I try to find what does mean each color (ancestry population probably? and if it is the case, which population?).
Here is the way I did it:
Hi, so the thing that I try to do with plink, admixture, and R is to find the ancestry(ies) of some populations in my genomic data.
I just got the proportions for each individual with ADMIXTURE and I ploted these files in R using K=2 to K=5. After that, the plot that I got are with different colors depending on K value, so the first one is with 2 colors and the last one is with 5 colors. the question is now, how can I Know the meaning of each color in each individual proportion?
Thank you so much.
Dear Dirrank,
did you find the answer to your question?, because I'm in the same situation.
Thank you.
Dear edison.vazquez, you can try to use a new R packege called BITE. We have implemented 2 different functions to plot Admixture results.
Hello, did you find something?
Thank you.
Hi Zev,
Thank you for your code. The function plot.admixture is unable to save as a function in the R environment after running the loop.
Therefore when I attempt to plot the results or save the results as you describe here:
the function plot.admixture is not saved in my environment. This partly may be to the fact I modified the code here:
Because I was getting this error in the loop
Would you be able to help or provide guidance as to what the issue is?
apologies I meant to add this as a comment not an answer. Can this kindly be deleted as an answer my apologies.
I'll move it to comment, no worries.