Skip to Main Content
R Bioinformatics Cookbook
book

R Bioinformatics Cookbook

by Dan MacLean
October 2019
Intermediate to advanced content levelIntermediate to advanced
316 pages
9h 45m
English
Packt Publishing
Content preview from R Bioinformatics Cookbook

How it works...

In Step 1, we do some library loading and add a data loading step. As we mentioned previously, with MSnID, this is a little unusual. Instead of just calling a file reading function, we must first create and empty the MSnID object and load the data into it. We create msnid with the MSnID() function and then pass it to the read_mzid() function to actually put data into it. Next, we use the as() function to convert msnid into a data.table object—a data frame-like object that is optimized for large datasets.

In Step 2, we prepare a plot using the tidyverse packages, dplyr and ggplot. tidyverse packages all work really well in concert as they're centered on working with data frames. The usual way of working is to use the piping ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

R Bioinformatics Cookbook - Second Edition

R Bioinformatics Cookbook - Second Edition

Dan MacLean
R Cookbook, 2nd Edition

R Cookbook, 2nd Edition

JD Long, Paul Teetor

Publisher Resources

ISBN: 9781789950694Supplemental Content