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 云端基因组学
用工作流自动执行分析任务
231
可能不知道
HelloWorld
的意思。这是编程语言文档常用示例,力求以最少代码,提
供一个入门示例,输出“
HelloWorld!
”。我们实际将运行三个基本
WDL
工作流,
演示初级功能。我们从最简短示例开始,接着增加代码,代码量刚好够展示核心功能。
不过实际使用中,这些代码并非必须。
8.3.1
编写最小示例,学习
WDL
基本句法
我们一起来看这个最简单示例。将
hello-world.wdl
工作流文件加载到
nano
编辑器:
$ nano $WF/hello-world/hello-world.wdl
上文讲过,
nano
是一款基础编辑器。打开文件后,你可以用键盘上的箭头键,滚动
查看文件。若欲退出编辑器,按
Ctrl+X
WDL
Hello World
最小示例如下所示:
version
1.0
workflow
HelloWorld {
call
WriteGreeting
}
task
WriteGreeting {
command
{
echo "Hello World"
}
output
{
File
output_greeting = stdout()
}
}
我们先来看含“
Hello World
”短语并将其用引号引起来的这一行,其余行先忽略。
你认识这行代码使用的命令吗?是的,它是简单的
echo
命令;你可以立即在你的终
端运行这一行代码:
$ echo "Hello World"
Hello World
232
8
这就是我们脚本的核心命令,它执行我们所期望的行动 ...
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