During the study based on Mendelian Randomization, several functions were proposed to solve several common problems, including:
Recently, I noticed that some uploaders in Bilibili seem to sell my codes, such as Shining94. The original purpose of this project is to share my solutions to certain problems in Mendelian Randomization without charge. I urge those guys stop selling my codes, and I decide to not share my recent findings on MR. If you have any questions, leave me a message.
- how to get rsID from chromosome and position:
get_rsID_from_chr_pos
- how to find allele frequency, proxy of a given SNP:
snp_add_eaf
,snp_add_eaf_manual
,find_proxy
- how to search pleiotropy for a given SNP:
snp_phenoscanner
- how to harmonize if direct removal is not allowed and proxy is required:
snp_replace_proxy
,harmonise_data_modified
mr_meta
is helpful conduct meta-analysis to pool estimates from different cohortsmr_modified
is alternative function tomr
in TwoSampleMR package, since the mr-raps cannot not be conducted in the original functionget_cohort_from_number
transforms a number into a name of cohortget_method_from_abbr
transforms an abbreviation version of MR method into a full nameget_protein_from_uniprot
transforms a UniProt ID to full name of protein, with UniProtRefPanel.xlsx as the reference panel
- data visualization: volcano plot, forest plot...
- colocolization
- TWAS
- ...