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 云端基因组学
真实基因组工作流详解
281
以找到下面这行代码,除此之外还有一堆类似的代码行。我们最初开始探究这个工
作流时略过了这些行:
import
"tasks/UnmappedBamToAlignedBam.wdl"
as
ToBam
这种写法我们还是头一次见。该行像是我们正在引用其他
WDL
文件。其中,
import
部分指向另一个叫作
UnmappedBamToAlignedBam.wdl
WDL
文件,它位
于二级目录
tasks
之下。现在代码的含义开始变得清晰:当工作流引擎读到这一行,
它将导入那个文件的所有代码,并将其当作整个工作流的一部分。该导入语句的“
as
ToBam
”部分为其分配一个别名,我们可用该别名引用被导入文件的内容,而不用使
用整个文件路径。例如,这是我们之前见过的调用语句:
call
ToBam.UnmappedBamToAlignedBam
我们可以这样解读该句:“从
ToBam
代码,调用
UnmappedBamToAlignedBam
。”那
UnmappedBamToAlignedBam
是什么?它是一个任务吗?快速查看导入语句所引用
WDL
文件,接着深吸一口气。它本身是一个叫作
UnmappedBamToAlignedBam
完整工作流:
# WORKFLOW DEFINITION
workflow
UnmappedBamToAlignedBam {
我们正在研究一个由工作流组成的工作流?战神金刚,集合!
这实际上是个惊喜。即使工作流图最初给我们留下它很简单的错误印象,我们猜测
这条流水线应该相当复杂。我们发现它用导入语句结合多个简单工作流 ...
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