green-striped-gecko / PopGenReport

a simple way to analyse population genetic data using R
5 stars 5 forks source link

difficulty creating genind object #10

Open jdoyle30724 opened 3 weeks ago

jdoyle30724 commented 3 weeks ago

**Hi!

I am attempting to use PopGenReport to upload the attached file and the following code:**

twothousandnine.gen<-read.genetable("2009.csv",ind=1,pop=134,lat=NULL,long=NULL,x=NULL,y=NULL,oneColPerAll = FALSE,sep="/",ploidy=2) It seems that the number of alleles and names of loci are imported correctly and @tab indicates the number of individuals is correct. However, if I type twothousandnine.gen@ind.names I recieve the following error:

Error: no slot of name "ind.names" for this object of class "genind" Also, if I run the following commands:

twothousandnine.out1 <-popgenreport(twothousandnine.gen,mk.counts=TRUE, mk.pdf=FALSE)

summary(twothousandnine.out1)

I only receive the following output:

Length Class Mode counts 7 -none- list

**Do you have any insight regarding these issues?

Best!**

jdoyle30724 commented 3 weeks ago

2009.csv

My apologies, I forgot to include the attachment.