The awk line assumes that the second column of a *.ld file has chom:pos info, but the second column has the major nucleotide of snp1. The fourth column (change $2 to $4) has the snp2 chrom:pos info. Then the subsequent cut needs to be updated to reflect the *.ld file format
that script hasn't been used much and it might be outdated.
Since it seems you have a pretty good idea of where the problems are, just submit a PR.
best,
ngsLD/scripts/LD_blocks.sh
The
awk
line assumes that the second column of a*.ld
file has chom:pos info, but the second column has the major nucleotide of snp1. The fourth column (change$2
to$4
) has the snp2 chrom:pos info. Then the subsequentcut
needs to be updated to reflect the*.ld
file format