Skip to content

Releases: MRCIEU/TwoSampleMR

TwoSampleMR 0.7.4

02 Apr 10:38
bf5a8c2

Choose a tag to compare

  • Small tweaks to the categorized forest plots to make them more similar to the original ones in the article.
  • Expanded the multivariable MR section of the Perform MR vignette (thanks @mvab)

TwoSampleMR 0.7.3

31 Mar 08:26
a6defd3

Choose a tag to compare

  • Some further code optimizations

TwoSampleMR 0.7.2

30 Mar 17:29
1f5ea53

Choose a tag to compare

TwoSampleMR 0.7.1

25 Mar 08:17
8b0685a

Choose a tag to compare

  • Added error message if unsupported method listed in the method_list argument to the mr() function (thanks @42kuroniko)
  • Added warning if mr_wald_ratio() passed more than one genotype's summary statistics

TwoSampleMR 0.7.0

24 Feb 10:31
faa16b9

Choose a tag to compare

  • Fixed a bug in the calculation in one of the code paths for the inferred p-value in format_data() (thanks @j-brody)
  • Fixed the calculation of a p-value in mr_rucker_internal()
  • Fixed a replacement length warning in get_population_allele_frequency()
  • Reformatted code base with air

TwoSampleMR 0.6.30

06 Feb 13:54
07311dd

Choose a tag to compare

Some optimizations to the code, including:

  • Vectorised mr_egger_regression_bootstrap()
  • Vectorised weighted_median_bootstrap()
  • Deleted duplicated weighted_median() function
  • Replace plyr function calls with data.table function calls
    • plyr::rbind.fill(...) to data.table::rbindlist(..., fill = TRUE, use.names = TRUE)
    • plyr::ddply(dat, cols, func) to lapply() over unique combinations + data.table::rbindlist()
    • Added data.table::setDF() calls to convert back to data.frame for compatibility
    • And removed plyr from Imports list
  • In flip_alleles() use chartr() instead of 4 gsub() calls
  • In random_string() use single call to sample() instead of n calls
  • Optimized mr_mode()
  • Replaced apply(..., any(is.na())) with complete.case()
  • Optimized the mr() function
  • Optimized the Optimize get_r_from_lor() function
  • Optimized the mr_rucker_bootstrap() and mr_rucker_jackknife_internal() functions
  • Replaced sapply() with vapply() in several cases
  • Optimized the simple_cap() function
  • And a few other minor optimizations

TwoSampleMR 0.6.29

16 Dec 12:39
7d35e81

Choose a tag to compare

  • Skip two tests if the MendelianRandomization package is not installed and protected the running of the perform_mr vignette.

TwoSampleMR 0.6.28

16 Dec 07:36
2468a5e

Choose a tag to compare

  • Allowed the arguments for clump_data() to be specified from read_exposure_data() (thanks @al3xjwood).
  • Fixed two function calls in mr_moe_single()

TwoSampleMR 0.6.27

15 Dec 13:16
8470e3d

Choose a tag to compare

  • Removed the unused p2 argument from extract_instruments() and the unused clump_p2 argument from clump_data() (thanks @yikeshu0611).

TwoSampleMR 0.6.26

12 Dec 11:37
264a8b7

Choose a tag to compare

  • Fixed the passing of the force_server argument within extract_instruments() through to ieugwasr::tophits() (thanks @yikeshu0611).
  • Amended the extract_instruments() clump argument to additionally take values 1 or 0 as per the ieugwasr::tophits() clump argument (thanks @yikeshu0611).