<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
<div>Hello, <br>
<br>
to combine these data, you can use scaleGen to get scaled allele frequencies and then use cbind to obtain one general matrix.<br>
<br>
The more concerning problem is that you may be merging information of different nature by doing so. Also, it is likely that the results will mainly be driven by the dataset with the most variability. That may be fine (&quot;I want to take the information where it
 is.&quot;) or not (&quot;I want both types of data to contribute equally to the analysis&quot;), depending on what you want to do.<br>
<br>
I would advise at least checking that the analysis done on the entire dataset matches the results of the separate analyses. Running two separate PCAs and checking for similarities between them using coinertia analysis (function coinertia in ade4) should also
 be useful.<br>
<br>
All the best<br>
<br>
Thibaut<br>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF90674"><font color="#000000" face="Tahoma" size="2"><b>From:</b> adegenet-forum-bounces@r-forge.wu-wien.ac.at [adegenet-forum-bounces@r-forge.wu-wien.ac.at] on behalf of Mac Campbell [macampbell2@alaska.edu]<br>
<b>Sent:</b> 15 April 2011 04:20<br>
<b>To:</b> adegenet-forum@r-forge.wu-wien.ac.at<br>
<b>Subject:</b> [adegenet-forum] Combining mtDNA and Nuclear Data for find.clusters() and DAPC<br>
</font><br>
</div>
<div></div>
<div>Hi,<br>
<br>
I have searched for an answer to this, but haven't found one.&nbsp; Would someone be able to help me the following?<br>
<br>
I have two data sets, mitochondrial and nuclear.&nbsp; 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?&nbsp; Is there a way to combine two genind objects within adegenet easily?&nbsp; I've tried several general approaches for S4 objects.<br>
<br>
Thanks in advance,<br>
<br>
Mac<br clear="all">
&gt; X<br>
<br>
&nbsp;&nbsp; #####################<br>
&nbsp;&nbsp; ### Genind object ### <br>
&nbsp;&nbsp; #####################<br>
- genotypes of individuals - <br>
<br>
S4 class:&nbsp; genind<br>
@call: df2genind(X = x[, -1], ind.names = x[, 1], ploidy = 1)<br>
<br>
@tab:&nbsp; 72 x 121 matrix of genotypes<br>
<br>
@ind.names: vector of&nbsp; 72 individual names<br>
@loc.names: vector of&nbsp; 67 locus names<br>
@loc.nall: number of alleles per locus<br>
@loc.fac: locus factor for the&nbsp; 121 columns of @tab<br>
@all.names: list of&nbsp; 67 components yielding allele names for each locus<br>
@ploidy:&nbsp; 1<br>
@type:&nbsp; codom<br>
<br>
Optionnal contents: <br>
@pop:&nbsp; - empty -<br>
@pop.names:&nbsp; - empty -<br>
<br>
@other: - empty -<br>
<br>
&gt; Y<br>
<br>
&nbsp;&nbsp; #####################<br>
&nbsp;&nbsp; ### Genind object ### <br>
&nbsp;&nbsp; #####################<br>
- genotypes of individuals - <br>
<br>
S4 class:&nbsp; genind<br>
@call: df2genind(X = y[, -1], sep = &quot;/&quot;, ind.names = x[, 1])<br>
<br>
@tab:&nbsp; 72 x 32 matrix of genotypes<br>
<br>
@ind.names: vector of&nbsp; 72 individual names<br>
@loc.names: vector of&nbsp; 18 locus names<br>
@loc.nall: number of alleles per locus<br>
@loc.fac: locus factor for the&nbsp; 32 columns of @tab<br>
@all.names: list of&nbsp; 18 components yielding allele names for each locus<br>
@ploidy:&nbsp; 2<br>
@type:&nbsp; codom<br>
<br>
Optionnal contents: <br>
@pop:&nbsp; - empty -<br>
@pop.names:&nbsp; - 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>
</div>
</div>
</div>
</body>
</html>