Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: insufficient number of blocks -- you need 5 blocks with non zero ABBA/BABA program terminating. #82

Open
BiodeB opened this issue Aug 22, 2021 · 2 comments

Comments

@BiodeB
Copy link

BiodeB commented Aug 22, 2021

Dear Sir,
I'm analyzing D-statistics for the first time using admixr in R and I'm getting below error,

enough!
insufficient number of blocks -- you need 5 blocks with non zero ABBA/BABA program terminating

BEGINNING OF OUTPUT FILE
==================================================

qpDstat: parameter file: /tmp/RtmpkwhB54/qpDstat__1499352543.par
### THE INPUT PARAMETERS
##PARAMETER NAME: VALUE
genotypename: /media/imdeb/Elements/2nd/Sequence/ABBATest/Admix/GB_eign/GB_snpS.geno
snpname: /media/imdeb/Elements/2nd/Sequence/ABBATest/Admix/GB_eign/GB_snpS.snp
indivname: /media/imdeb/Elements/2nd/Sequence/ABBATest/Admix/GB_eign/GB_snpS.ind
popfilename: /tmp/RtmpkwhB54/qpDstat__1499352543.pop
f4mode: YES
printsd: YES
## qpDstat version: 980
inbreed set NO
number of quadruples 1
  0           Blepharipa    1
  1           D_melanoga    1
  2           E_sorbilla    1
  3               B_mori    1
jackknife block size:     0.050
snps: 2142  indivs: 4
number of blocks for block jackknife: 2
nrows, ncols: 4 2142

==================================================
END OF OUTPUT FILE


Error: The output file we got from ADMIXTOOLS is truncated.
       Please examine the full output above and check for errors. 

My objective is to investigate introgression in insect mt-DNA. Therefore I took 116 insect's mitochondrial protein coding genes, aligned and concatenated all the genes. Then I created a VCF file using snp-site tool, after that I converted it to EIGENSTRAT format by convertVCFtoEigenstrat.sh of Joana Meier. Now I'm implementing admixr but facing the above problem when I tried to estimate D-statistics.

prefix <- "/media/imdeb/Elements/2nd/Sequence/ABBATest/Admix/x/x11/x11_snpS"
snps <- eigenstrat(prefix)

pops <- c("Blepharipa","S_variegat","P_vanderpl","A_gambie","E_flavipal","D_mauritia")
result_D <- d(W = pops, X = "D_melanoga", Y = "E_sorbilla", Z = "B_mori", data = snps)

Kindly let me know how can I overcome this issue. As I understand either I need to increase number of blocks of decrease the size of of the blocks. So this is a humble request that please let me know how to do this.

Thank you,
Debajyoti

@bumblenick
Copy link
Contributor

bumblenick commented Aug 23, 2021 via email

@BiodeB
Copy link
Author

BiodeB commented Aug 25, 2021

Dear Sir,

Thank you very much for your kind suggestions. I managed to run program after following the response of @Marvin02860 at [https://github.com//issues/54] .

Thanking you,
Debajyoti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants