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 云端基因组学
用工作流自动执行分析任务
259
(按严格的技术定义,应是数组),其名称由任务所指定的输出变量名来确
定。因此该例中尽管
HaplotypeCallerGVCF
任务单个调用的输出值(名称为
HaplotypeCallerGVCF.output_gvcf
)是一个
GVCF
文件,但是
workflow
块中所引
用的
HaplotypeCallerGVCF.output_gvcf
的值是一个
GVCF
文件列表,这些文件是
scatter
块内生成的。我们将其引用值传给下一个任务调用,我们实则是将所有
文件的列表作为一个数组传入。
操作顺序
调用的执行顺序完全由任务调用的输入和输出的依赖关系所决定。因为
MergeVCFs
接受分发出去并行执行的
HaplotypeCallerGVCF
调用的输出,所以
它只能在所有
HaplotypeCallerGVCF
调用执行完毕并得到输出之后才能运行。
这意味着我们可以将
MergeVCFs
调用声明放到
workflow
块的起始位置,但它
仍然在最后执行。然而为增加可读性,我们喜欢按逻辑顺序编写工作流。我们
鼓励你也这样做,除非你是“虐待狂”。
我们再讲几个细节,以此结束这部分的探索。首先你也许已注意到,我们显式声明
MergeVCFs
调用所得输出作为工作流层级
output
块中工作流的最终输出。虽然技
术上不作要求,但这种做法很好。其次,为
BAM
文件及其索引和片段文件声明的
变量,都上推到工作流层级。对于
BAM
文件及其索引,这一改变使得我们可以在
两个任务调用的
input
块中生成输出文件名。如要将任务定义放到一个常用库,这 ...
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