[adegenet-forum] importing data frame as a genind file

Vojtěch Zeisek vojta at trapa.cz
Mon Dec 1 12:50:45 CET 2014


Hello,
I think we would need some reproducible example - piece of Your original data, 
commands You did and errors and other output produced by those commands...
Yours,
Vojtěch

Dne Po 1. prosince 2014 11:48:26, Mark Coulson napsal(a):
> Dear all,
> 
> I have had some success getting data files into adegenet but only with the
> import2genind command using a genpop file and never from the
> importstructure, genepop, etc. My preference would be to import a dataframe
> with column 1 as the population name, column 2 as the individual identifier
> and the remaining columns as the individual loci. I did get this to work
> with some previous suggestions on the forum, however, the summary(x)
> command tells me I have precisely 10 alleles at each locus (actually there
> are between 9 and 63) and massive differences in Hexp vs. Hobs (which there
> aren't). So clearly something isn't being interpreted correctly despite the
> fact that I can create both the genind and genpop files.
> 
> Any ideas why my loci are being mis-read?
> 
> Thanks,
> 
> Mark
-- 
Vojtěch Zeisek
http://trapa.cz/en/

Department of Botany, Faculty of Science
Charles University in Prague
Benátská 2, Prague, 12801, CZ
http://botany.natur.cuni.cz/en/

Institute of Botany, Academy of Science
Zámek 1, Průhonice, 25243, CZ
http://www.ibot.cas.cz/en/

Czech Republic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20141201/0aaa944a/attachment.sig>


More information about the adegenet-forum mailing list