>library(adegenet)
>martin22
This is a genclone object
-------------------------
Genotype information:
4 original multilocus genotypes
55 haploid individuals
10 codominant loci
Population information:
1 stratum - Pop
3 populations defined - Hybrid, Heirloom, Grape
>pop(martin22)<-martin22$other$epid
>dapc.martin22<-dapc(martin22,var.contrib=TRUE,scale=FALSE,n.pca=10,n.da=nPop(martin22)-1)
Error in dapc.genind(martin22, var.contrib = TRUE, scale = FALSE, n.pca = 10, :
x does not include pre-defined populations, and `pop' is not provided
>pop(martin)
NULL
I understand that it has to do with the population which when I run results in the output, "NULL". However, the populations were defined as was seen in the output of the second script above. Any ideas on how I can bypass this error?
I thank you all in advance for your time to look at this email and for your inputs.
Best regards
Martin
--
You received this message because you are subscribed to the Google Groups "poppr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to poppr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/poppr/CAKiZ3%3Ds8E7jskHuRU%3D5q9Lw9fWH1VqkqPRQFMQv72GtL0-V2jg%40mail.gmail.com.