Code Monkey home page Code Monkey logo

mrmr's Introduction

This package has some functions that make MSstats a little nicer to use.

Data processing

  • preprocess.MSstats takes a CSV file generated by Skyline using the MSstats report functionality and a data frame with "Condition", "Run", and "BioReplicate" columns, does some cleanup and annotation, and produces an object suitable for processing.
  • process.MSstats takes the output of preprocess.MSstats and performs normalization using "best practice" parameters for MSstats. It will write the results to a file (according to the filepath argument), and will reload them from disk if they are present. This saves time when compiling Rmarkdown documents. The argument recompute should be set to TRUE if you want to reprocess the data even if a file object has been previously saved.
  • compare.MSstats works similarly to process.MSstats, but its input is a processed MSstats object and a comparison matrix defined according to the MSstats user manual.

Plotting

The built-in MSstats plots aren't terrible, but they don't return the ggplot object for further customization. These functions make some nice default plots, but importantly return the object so it can be customized with additional options or geoms.

  • draw.Condition takes a normalized MSstats object and a specific protein ID and generates a plot showing the quantification for each experimental condition. It performs an internal simple Light/Heavy normalization. The output plot is automatically a dot plot when n < 5, or a boxplot when n >= 5
  • draw.Volcano takes an MSstats comparison result object and a specific comparison name and generates a nice-looking volcano plot (adj.pvalue vs. log2FC). Points are colored by significance threshold, and any proteins with log2FC > 1 are labeled.
  • print.Conditions and print.Volcanos are simple for loops that will iterate over an entire normalized MSstats object or comparison object, respectively, and generate those plots for all proteins or comparisons. These are just printed to the session and should be saved separately if desired, or piped to a file object.

mrmr's People

Contributors

jwinget avatar

Watchers

 avatar James Cloos 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.