OSCR

Block oscr:b:SZM7Q4K2W65RN-9

A block of code linked to a paper, with an identifier OSCR gives it for good: it is never reused nor deleted. What a block identifier is · this block in JSON

Identifier
oscr:b:SZM7Q4K2W65RN-9
Status
Current: the registry links these lines to the paper today.
Paper
doi:10.1038/s41398-026-04142-y · its page here
Code
github.com/mrcieu/twosamplemr, R/mr.R, lines 882 to 921 (mr_penalised_weighted_median)
Commit read
5e93ee7d8e1f67581acb8134299759389d73efba
SWHID
swh:1:cnt:f9c27f9b22397cbda67a452679a1b85e84652c2d;origin=https://github.com/mrcieu/twosamplemr;anchor=swh:1:rev:5e93ee7d8e1f67581acb8134299759389d73efba;path=/R/mr.R;lines=882-921 (the Software Heritage identifier of the file as its authors published it, before any email address is hidden for display; it opens in Software Heritage's archive once the repository is archived there)
In the paper
paragraph 5 (Materials and methods › Mendelian randomization)
Linked by
the registry's matching program (lexical-v1), which can be wrong
Identifier given
2026-11-14

Open these lines beside the paper

Cite this block

Copy this text: the identifier and its page first, then the code, the paper and the SWHID.

Code block oscr:b:SZM7Q4K2W65RN-9 (https://openscicode.org/b/oscr:b:SZM7Q4K2W65RN-9)
R/mr.R, lines 882 to 921, in github.com/mrcieu/twosamplemr (https://github.com/mrcieu/twosamplemr), commit 5e93ee7d8e1f67581acb8134299759389d73efba.
Paper: https://doi.org/10.1038/s41398-026-04142-y
SWHID: swh:1:cnt:f9c27f9b22397cbda67a452679a1b85e84652c2d;origin=https://github.com/mrcieu/twosamplemr;anchor=swh:1:rev:5e93ee7d8e1f67581acb8134299759389d73efba;path=/R/mr.R;lines=882-921