<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 ("I want to take the information where it
is.") or not ("I want both types of data to contribute equally to the analysis"), 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. 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>
</div>
</div>
</div>
</body>
</html>