LDpred2
: LD estimation with physical position instead of genetic distance
#257
Labels
LDpred2
: LD estimation with physical position instead of genetic distance
#257
Is your feature request related to a problem? Please describe.
snp_cor
used in thecalculateLD.R
script can calculate correlation between SNPs using physical position or genetic distance. Right now this script has been built around using genetic distance in centimorgans, requiring the use of genetic maps.containers/scripts/pgs/LDpred2/calculateLD.R
Lines 84 to 85 in df104cc
containers/scripts/pgs/LDpred2/calculateLD.R
Lines 132 to 133 in df104cc
An unrelated issue is that I've seen warnings when running this script. This can be due to missing files as these lines:
containers/scripts/pgs/LDpred2/calculateLD.R
Lines 128 to 131 in df104cc
Could be fixed by appending
warnings()
to the end of the script, but it would be better that they were outputted immediately. Guess there is some option one can set at the start of the script for that to happen.Describe the solution you'd like
Make it possible to calculate LD using physical position instead. It's probably best to replace the
--arg-window-size
with--mode-distance-physical
and--mode-distance-genetic
that both take an optional argument (distance in no basepairs or centimorgans). Should be a requirement to specify one of these.The
size
argument tosnp_cor
is interpreted as basepairs without theinfo
argument, but kilobasepairs with it. Probably better to specify the same unit in both modes, but convert them prior o passing values tosnp_cor
.The text was updated successfully, but these errors were encountered: