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 云端基因组学
用工作流自动执行分析任务
241
String
greeting = read_string(written_greeting)
command
{
echo "${original_greeting} to you too"
}
output
{
File
repeated_greeting = stdout()
}
read_string()
WDL
标准库的函数,它读入文本文件的内容,将其以一个字符串
形式返回。因此该任务的目的是将文件内容读到一个字符串变量,接着用该变量新
编一条问候语并输往标准输出。
明白这一点,
ReadItBackToMe
调用声明所跟的其他代码就很容易理解。我们调用
ReadItBackToMe
任务,并指定用
WriteGreeting
任务的输出结果作为输入文件来编
写新问候语。
最后,我们来看这个新版工作流我们尚未探讨的最后一块代码:
output
{
File
outfile = ReadItBackToMe.repeated_greeting
}
除了在任务层级定义的各个
output
块之外,该工作流还有一个在工作流层级定义的
output
块。如仅运行工作流自身,该
output
块可有可无,而且它更多是出于习惯
而非对功能的考虑。在工作流层级定义输出,我们传递的信息是我们最关心工作流
输出的哪一部分。这也就是说,你可以出于功能目的而使用
output
块;例如我们有
一工作流嵌入其他工作流,并且需将其输出传给其他调用,第
9
章我们将动手练习
这种工作流。我们现在尝试运行该工作流 ...
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