Closed Han-Shi-China closed 1 year ago
Thank you for reaching out. And congrats on apparently successfully running ancIBD
.
Actually, your IBD calls look better. I found that IID I12896 in the current tutorial has erroneously too much missing data (by accident a PMD-filtered VCF was used) - and produces lots of short FP IBD segments - that you do not have. I will update the Vignette very soon to rectify that error.
Could you let me know if you started from the current example VCF dataset? I just downloaded the data from the Dropbox link, installed ancIBD
v0.5 on a fresh machine, and reproduced the original results (exactly!).
A quick sanity check would be running ancIBD
manually on a pair of chromosomes:
The Filtering to 0.99 GP variants: 0.125x
tells you that only a few variants have high imputation quality. Is that the same for you?
Really thanks for your quick response!
I tried to run ancIBD on chromosome 8 between I12440 and I12896, and got the same results as you did.
However, I still failed reproducing the results in the tutorial. So I really want to share more detailed information with you...And sorry that it will be very long, I really appreciate it if you are willing to help me check on this. Thanks!!
Software version:
Guidelines: https://ancibd.readthedocs.io/en/latest/Intro.html
Data: downloaded from https://www.dropbox.com/sh/q18yyrffbdj1yv1/AAC1apifYB_oKB8SNrmQQ-26a?dl=0 detailed information:
Script:
Correct: May be the path of v51.1_1240k.snp in the tutorial should be changed into : map_path = f"./data/maps/v51.1_1240k.snp"
Output HDF5 files:
Output information: results_vcf_hdf5.txt
Notice: In output information, there is an error:
Error. nthreads cannot be larger than environment variable "NUMEXPR_MAX_THREADS" (64)
but the transformation can still go smoothly, and the other output information is the same as that in the tutorial. I checked that on GitHub and found that some people may also have the same issue while running other software smoothly. So I am wondering maybe this may not be the major cause for the different results?.... https://github.com/LinkageIO/Camoco/issues/98
Script:
Output files: ch_all.txt ibd_ind.d220.txt
Output information: is the same as I previously mentioned, which is different from the tutorial...:
I tried to upload the compressed files including all the files or the hdf5 files, yet the file size is too big(both are >25MB). And if there are something that I forget to mention, please contact me. Really thanks for your kind help!
Thank you for your detailed report!
Your Chr. 8 example shows that your pre-processing works, you got exactly the same hdf5 file as me.
I could now figure out what caused your different output - it was a look-over on our side:
We updated the code in the Vignette notebook, but not the output cells! Using the same input as you I can fully replicate your output. The difference was that you use
l_model='h5', e_model='haploid_gl2'
which is the most up-to-date module.
I now further updated the Vignette, adding the latest and recommended parameterp_col='variants/RAF'.
You can find this latest notebook (and matching output) here.
You should now be able to run it and exactly replicate its output!
Thanks for your careful check, I can replicate the output this time!!
Also, many thanks for your excellent work in ancIBD and hapROH, which really enable us to explore more about the family pedigrees and social structure. Thanks!
Thanks a lot, you identified a bugged vignette file :)
We would add you to the Acknowledgments section. Let us know if that is okay and if so your preferred (user) name (in a PM or per email).
Happy IBD and ROH hunting!
Hi, I think it would be a great honor for me to be in the Acknowledgments section! My name is Han Shi, and my email is shihan@ivpp.ac.cn. Thanks again for all your work and help~
Hi, can I use this space to ask one more question about the reference panel files you use when doing the imputation and phasing?
I noticed that in the SI of your ancIBD paper, you said "We imputed all autosomal bi-allelic SNPs 1000 Genomes Phase 3 release using GLIMPSE using its default parameters". So I am wondering are you using the files downloaded from the following link? Take the chr1 as an example :http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/release/20130502/ALL.chr1.phase3_shapeit2_mvncall_integrated_v5b.20130502.genotypes.vcf.gz
Since in the tutorials of Glimpse, the reference panel files are in the GRCh38/hg38 genome assembly, so I am not really sure about the files that should be used to impute and phase data in hg19 genome assembly. Thanks so much!
Yes - we used the files from here (that you refer to) as reference for phasing and imputation, that is: http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/release/20130502/
Most of human aDNA is aligned to hg19/grch37 - so please also that matching reference panel!
Yeah, I got it! Really thanks for your guidance :)
Hi, recently I was running the ancIBD-0.5 using the example data (downloaded from https://www.dropbox.com/sh/q18yyrffbdj1yv1/AAC1apifYB_oKB8SNrmQQ-26a?dl=0), using python3.8.3 with the same parameters in the tutorial. All commands can run smoothly without errors, but the results I got is different from the results showed in the tutorial. And I still have not figure out what caused this difference. I will really appreciate it if you can help!!
I checked the output when prepare the hdf5 files, and it is the same from what is in the tutorial. But results start to differ when calling the IBD, and it seems that the IBD that I got is much less.
When summarizing the IBD between pairs, some of the results yield IBD but differ in sum and number, but some pairs(I12438 & I12896, I12440& I12896...), which yield some IBD in the tutorials, did not yield one IBD here..
Could you please give me some advice about what might caused this problem? Many thanks!!