Are there any softwares or scripts to define a genomic region around an association signal in GWAS? I know people define usually a set amount (e.g. 200kb) around the most associated SNP, or first find the index SNPs in Plink and then limit these by LD and pvalue, but I was wondering if there is even a simpler way (just based on pvalue) to go right and left of the most associated SNP, and stop where there is no more associated SNPs at a pvalue < 0.5 for example. It seems like something like this would be very useful in the world of GWAS, there must be scripts/packages/softwares that do that?
Thank you for any suggestions!