Closed pguarinovignon closed 1 year ago
Hi @pguarinovignon! So based on your VCF you seem to have some missing data in there - SNPs where there is no imputed genotype information. E.g. for the first SNP:
0|0:0:1,0,0 ./.:.:.
The second individual has missing data. ancIBD cannot handle those currently, as it assumes every SNP has been imputed.
You can try the direct run on two IIDs (that you know are related), see run_plot_pair
(https://ancibd.readthedocs.io/en/latest/plot_IBD.html)
That should give output similar to this one:
Missing data would make the red line go away.
Thank you, indeed I did put a filter on my glimpse output to only keep call with a GP>0,99 so the missing data. When using the direct output of GLIMPSE I had no missing data and it worked. I use this space to also ask, in the function "plot_pde_individual_from_ibd_df" is it possible to plot de theorical distribution for aunt-nephew and siblings (I suppose parents-offspring distribution is not relevant here as it is in full IBD) ?
Thank you, also for reporting back once it works!
The next version of ancIBD will be able to work with missing data (by just skipping it) - but using GP at all 1240k SNPs is always preferred - as ancIBD is calibrated for such data!
Congratulations on your IBD calls - and Parent Offspring are always a great sanity check - as indeed everything should be in IBD.
in the function "plot_pde_individual_from_ibd_df" is it possible to plot the theoretical distribution for aunt-nephew and siblings (I suppose parents-offspring distribution is not relevant here as it is in full IBD) ?
Yes it is! You have to update the parameters according - and change the following:
comm_ancs =[4,4,2,2]
ms=[4,6,5,4]
labels=["First Cousins", "Second Cousins", "5 generations anc.", "4 generations and."]
comma_ancs
should be four (as in siblings and aunt nephew the first generation has 2x2 haplotypes). For siblings you have two meiosis (ms
should be 4 then) and four aunt-nephew three (ms
should be three). And update the labels and maybe also colors (cs
) accordingly!
Hi, I've been trying to run ancIBD on data imputed with GLIMPSE and the 1000G panel. I have the full vcf per chromosome, I could run the transformation and filtering to 1240k snps smoothly, calculating the af directly with the command:
Then when I run the next command it fail to detect any IBD in any pairs among my 90 samples...
When I run the code with the example data I obtain the exact same result as in the tutorial.
When I use plink or KING on my imputed dataset I detect IDB (and I know for sure that some individuals are 1st degree related). Could you see where is the problem?
Here an example of the filtered vcf obtained by the first command: