plink --bfile "${PLINK_REF_PANEL}/${chrom}" \
--r2 --ld-window 1000000 \
--ld-window-r2 ${PLINK_MIN_R2} \
--keep "${PLINK_REF_PANEL_KEEP}" \
--out "${out_prefix}" \
--ld-snp-list "${SNAPTMP}/SNAP.input.proxy" \
I have noticed that when a variant is not biallelic, plink does not generate a list of proxies and the search result is void. Is plink not able to calculate ld when the input variant is multiallelic? Is this a limitation of plink or is it not possible to calculate LD when the a variant is multiallelic and there are no other tools that can do this.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/86a38809-df93-4bb2-99d9-a29c3af593ben%40googlegroups.com.
rs1557550
rs111368459
rs1632969
rs17206070
rs281861394
"
And all these variants present in my .bed file and are multi-allelic. To make my .bed files, I retained only the first instance of a variant when it was a multi-allelic variant that had multiple bi-allelic entries :
[-----.-------@hydra1 data]$ grep "rs1557550" 6.bim
6 rs1557550 0 32484425 G C
[ethan.kreuzer@hydra1 data]$ grep "rs111368459" 6.bim
6 rs111368459 0 29697462 G C
[ethan.kreuzer@hydra1 data]$ grep "rs1632969" 6.bim
6 rs1632969 0 29811858 A T
[ethan.kreuzer@hydra1 data]$ grep "rs17206070" 6.bim
6 rs17206070 0 32684584 A T
[ethan.kreuzer@hydra1 data]$ grep "rs281861394" 6.bim
6 rs281861394 0 32665831 A C
This way I could retain multi-allelic variants in my .bed files AND not have duplicate entries.
The output file of my plink command was this:
"
[-----.-------@hydra1 SNAPTMP]$ cat SNAP.6.proxy.ld
CHR_A BP_A SNP_A CHR_B BP_B SNP_B R2
"
Why did this not yield any results???
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/f6311547-6ccf-40fa-8197-07fe2313719dn%40googlegroups.com.
I would need to send my reference genome .bed files to give a fully reproducible example, which I’m not too sure is feasible. What more information do you need?Sent from my iPhoneOn Jul 24, 2023, at 11:49 AM, Chris Chang <chrch...@gmail.com> wrote: