Coder Social home page Coder Social logo

joerothwell / epic-metabolomics Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 219 KB

Scripts for analysis of metabolomics data relating to nutrition, health and disease in the EPIC study.

R 100.00%
metabolomics epidemiology epidemiology-analysis multivariate-analysis modelling

epic-metabolomics's Introduction

EPIC metabolomics

This repository puts together scripts that contain various different workflows for untargeted metabolomics data in the EPIC study. Analyses are for alcohol, coffee and acylcarnitine projects.

Manhattan plot showing results of a metabolome wide association study (MWAS) on coffee intake. Each point represents a spectral feature generated by the mass spectrometer after injection of serum samples and separation of components.

Description of files

alcohol_study_untarg.R runs two workflows for discovery of alcohol-related spectral features from untargeted metabolomics analyses. In the first, CS and HCC datasets are feature matched (with m/z and RT tolerances; fuzzyjoin package) and the remaining features subject to partial correlation with alcohol intake. In the second, only features from the CS study associated with alcohol intake are matched with all features from the HCC study, and the matched HCC features then tested for correlations with alcohol intake. Note: functions from Intake_correlation_new.R are required and must be run first.

Intake_cor_functions.R contains only the functions needed to run alcohol_study_untarg.R.

Intake_correlation_new.R Functions that perform a metabolome-wide association study for food intake in the EPIC cross-sectional study. Partial correlations are computed between spectral feature intensities and food intakes or lifestyle factors of interest, adjusting for confounders. The output is a data frame consisting of one row per feature, with other information such as median intensity and number of detections also extracted from the feature table. This output is a basis for compound identification, and two further functions use it to generate a correlation matrix or a Manhattan plot.

Feature_matching.R matches features from different untargeted metabolomics feature tables given mass and retention time tolerances. (For alcohol biomarker study)

CS_descriptives_coffee.R analyses coffee intake data in EPIC and extracts coffee intake data from the whole dataset.

Coffee_biomarkers_CS.R and Coffee_biomarkers_HCC.R calculate associations between known coffee intake biomarkers and factors of interest or HCC status in the EPIC cross-sectional and HCC studies respectively.

Acylcarnitines.R is an analysis of acylcarnitine plasma intensities extracted from untargeted data. Compounds correlations with food intake are tested and a heatmap plotted. Blood acylcarnitine intensies are also tested for associations with WCRF score.

epic-metabolomics's People

Contributors

joerothwell avatar wseng avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.