Hi Luis,
Unfortunately I've run into this problem again when trying to convert to a plink format - it works with another one of my datasets so I'm thinking it must be something I'm doing wrong or with my data. I have tried the following from another post but am getting the same result:
# assigning chromosome information
gl_drop$chromosome <- gl_drop$other$loc.metrics$Chrom_Tammar_Chrom_NCBIv1
# assigning position information
gl_drop$position <- test$other$loc.metrics$ChromPos_Tammar_Chrom_NCBIv1
# converting to bed file
gl2plink(gl_drop, outfile = "plink_pw", outpath = "./", bed_file = TRUE)
Then getting this error:
> gl2plink(gl_drop, outfile = "plink_pw", outpath = "./", bed_file = TRUE)
Starting gl2plink
Processing genlight object with SNP data
Chromosome slot is empty. Using 1 as dummy name.
Error in names(x) <- value :
'names' attribute [2] must be the same length as the vector [1]
It may be to do with how I'm trying to rename the chromosomes? I wasn't sure where your example came from with the platypus.
Happy to send over my gl_drop.Rdata file if you need.
Thank you for your help in advance!
Elle