Hi,<br><br>I have searched for an answer to this, but haven't found one. Would someone be able to help me the following?<br><br>I have two data sets, mitochondrial and nuclear. I have created two Genind objects (X and Y, pasted below) with the same individuals in the same order.<br>
<br>Is it reasonable to combine the two data sets for use in find.clusters() and DAPC? Is there a way to combine two genind objects within adegenet easily? I've tried several general approaches for S4 objects.<br><br>
Thanks in advance,<br><br>Mac<br clear="all">> X<br><br> #####################<br> ### Genind object ### <br> #####################<br>- genotypes of individuals - <br><br>S4 class: genind<br>@call: df2genind(X = x[, -1], ind.names = x[, 1], ploidy = 1)<br>
<br>@tab: 72 x 121 matrix of genotypes<br><br>@ind.names: vector of 72 individual names<br>@loc.names: vector of 67 locus names<br>@loc.nall: number of alleles per locus<br>@loc.fac: locus factor for the 121 columns of @tab<br>
@all.names: list of 67 components yielding allele names for each locus<br>@ploidy: 1<br>@type: codom<br><br>Optionnal contents: <br>@pop: - empty -<br>@pop.names: - empty -<br><br>@other: - empty -<br><br>> Y<br><br>
#####################<br> ### Genind object ### <br> #####################<br>- genotypes of individuals - <br><br>S4 class: genind<br>@call: df2genind(X = y[, -1], sep = "/", ind.names = x[, 1])<br><br>
@tab: 72 x 32 matrix of genotypes<br><br>@ind.names: vector of 72 individual names<br>@loc.names: vector of 18 locus names<br>@loc.nall: number of alleles per locus<br>@loc.fac: locus factor for the 32 columns of @tab<br>
@all.names: list of 18 components yielding allele names for each locus<br>@ploidy: 2<br>@type: codom<br><br>Optionnal contents: <br>@pop: - empty -<br>@pop.names: - empty -<br><br>@other: - empty -<br><br><br><br>-- <br>
Matthew A Campbell<br>Department of Biology and Wildlife<br>University of Alaska, Fairbanks<br>