Coder Social home page Coder Social logo

olinkrpackage's Introduction

OlinkAnalyze

The goal of OlinkAnalyze is to provide a versatile toolbox to enable easy and smooth handling of Olink NPX data to speed up your proteomic research. OlinkAnalyze provides functions ranging from reading Olink NPX data as exported by NPX Manager to various statistical tests and modelling, via different QC plot functions. Thereby providing a convenient pipeline for your Olink NPX data analysis.

Installation

# install.packages("devtools")
devtools::install_github(repo ='Olink-Proteomics/OlinkRPackage/OlinkAnalyze', build_vignettes = TRUE)

Vignette

browseVignettes("OlinkAnalyze")

Usage

Reading Olink NPX data

# open package
library(OlinkAnalyze)

# reading Olink NPX data 
my_NPX_data <- read_NPX(filename = "path/to/my_NPX_data.xlsx")

QC plot functions

There are several plot functions, below follows two examples using the package provided npx_data1 dataset:

# visualize the NPX distribution per sample per panel, example for one panel
olink_dist_plot(npx_data1 %>% filter(Panel == 'Olink CARDIOMETABOLIC')) +
  theme(axis.text.x = element_blank(),
        axis.ticks.x = element_blank()) +
  scale_fill_manual(values = c('turquoise3', 'red'))

dist_plot_example

# visualize potential outliers by IQR vs. sample median per panel, example for one panel
olink_qc_plot(npx_data1 %>% filter(Panel == 'Olink CARDIOMETABOLIC')) +
  scale_color_manual(values = c('turquoise3', 'red'))

qc_plot_example

Normalization

OlinkAnalyze provides several means of normalization when analyzing multiple datasets. Below follows an example of reference sample (aka bridge) normalization using the two package provided npx_data1 and npx_data2 datasets:

# identify bridge samples
bridge_samples <- intersect(x = npx_data1$SampleID,
               y = npx_data2$SampleID)

# bridge normalize
bridge_normalized_data <- olink_normalization(df1 = npx_data1,
                        df2 = npx_data2,
                        overlapping_samples_df1 = bridge_samples,
                        df1_project_nr = "20200001",
                        df2_project_nr = "20200002",
                        reference_project = "20200001")

Statistical tests and models

OlinkAnalyze provides several statistical tests and model tools. Below follows an example of how to perform a t-test and how to visualize the t-test output in a volcano plot using the package provided npx_data1 dataset:

# t-test npx_data1
ttest_results_NPX1 <- olink_ttest(df = npx_data1,
                variable = "Treatment")

# select names of the top #10 most significant proteins
ttest_sign_NPX1 <- ttest_results_NPX1 %>%
    head(n=10) %>%
    pull(OlinkID)

# volcano plot with annotated top #10 most significant proteins
olink_volcano_plot(p.val_tbl = ttest_results_NPX1,
                olinkid_list = ttest_sign_NPX1) +
  scale_color_manual(values = c('turquoise3', 'red'))

volcano_plot_example

Learn more

Please see the function specific help pages. Moreover, OlinkAnalyze includes two simulated NPX datasets for your convenience to help you explore the package and its functions.

Issues

Please report any issues (good or bad) to <biostattools[a]olink.com>.

Credits

OlinkAnalyze is developed and maintained by the Olink Proteomics Data Science Team.

olinkrpackage's People

Contributors

anderspiw avatar askpascal avatar kathy-nevola avatar klevdiamanti avatar marisand avatar olofmansson avatar orbmac avatar

Watchers

 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.