LDpred2.R uses external ld matrix (partial fix for #108)#109
Conversation
|
I'll fix Flake8 linter errors later today. The LD reference files are stil being uploaded to https://github.com/comorment/ldpred2_ref . Apart from this this PR is ready for review. |
|
@deepchocolate @espenhgn I pushed few more changes, that's would be all I wanted to implement for ldpred2.R. Is it fine to merge? I'd like to ask our colleagues at CoMorMent to have a look before the meeting tomorrow. @deepchocolate what do you think about adding --geno-file, --sumstats and --out as named arguments, rather than using them as positional arguments? I generally prefer named arguments over positional arguments, also for those arguments that are required. To me this is more readable and intuitive as one doesn't need to know that order in which positional arguments must be provided. Also it's fine to reorder without breaking backwards compatibility. Finally, with --chr2use argument with |
I'm looking at it now, I'll approve today, just checking if I need to do some changes somewhere. If there are any I'll put them in a separate branch
That's fine by me, good point! Also good to harmonize arguments to gwas.py, didn't think about that as I usually try to prefix the arguments after what they specify ( |
|
@deepchocolate I agree about |
|
I rebuilt r.sif container including |
Fixes first half of #108
Changes proposed in this pull request:
--chr2useflag--merge-by-rsidoption to perform merging on rs# (SNP marker name). Testsnp_matchwith a new unit-test,tests/extras/bigsnpr.R(the test passes)reference/examples/ldpred2folder), which allows to test how wellLDpred2matches SNPs from sumstats, genotypes and LD reference. The tool also runs very fast on that dataset because it only includes chr21 and chr22.Before submitting
section of the
CONTRIBUTINGdocs.Writing docstrings section of the
CONTRIBUTINGdocs.