Closed borletti closed 11 months ago
I suspect that the .bim
or .snp
file is not formatted as expected. The 3rd column should have genetic distance in Morgan units. The 4th column should have genetic positions in base pair units, although that column will only be used if blgsize
is 100 or greater.
If you can share the first and last few lines from the .bim
or .snp
file, I might be able to see what the problem is.
Hi Robert, thank you so much for replying. I understand, I do not have a genetic map, so I am using
There are a couple of things that are unusual here:
6587_145
and 4770_145
are both chr 1, pos 145). If those are multiallelic SNPs, you should keep only one alt allele per site. Although based on the IDs, it doesn't look like this is the case here.What organism is this? How was the file generated?
Thank you so much for detailed explanation. I am working with SNPs which were extracted from UCEs from non-model organism (frogs). The SNPs are located in contigs/scaffolds, so I have non-standard chromosome names. I was replacing the first column by 1s, to be read by admixtools2. My data has 23,574 SNPs with ~1,249 contigs. I am using
plink --vcf admix2.all.fs.bi.het.md100.mss75.ld50_10_05.rename.sort.vcf --make-bed --allow-extra-chr --double-id --out output
What do you think to use
Thank you so much for your help.
If you replace each contig ID by a different number (1 to 1249), and set auto_only = FALSE
in extract_f2()
, then you should get at least as many blocks as contigs.
extract_afs()
calculates allele frequencies for each population. That can be interesting in itself, and in certain cases extract_f2()
uses the extract_afs()
function, but the functions that you need to call to get the data that's needed for subsequent Admixtools 2 analyses (like qpadm()
or qpgraph()
) are either extract_f2()
or f2_from_geno()
; or you can skip this step and read the data from the genotype files each time.
Thank you so much, that worked! I am going to close this thread.
Hi, I am exploring this useful package admixtools2, I have a problem/doubt when I run
extract_f2
all work well, but when I read my genotype files withf2_from_geno
the number of blocks is just one. I have usedblgsize
in the two ways: 0.05 and 4000000. But the number of blocks is equal to 1. So, I can work with one block, I think that something that I am doing is wrong. Please, I will appreciate any advice.