Skip to Content
云端基因组学
book

云端基因组学

by Geraldine A. Van der Auwera, Brian D. O’Connor
April 2022
Beginner to intermediate
486 pages
10h 22m
Chinese
China Electric Power Press Ltd.
Content preview from 云端基因组学
Jupyter Notebooks
中的交互式分析
387
我们要在笔记本使用这三个函数,可以简单地将该
R
脚本内容复制到一个代码单元
格并运行它。然而,鉴于我们也许想在多个笔记本运行该脚本,而又不想维护多个
独立版本,我们还是用一种更聪明的方式导入代码。我们将该
R
脚本复制到笔记本
的本地存储,接着用
R
source()
数加载到笔记本:
In [43] ! gsutil cp gs://genomics-in-the-cloud/v1/scripts/plotting.R .
%R source("plotting.R")
上述命令输出的日志长达一页纸,故此不再展示。日志输出的背景为红色,这让人
有点担心,但大可不必,除非后续步骤失败。若真遇到问题,请核对你的输出与笔
记本预运行版本(里面还有自行练习部分的解决方案)的输出有何不同。如一切符
合预期,你现已装上几个新
R
包并将其加载到笔记本,绘图函数也就可以用了。
我们试试,好吧?首先试试密度图。
12.5.3
makeDensityPlot
绘制
QUAL
值密度图
makeDensityPlot
函数接受一个
DataFrame
和我们感兴趣的注释,生成密度图。该
图基本是直方图的平滑版,它可视化注释值的分布情况。我们可用该函数复现图
5-8
和图
5-9
。下面每个单元格,第一行代码创建图像,第二行调用图像名,绘制图像:
In [44] %%R
QUAL_density = makeDensityPlot(motherSNP.giab, "QUAL") ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
How to Overcome a Power Deficit

How to Overcome a Power Deficit

Cyril Bouquet, Jean-Louis Barsoux
The Human Factor in AI-Based Decision-Making

The Human Factor in AI-Based Decision-Making

Philip Meissner, Christoph Keding

Publisher Resources

ISBN: 9787519864422