[adegenet-forum] Trouble converting to genid object

Vojtěch Zeisek vojta at trapa.cz
Mon Dec 15 17:49:06 CET 2014


Hello,
I experienced same error with PA data. I had dots in locus names (eg. 
XY.123-123). After replacement of dots with underscores, it worked perfectly.
Sincerely,
Vojtěch

Dne Po 22. září 2014 11:59:47, Jackie Lighten napsal(a):
> Hi,
> 
> I am having trouble converting a presence/absence genotype data frame to a
> genid object
> 
> Please see attached for test data file.
> 
> Using
> 
> obj2 <- genind(test, ploidy=1, type="PA")
> 
> I get the error:
> 
> Error in `colnames<-`(`*tmp*`, value = c("L1", "L2")) :
>   length of 'dimnames' [2] not equal to array extent
> 
> Using
> 
> obj2 <- df2genind(test, ploidy=1, type="PA")
> 
> I get the error:
> 
> Error in `colnames<-`(`*tmp*`, value = "L1") :
>   length of 'dimnames' [2] not equal to array extent
> In addition: Warning messages:
> 1: In eval(expr, envir, enclos) : NAs introduced by coercion
> 2: In df2genind(test, ploidy = 1, type = "PA") :
>   entirely non-type marker(s) deleted
> 
> Any help would be much appreciated
> 
> Thanks,
> 
> Jack
-- 
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/20141215/a1c9cff4/attachment.sig>


More information about the adegenet-forum mailing list