You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
mv_harmonise_data() now gives an informative error when no SNP in exposure_dat is present for all of the exposures (e.g. when exposure_dat was made by combining the output of extract_instruments() for each exposure instead of using mv_extract_exposures()), when none of these SNPs are in outcome_dat, or when none of them remain after harmonising. Previously it failed with "dims [product 1] do not match the length of object [0]" (before v0.7.6) or "object 'mr_keep' not found", or, in the last case, returned empty matrices without an error (thanks @chenyangsu, #316)
mv_harmonise_data() now removes duplicated SNP-exposure rows in exposure_dat (keeping the first occurrence of each) with a warning. Previously duplicated rows could cause a SNP missing for some exposures to be kept, or a SNP present for all exposures to be dropped, and could give list-columns in the exposure matrices.