Man pages for richardslab/MRutils
Utility functions for preparing data for Two-Sample MR

allele_validatorallele information validator
assert_chrCheck that input contains a CHR column with values that look...
assert_gwasValidate a dataframe as a gwas
assert_probabilitiesCheck that input is a vector of strings that look like rsids
assert_rsidsCheck that input contains an rsid column with values that...
assert_valid_dataCheck that input is a dataframe that validates according to...
choose_best_proxiesmethod to remove ambiguous (palindromic and AF too close to...
chr_validatorcontig validator
demo_dataSnippet of a gwas
extract_snps_from_bgzipExtract a subset of a block-gzipped (and indexed) file by CHR...
fill_gwas_unknown_rsidsMethod to obtain rsids for records in a gwas where they are...
filter_and_write_exposure_dataMethod to filter and save exposure data
fix_proxy_allelesSince proxies are provided with a "Correlated_Alleles" column...
get_2smr_resultsRun Two-Sample MR on pre-processed data.
get_cached_rsid_from_positionGet rsid name from position
get_LD_pairsGets the LD between all the pairs of snps (that are in the...
get_proxiesFind proxy snps to the list provided.
get_rsidGet rsid name from position
get_rsid_from_positionGet rsid name from position
get_unknown_rsids_from_locusMethod to obtain rsids for records in a gwas where they are...
gwas_types_validatorgwas column type validator
gwas_validatorlocus information validator
locus_validatorlocus information validator
merge_rsids_into_gwasMethod to merge back rsids from a subset of a gwas into a...
not_inNot in operator
palindromicList of genotypes that are palindromic
pipePipe operator
proxy_allele_validatorproxy allele information validator
proxy_stats_validatorstats information validator
prune_snpsPrunes a collection of SNPs provided in a dataframe. The...
remove_linked_snpsMethod to select snps so that they are not in LD.
replace_allelesReplaces the alleles in a GWAS according to the replacement...
required_headersList of column headers that are required to be present in a...
rsid_validatorrsid information validator
stats_validatorstats information validator
valid_allelesList of strings that are valid alleles
valid_contigsList of valid names for a reference sequence/contig in this...
valid_contigs_with_chrList of valid names for a reference sequence/contig in this...
valid_referencesList of human reference builds that can be used to find rsids
vinvin operator
richardslab/MRutils documentation built on Dec. 22, 2021, 4 p.m.