Open danfulop opened 6 years ago
cbind(gt.sub, gt2.sub)
worked, FWIW.
I will look into this error in more detail when I get a chance, but I suspect it comes from a (poorly-tested) branch of the merge()
function that handles the case when check.alleles == FALSE
.
My intended use for the merge()
function was for genotype matrices that share some but not all markers in common -- ie. from two different SNP array platforms. In that case I would recommend to always set check.alleles = TRUE
to catch strand swaps and other inconsistencies between platforms.
However if you have two genotype matrices with the same markers (and the same alleles at those markers) but non-overlapping samples -- ie. two batches run on the same SNP array platform, or two splits of the same dataset -- then cbind()
is safe and much faster.
Yeah, my case is the latter, which is why I thought of cbind()
. I should double check that the alleles at all markers are the same.
I've also been having the same issue for a while now. When I use the merge function I get the same "object 'new.o' not found". I just tried setting check.alleles=TRUE and got a different error. "In order to perform allele check efficiently, both input datasets should be in the '01' numeric encoding." The two files that I'm trying to merge are also the same type (GigaMUGA data). The interesting thing is I have argyle on two different and equivalent PCs. It works on one, but the second gives the errors. I did install the program on the second PC at a later time than the first. Did something change either in argyle or one of the other functions that has to be loaded into R? It is also possible that I loaded things differently the second time, but with others getting the same error I'm not so sure if that is it.
I am getting an odd error when I try to merge genotype objects:
Is there another way I can merge these 2 objects?
Here's my
sessionInfo()
: