[adegenet-forum] importing data NA coding

Evelyne Heyer heyer at mnhn.fr
Wed May 25 19:09:23 CEST 2011


I found the error! Sorry for disturbing you!

Le 25/05/2011 18:53, Jombart, Thibaut a écrit :
> Dear Evelyne,
>
> "0000" are well interpreted as NAs when reading nancycats data in genpop format.
>
> The head of the file reads:
> #######################
> Genotypes of cats from 17 colonies of Nancy (France)
> fca8
> fca23
> fca43
> fca45
> fca77
> fca78
> fca90
> fca96
> fca37
> Pop
> 1, 0000 0409 0404 0103 0909 0306 0909 0808 1010
> 1, 0000 0909 0407 0305 0909 0306 0209 0808 1010
>
> #######################
>
> Import into R:
> #######################
>> example(read.genepop)
> [...]
>> genind2df(obj)
>      pop fca8 fca23 fca43 fca45 fca77 fca78 fca90 fca96 fca37
> 1     1<NA>   0409  0404  0103  0909  0306  0909  0808  1010
> 2     1<NA>   0909  0407  0305  0909  0306  0209  0808  1010
> #######################
>
> If you are using an outdated version of adegenet, please try with the latest stable version. If the problem persist, can you please send me an example data file so that I can try to reproduce and fix the issue?
>
> Cheers
>
> Thibaut
>
> ________________________________________
> From: adegenet-forum-bounces at r-forge.wu-wien.ac.at [adegenet-forum-bounces at r-forge.wu-wien.ac.at] on behalf of Evelyne Heyer [heyer at mnhn.fr]
> Sent: 25 May 2011 13:53
> To: adegenet-forum at r-forge.wu-wien.ac.at
> Subject: [adegenet-forum] importing data NA coding
>
> When I import data from Genepop file with the read.genepop function, the
> missing data frrom Genepop ("0000" allele) are not coded as NA in
> genpop. How to solve this problem?
> Evelyne Heyer
>
>
> _______________________________________________
> adegenet-forum mailing list
> adegenet-forum at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum
>
>


-- 
_________________________________
Pr Evelyne Heyer
Dir adjoint du département Hommes, Natures, Sociétés
UMR 7206 Eco-anthropologie
Equipe "génétique des populations humaines"
CP 139
57 rue Cuvier
75231 Paris Cedex 05
tel: 33 1 40 79 81 58
fax: 33 1 40 79 32 31

En Français http://www.ecoanthropologie.cnrs.fr/spip.php?article291
In English  http://www.ecoanthropologie.cnrs.fr/spip.php?article300




More information about the adegenet-forum mailing list