Hi,
For context, this post is a product of the following posts:
https://groups.google.com/forum/#!topic/poppr/hgEwoowW3gA
https://groups.google.com/forum/#!topic/poppr/2oLpsGlI54Y
For further information on strata, type help("strata", package = "adegenet") in your R console. Since the strata slot is optional, it is empty by default. It takes a data frame where the rows represent samples and the columns represent the different population strata that each individual could take.
In your example, you only have 1 population stratum which defines 4 populations, thus you would only have 1 column for the strata.
As outlined in section 2.1 of the strata tutorial, you can define the strata using the function strata() with a data frame like so:
strata(myData) <- data.frame(Pop = pop(myData)) # create the strata
head(strata(myData)) # show the resultsThis will create the data frame with a single column called "Pop" and then show you the top of the resulting data frame. I'm using "Pop" here because it's generic, but you can change it to anything that's meaningful. From here, you can use the poppr.amova() function like so:
poppr.amova(myData, hier = ~Pop)If you find that you want to do a hierarchical AMOVA and you have definitions for subpopulations, you can add those definitions to your object with the function addStrata().
Hope that helps,
Zhian