This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to make core genome accumulation curve in r vegan

Hello,

I am performing a pangenomic analysis on a set of bacterial strains and would like to plot pangenome and core genome accumulation curves using vegan in R.

For the pangenome accumulation/rarefaction curve, I used a gene presence-absence table to do the following:

library(vegan)
specaccum(matrix,"random",permutations=1000)

(and plotting the resultant object with ggplot)

enter image description here

Can someone help me make a similar curve to show a core gene accumulation/rarefaction curve?

Thanks so much for your time!

pangenome r rarefaction vegan genome

0 answers

No answers yet.

Log in to answer this question.