Package: mrpipeline 0.1.0

Jamie Robinson

mrpipeline: Implements a Ready-for-Use Mendelian Randomisation Pipeline

This package implements a pipeline which in turns allows for simple and generally "hands-free" Mendelian randomisation analyses to be run. Data may be used from the OpenGWAS DB or locally, using .vcf files. Analyses include MR, colocalisation and standard MR sensitivity analyses. Please see the documentation for more details.

Authors:Jamie Robinson

mrpipeline_0.1.0.tar.gz
mrpipeline_0.1.0.zip(r-4.7)mrpipeline_0.1.0.zip(r-4.6)mrpipeline_0.1.0.zip(r-4.5)
mrpipeline_0.1.0.tgz(r-4.6-any)mrpipeline_0.1.0.tgz(r-4.5-any)
mrpipeline_0.1.0.tar.gz(r-4.7-any)mrpipeline_0.1.0.tar.gz(r-4.6-any)
manual.pdf |manual.html
card.svg |card.png
mrpipeline/json (API)

# Install 'mrpipeline' in R:
install.packages('mrpipeline', repos = c('https://mrcieu.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jwr-git/mrpipeline/issues

On CRAN:

Conda:

3.07 score 6 stars 39 scripts 23 exports 148 dependencies

Last updated from:2c84a8deaa. Checks:8 ERROR, 1 FAIL. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64ERROR189
source / vignettesERROR316
linux-release-x86_64ERROR202
macos-release-arm64ERROR162
macos-oldrel-arm64ERROR156
windows-develERROR126
windows-releaseERROR144
windows-oldrelERROR114
wasm-releaseFAIL140

Exports:%>%annotate_efoannotate_ensgcalc_f_statcheck_snpscis_transcombine_resultsdat_to_gwasvcfdo_colocdo_mrdrug_target_evidenceextract_matched_regionsfile_to_gwasvcfforest_plotharmonisemr_pipelinepairwise_analysisread_exposureread_outcomeregional_plotvolcano_plotz_comparison_plotz_plot

Dependencies:abindAnnotationDbiaskpassbase64encBHBiobaseBiocBaseUtilsBiocGenericsBiocIOBiocParallelBiostringsbitbit64bitopsblobBSgenomebslibcachemcigarilloclicodetoolscoloccowplotcpp11crayoncrosstalkcurldata.tableDBIDelayedArraydigestdplyrepigraphdbevaluatefarverfastmapfontawesomeforeachformatRfsfutile.loggerfutile.optionsgassocplotgenericsgenetics.binaRiesGenomeInfoDbGenomicAlignmentsGenomicFeaturesGenomicRangesggplot2glmnetglueGPArotationgridExtragtablegwasgluegwasglue2gwasvcfhighrhtmltoolshtmlwidgetshttrieugwasrIRangesirlbaisobanditeratorsjquerylibjsonliteKEGGRESTknitrlabelinglambda.rlaterlatticelazyevallifecyclemagrittrMASSMatrixMatrixGenericsmatrixStatsmemoisemimemixsqpmnormtMRMixMRPRESSOnlmeopensslotelpbapplypillarpkgconfigplotlyplyrpngpromisespsychpurrrR6RadialMRrappdirsRColorBrewerRcppRcppArmadilloRcppEigenRCurlreshaperestfulrRhtslibrjsonrlangrmarkdownRsamtoolsRSQLitertracklayerS4ArraysS4VectorsS7sassscalesSeqinfoshapesnowSparseArraystringistringrSummarizedExperimentsurvivalsusieRsystibbletidyrtidyselecttinytexTwoSampleMRUCSC.utilsutf8VariantAnnotationvctrsviridisviridisLitewithrxfunXMLXVectoryaml

Readme and manuals

Help Manual

Help pageTopics
Calculate PVE.calc_pve
Helper function to extract colocalisation regions for when one dataset comes from a local file and another from OpenGWAS..cdat_from_mixed
Splits vector into chunks.chunk
Sub-function for the colocalisation analyses.coloc_sub
Sub function to run SuSiE and coloc.coloc_susie_sub
Link ENSG IDs with DGIdb.dgidb_linkage
Convert ENSG IDs -> gene names.ensg_to_name
Prepare gwasvcf files for coloc. This method will extract SNPs from one file using one chrompos and then look up those SNPs in the other file - this is to ensure coloc can be conducted upon two datasets of different genomic builds without the need of liftover..gwasvcf_to_coloc_rsid
Prepare gwasvcf files for PWCoCo.gwasvcf_to_pwcoco
Prepare ieugwasr data for PWCoCo.ieugwasr_to_pwcoco
IVW weighted delta.ivw_delta
Helper function for message printing..print_msg
Sub-function to run PWCoCo.pwcoco_sub
Read datasets.read_dataset
WR Taylor Approx of SE.wr_taylor_approx
Annotates the data using given IDsannotate_data
Annotate diseases with EFO IDsannotate_efo
Annotate ENSG IDs with gene namesannotate_ensg
Calculate F-statisticcalc_f_stat
Check if SNPs are good for use in analyses and mark them as such.check_snps
Annotate cis/trans SNPscis_trans
Combine MR and coloc results into one data.framecombine_results
Convert data.frame to gwasvcf format.dat_to_gwasvcf
Run colocalisation analysesdo_coloc
Run Mendelian randomisation analysesdo_mr
Generate drug target evidencedrug_target_evidence
Extract SNPs based on region for colocalisation analyses. Can be used before calling the `do_coloc` function or will be called as part of that function automatically.extract_matched_regions
Convert file(s) to gwasvcf format.file_to_gwasvcf
Forest plotforest_plot
Get column names from agnostic but formatted data.frameget_col_name
Harmonise exposure and outcomes.harmonise
Hello, World!hello
Check if SNP frequencies are ambiguousis_ambiguous
Check if SNP is palindromicis_palindromic
Entry point for the pipeline.mr_pipeline
Performs pairwise harmonisation and analyses - helpful when analysing many exposure-outcome pairs as performing the standard "linear" approach will be very slow.pairwise_analysis
Read exposuresread_exposure
Read outcomesread_outcome
Plots a regional plot of the area being tested for colocalisationregional_plot
Validates parameters in config filevalidate_config
Volcano plotvolcano_plot
Z score comparison plotz_comparison_plot
Z plotz_plot