Published June 10, 2026
| Version v0.7.8
Software
Open
TwoSampleMR R package
Authors/Creators
Description
- Fixed a copy-paste bug in
ldsc_rg()which passedd1$l2instead ofd2$l2as the weight vector to the trait-2ldsc_h2_internal()call - Fixed
extract_split()chunking which gavensplit = 0for SNP lists smaller than half thesplitsize; now usesceiling()with contiguous chunk ids - Fixed the penalised mode in
mr_mode()for vector-valuedphi: each SNP is now penalised against the weighted-mode estimate for the samephirather than recycling the mode vector across SNPs (results unchanged for the default scalarphi = 1) - Fixed row order restoration in
add_metadata()to usedat[order(dat[[order_col]]), ] - Qualified a bare
aes()call asggplot2::aes()intest_r_from_pn() - Used
isTRUE(all.equal())instead ofall.equal() == TRUEinsideifelse()for null-line detection in the forest plot functions, which could otherwise return a multi-element vector - Simplified the group
Indexassignment inforest_plot_1_to_many()usingLetters[match()], which is also robust to non-contiguous group rows - Collapsed a duplicated
||condition inextract_outcome_data_internal() - Removed dead
TAUsqaccumulation inPM()inrucker.R - Fixed an error message typo in
combine_data()and switched itssapply()tovapply() - Replaced superseded
tidyr::gather()withtidyr::pivot_longer()intest_r_from_pn()and dropped a redundantrequireNamespace("tidyr")guard - Lint package with Jarl
Notes
Files
MRCIEU/TwoSampleMR-v0.7.8.zip
Files
(6.1 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:7d5176501e7e22c53f00adac39e5d130
|
6.1 MB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/MRCIEU/TwoSampleMR/tree/v0.7.8 (URL)
Software
- Repository URL
- https://github.com/MRCIEU/TwoSampleMR