[adegenet-forum] Combining mtDNA and Nuclear Data for find.clusters() and DAPC

Mac Campbell macampbell2 at alaska.edu
Fri Apr 15 05:20:50 CEST 2011


Hi,

I have searched for an answer to this, but haven't found one.  Would someone
be able to help me the following?

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.

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.

Thanks in advance,

Mac
> X

   #####################
   ### Genind object ###
   #####################
- genotypes of individuals -

S4 class:  genind
@call: df2genind(X = x[, -1], ind.names = x[, 1], ploidy = 1)

@tab:  72 x 121 matrix of genotypes

@ind.names: vector of  72 individual names
@loc.names: vector of  67 locus names
@loc.nall: number of alleles per locus
@loc.fac: locus factor for the  121 columns of @tab
@all.names: list of  67 components yielding allele names for each locus
@ploidy:  1
@type:  codom

Optionnal contents:
@pop:  - empty -
@pop.names:  - empty -

@other: - empty -

> Y

   #####################
   ### Genind object ###
   #####################
- genotypes of individuals -

S4 class:  genind
@call: df2genind(X = y[, -1], sep = "/", ind.names = x[, 1])

@tab:  72 x 32 matrix of genotypes

@ind.names: vector of  72 individual names
@loc.names: vector of  18 locus names
@loc.nall: number of alleles per locus
@loc.fac: locus factor for the  32 columns of @tab
@all.names: list of  18 components yielding allele names for each locus
@ploidy:  2
@type:  codom

Optionnal contents:
@pop:  - empty -
@pop.names:  - empty -

@other: - empty -



-- 
Matthew A Campbell
Department of Biology and Wildlife
University of Alaska, Fairbanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20110414/e233c0be/attachment.htm>


More information about the adegenet-forum mailing list