COVID Variant Analysis on Azure using Nextflow. Part 2

Published Jan 31 2022 12:02 PM 1,172 Views
Microsoft

This is a three part series example of running Nextflow on Azure.

Part 1: Basics

Part 2: Getting started with Nextflow & HAVoC (This blog)

Part 3: Data analysis & visualization (coming soon)

 

This is part two of the Nextflow on Azure blog series. In the last post we introduced the COVID lineage detection example that we’ll be using. We also introduced Nextflow and gave a high-level overview of how Nextflow works. In this blog, we’ll walk-through how-to setup on Nextflow and how to run Nextflow jobs on your local computer as well as how to run jobs on Azure.

 

Nextflow can be installed on any POSIX compliant operating system such as Linux, and MacOS. You can also use the WSL for Linux to run Nextflow on Windows. We will show an example of how to install this on WSL. Follow instructions on the “Getting Started” section to get started.

To validate the version of Java installed run the “java -version” command. Your output should be like one below, adjusting for version of Java installed.

JoeKarasha_0-1643327277480.png

 

Once you have Java installed successfully, you can run the command to install Nextflow. If it works, you’ll see output that resembles the screenshots below. I tried to capture various stages so your output might be slightly different.

JoeKarasha_1-1643327277486.png

 

JoeKarasha_2-1643327277512.png

 

You can confirm that Nextflow is successfully installed by running the “./nextflow -v” command. Your output should be like the one below.

JoeKarasha_3-1643327277513.png

 

After validating the installation is complete, run the “hello world” equivalent to test your installation. Sample output is included below.

JoeKarasha_4-1643327277520.png

 

If all the steps completed successfully, congratulations, you have Nextflow installed and running on your local compute environment. Let’s shift our focus to configure Nextflow to run jobs on Azure. In the previous blog, we introduced HAVoC, a tool that can be used for COVID variant analysis. We have created a Nextflow project that runs the HAVoC pipeline on Azure. You can use that repo to follow along.

Running Nextflow on Azure.

At their most basic form, Nextflow jobs are defined in a single file with a “.nf” extension.  For non-trivial examples, the code could be laid out in numerous folders. Below is the example of the HAVoC project we’re going to use in Nextflow.

JoeKarasha_5-1643327277528.png

 

The “bin” folder and the “main.nf” will determine what Nextflow runs and the “conf” folder and the “Nextflow.config” file determines how the jobs will be run.

Configuration.

Let’s start by looking at the “Nextflow.config” file.

JoeKarasha_6-1643327277531.png

 

Plugins: ‘nf-azure’ means you’ll be running Nextflow on Azure

Process: Provides the name of the container that Azure will load to run your Nextflow job. This provides a nice clean way to customize the runtime environment for your job.

Profiles: Allows you to run multiple environments. This will allow the job to be run locally or on Azure as needed. We can do most of our dev/test locally and then push the final run to Azure. Notice that the profiles point to additional configuration files. To run on Azure the minimum configuration needs to specify the following parameters:

JoeKarasha_7-1643327277534.png

 

Process: Tells Nextflow to use the Azure Batch executor. It’s possible to use Kubernetes as the executor by using Azure Kubernetes Service.

Azure.Storage: Tells Nextflow which Azure Storage account to use for its working directory.

Azure.Batch: Tells Nextflow which Azure Batch account to use for its executor.

With that configuration, Nextflow is now able to connect and use your Azure resources to execute your job.

 

Executable.

Let’s now briefly look at what will be run when you run “main.nf”.

JoeKarasha_8-1643327277544.png

 

Although this script is quite intimidating to look at, it can be boiled down to three sections:

Channel: This will take the input fastq file pair and create a tuple for each read pair. That tuple will be one of the inputs to the process task.

Parameter Check: The next two blocks of code, check for the presence of a reference file and an adapter file. Both these files are inputs into the HAVoC script.

Process: This will be the main action block for Nextflow. In this example we have a single process defined. You’ll notice the process called “runHavoc” can be broken down into three distinct sections. It has an “input” section that defines all the input parameters. It has an “output” section that defines all the output parameters. It also has an execution block. The execution block for this process will use the bash shell to execute the Havoc.sh shell script and pass in all the required parameters.

Run.

JoeKarasha_9-1643327277546.png

 

Nextflow run main.nf: Instructs Nextflow to run the main.nf file that we looked at above.

-w: Instructs Nextflow to use the “Nextflow” container in the configured storage account as it’s working directory

-nextera: Passes in the nextera adapter file that the HAVoC script expects as an input.

-ref: Passes in the reference file that the HAVoC script expects as in input.

When the job is done running, it will generate and store all the output files in the configured storage account container. The script will output progress/status messages on the console. You can use Batch Explorer or the Azure portal to view the progress/status of the Azure Batch execution.

 

On the next blog, we’ll look at the output of the process, specifically the “pangolearn_assignments.csv” file. We’ll show how the data can be used to generate some reports visualizations to show trends in variant spread.

%3CLINGO-SUB%20id%3D%22lingo-sub-3075741%22%20slang%3D%22en-US%22%3ECOVID%20Variant%20Analysis%20on%20Azure%20using%20Nextflow.%20Part%202%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3075741%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20a%20three%20part%20series%20example%20of%20running%20Nextflow%20on%20Azure.%3C%2FP%3E%0A%3CP%3E%3CA%20title%3D%22Part%201%20blog%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fhealthcare-and-life-sciences%2Fcovid-variant-analysis-on-azure-using-nextflow%2Fba-p%2F3074427%22%20target%3D%22_self%22%3EPart%201%3A%20Basics%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20title%3D%22Current%20Blog%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fhealthcare-and-life-sciences%2Fcovid-variant-analysis-on-azure-using-nextflow-part-2%2Fba-p%2F3075741%22%20target%3D%22_self%22%3EPart%202%3A%20Getting%20started%20with%20Nextflow%20%26amp%3B%20HAVoC%20(This%20blog)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EPart%203%3A%20Data%20analysis%20%26amp%3B%20visualization%20(coming%20soon)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20part%20two%20of%20the%20Nextflow%20on%20Azure%20blog%20series.%20In%20the%20last%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fhealthcare-and-life-sciences%2Fcovid-variant-analysis-on-azure-using-nextflow%2Fba-p%2F3074427%22%20target%3D%22_self%22%3Epost%3C%2FA%3E%26nbsp%3Bwe%20introduced%20the%20COVID%20lineage%20detection%20example%20that%20we%E2%80%99ll%20be%20using.%20We%20also%20introduced%20Nextflow%20and%20gave%20a%20high-level%20overview%20of%20how%20Nextflow%20works.%20In%20this%20blog%2C%20we%E2%80%99ll%20walk-through%20how-to%20setup%20on%20Nextflow%20and%20how%20to%20run%20Nextflow%20jobs%20on%20your%20local%20computer%20as%20well%20as%20how%20to%20run%20jobs%20on%20Azure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENextflow%20can%20be%20installed%20on%20any%20POSIX%20compliant%20operating%20system%20such%20as%20Linux%2C%20and%20MacOS.%20You%20can%20also%20use%20the%20WSL%20for%20Linux%20to%20run%20Nextflow%20on%20Windows.%20We%20will%20show%20an%20example%20of%20how%20to%20install%20this%20on%20WSL.%20Follow%20instructions%20on%20the%20%E2%80%9C%3CA%20href%3D%22https%3A%2F%2Fnextflow.io%2Findex.html%23GetStarted%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EGetting%20Started%3C%2FA%3E%E2%80%9D%20section%20to%20get%20started.%3C%2FP%3E%0A%3CP%3ETo%20validate%20the%20version%20of%20Java%20installed%20run%20the%20%E2%80%9Cjava%20-version%E2%80%9D%20command.%20Your%20output%20should%20be%20like%20one%20below%2C%20adjusting%20for%20version%20of%20Java%20installed.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JoeKarasha_0-1643327277480.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343227i3A69FAE9A5852897%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JoeKarasha_0-1643327277480.png%22%20alt%3D%22JoeKarasha_0-1643327277480.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20you%20have%20Java%20installed%20successfully%2C%20you%20can%20run%20the%20command%20to%20install%20Nextflow.%20If%20it%20works%2C%20you%E2%80%99ll%20see%20output%20that%20resembles%20the%20screenshots%20below.%20I%20tried%20to%20capture%20various%20stages%20so%20your%20output%20might%20be%20slightly%20different.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JoeKarasha_1-1643327277486.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343226iB3F20DADFD90EBA9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JoeKarasha_1-1643327277486.png%22%20alt%3D%22JoeKarasha_1-1643327277486.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JoeKarasha_2-1643327277512.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343228i881CCAC84F68F22E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JoeKarasha_2-1643327277512.png%22%20alt%3D%22JoeKarasha_2-1643327277512.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20confirm%20that%20Nextflow%20is%20successfully%20installed%20by%20running%20the%20%E2%80%9C.%2Fnextflow%20-v%E2%80%9D%20command.%20Your%20output%20should%20be%20like%20the%20one%20below.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JoeKarasha_3-1643327277513.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343229i5637F6B10029DBE5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JoeKarasha_3-1643327277513.png%22%20alt%3D%22JoeKarasha_3-1643327277513.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20validating%20the%20installation%20is%20complete%2C%20run%20the%20%E2%80%9Chello%20world%E2%80%9D%20equivalent%20to%20test%20your%20installation.%20Sample%20output%20is%20included%20below.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JoeKarasha_4-1643327277520.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343230i51AEFDAA9F1C51EF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JoeKarasha_4-1643327277520.png%22%20alt%3D%22JoeKarasha_4-1643327277520.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EIf%20all%20the%20steps%20completed%20successfully%2C%20congratulations%2C%20you%20have%20Nextflow%20installed%20and%20running%20on%20your%20local%20compute%20environment.%20Let%E2%80%99s%20shift%20our%20focus%20to%20configure%20Nextflow%20to%20run%20jobs%20on%20Azure.%20In%20the%20previous%20blog%2C%20we%20introduced%20HAVoC%2C%20a%20tool%20that%20can%20be%20used%20for%20COVID%20variant%20analysis.%20We%20have%20created%20a%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fnf-havoc%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ENextflow%20project%3C%2FA%3E%20that%20runs%20the%20HAVoC%20pipeline%26nbsp%3Bon%20Azure.%20You%20can%20use%20that%20repo%20to%20follow%20along.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-336532281%22%20id%3D%22toc-hId-338373588%22%3ERunning%20Nextflow%20on%20Azure.%3C%2FH2%3E%0A%3CP%3EAt%20their%20most%20basic%20form%2C%20Nextflow%20jobs%20are%20defined%20in%20a%20single%20file%20with%20a%20%E2%80%9C.nf%E2%80%9D%20extension.%20%26nbsp%3BFor%20non-trivial%20examples%2C%20the%20code%20could%20be%20laid%20out%20in%20numerous%20folders.%20Below%20is%20the%20example%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fnf-havoc%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EHAVoC%3C%2FA%3E%20project%20we%E2%80%99re%20going%20to%20use%20in%20Nextflow.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JoeKarasha_5-1643327277528.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343231iCEAFDB30529D2FB5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JoeKarasha_5-1643327277528.png%22%20alt%3D%22JoeKarasha_5-1643327277528.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20%E2%80%9Cbin%E2%80%9D%20folder%20and%20the%20%E2%80%9Cmain.nf%E2%80%9D%20will%20determine%20what%20Nextflow%20runs%20and%20the%20%E2%80%9Cconf%E2%80%9D%20folder%20and%20the%20%E2%80%9CNextflow.config%E2%80%9D%20file%20determines%20how%20the%20jobs%20will%20be%20run.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1027093755%22%20id%3D%22toc-hId-1028935062%22%3EConfiguration.%3C%2FH3%3E%0A%3CP%3ELet%E2%80%99s%20start%20by%20looking%20at%20the%20%E2%80%9CNextflow.config%E2%80%9D%20file.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JoeKarasha_6-1643327277531.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343232i685FDEE1C7FCCDB8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JoeKarasha_6-1643327277531.png%22%20alt%3D%22JoeKarasha_6-1643327277531.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EPlugins%3C%2FSTRONG%3E%3A%20%E2%80%98nf-azure%E2%80%99%20means%20you%E2%80%99ll%20be%20running%20Nextflow%20on%20Azure%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EProcess%3A%3C%2FSTRONG%3E%20Provides%20the%20name%20of%20the%20container%20that%20Azure%20will%20load%20to%20run%20your%20Nextflow%20job.%20This%20provides%20a%20nice%20clean%20way%20to%20customize%20the%20runtime%20environment%20for%20your%20job.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EProfiles%3A%3C%2FSTRONG%3E%20Allows%20you%20to%20run%20multiple%20environments.%20This%20will%20allow%20the%20job%20to%20be%20run%20locally%20or%20on%20Azure%20as%20needed.%20We%20can%20do%20most%20of%20our%20dev%2Ftest%20locally%20and%20then%20push%20the%20final%20run%20to%20Azure.%20Notice%20that%20the%20profiles%20point%20to%20additional%20configuration%20files.%20To%20run%20on%20Azure%20the%20minimum%20configuration%20needs%20to%20specify%20the%20following%20parameters%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JoeKarasha_7-1643327277534.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343233iCD869B8E1B03646D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JoeKarasha_7-1643327277534.png%22%20alt%3D%22JoeKarasha_7-1643327277534.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EProcess%3A%3C%2FSTRONG%3E%20Tells%20Nextflow%20to%20use%20the%20Azure%20Batch%20executor.%20It%E2%80%99s%20possible%20to%20use%20Kubernetes%20as%20the%20executor%20by%20using%20Azure%20Kubernetes%20Service.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAzure.Storage%3A%3C%2FSTRONG%3E%20Tells%20Nextflow%20which%20Azure%20Storage%20account%20to%20use%20for%20its%20working%20directory.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAzure.Batch%3A%3C%2FSTRONG%3E%20Tells%20Nextflow%20which%20Azure%20Batch%20account%20to%20use%20for%20its%20executor.%3C%2FP%3E%0A%3CP%3EWith%20that%20configuration%2C%20Nextflow%20is%20now%20able%20to%20connect%20and%20use%20your%20Azure%20resources%20to%20execute%20your%20job.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--780360708%22%20id%3D%22toc-hId--778519401%22%3EExecutable.%3C%2FH3%3E%0A%3CP%3ELet%E2%80%99s%20now%20briefly%20look%20at%20what%20will%20be%20run%20when%20you%20run%20%E2%80%9Cmain.nf%E2%80%9D.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JoeKarasha_8-1643327277544.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343234i32FEA81DA74BC1F9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JoeKarasha_8-1643327277544.png%22%20alt%3D%22JoeKarasha_8-1643327277544.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlthough%20this%20script%20is%20quite%20intimidating%20to%20look%20at%2C%20it%20can%20be%20boiled%20down%20to%20three%20sections%3A%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EChannel%3A%3C%2FSTRONG%3E%20This%20will%20take%20the%20input%20fastq%20file%20pair%20and%20create%20a%20tuple%20for%20each%20read%20pair.%20That%20tuple%20will%20be%20one%20of%20the%20inputs%20to%20the%20process%20task.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EParameter%20Check%3A%3C%2FSTRONG%3E%20The%20next%20two%20blocks%20of%20code%2C%20check%20for%20the%20presence%20of%20a%20reference%20file%20and%20an%20adapter%20file.%20Both%20these%20files%20are%20inputs%20into%20the%20HAVoC%20script.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EProcess%3A%3C%2FSTRONG%3E%20This%20will%20be%20the%20main%20action%20block%20for%20Nextflow.%20In%20this%20example%20we%20have%20a%20single%20process%20defined.%20You%E2%80%99ll%20notice%20the%20process%20called%20%E2%80%9CrunHavoc%E2%80%9D%20can%20be%20broken%20down%20into%20three%20distinct%20sections.%20It%20has%20an%20%E2%80%9Cinput%E2%80%9D%20section%20that%20defines%20all%20the%20input%20parameters.%20It%20has%20an%20%E2%80%9Coutput%E2%80%9D%20section%20that%20defines%20all%20the%20output%20parameters.%20It%20also%20has%20an%20execution%20block.%20The%20execution%20block%20for%20this%20process%20will%20use%20the%20bash%20shell%20to%20execute%20the%20Havoc.sh%20shell%20script%20and%20pass%20in%20all%20the%20required%20parameters.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1707152125%22%20id%3D%22toc-hId-1708993432%22%3ERun.%3C%2FH3%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JoeKarasha_9-1643327277546.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343235i4A647163C82CDD5F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JoeKarasha_9-1643327277546.png%22%20alt%3D%22JoeKarasha_9-1643327277546.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENextflow%20run%20main.nf%3A%20%3C%2FSTRONG%3EInstructs%20Nextflow%20to%20run%20the%20main.nf%20file%20that%20we%20looked%20at%20above.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E-w%3A%3C%2FSTRONG%3E%20Instructs%20Nextflow%20to%20use%20the%20%E2%80%9CNextflow%E2%80%9D%20container%20in%20the%20configured%20storage%20account%20as%20it%E2%80%99s%20working%20directory%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E-nextera%3A%3C%2FSTRONG%3E%20Passes%20in%20the%20nextera%20adapter%20file%20that%20the%20HAVoC%20script%20expects%20as%20an%20input.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E-ref%3A%3C%2FSTRONG%3E%20Passes%20in%20the%20reference%20file%20that%20the%20HAVoC%20script%20expects%20as%20in%20input.%3C%2FP%3E%0A%3CP%3EWhen%20the%20job%20is%20done%20running%2C%20it%20will%20generate%20and%20store%20all%20the%20output%20files%20in%20the%20configured%20storage%20account%20container.%20The%20script%20will%20output%20progress%2Fstatus%20messages%20on%20the%20console.%20You%20can%20use%20Batch%20Explorer%20or%20the%20Azure%20portal%20to%20view%20the%20progress%2Fstatus%20of%20the%20Azure%20Batch%20execution.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOn%20the%20next%20blog%2C%20we%E2%80%99ll%20look%20at%20the%20output%20of%20the%20process%2C%20specifically%20the%20%E2%80%9Cpangolearn_assignments.csv%E2%80%9D%20file.%20We%E2%80%99ll%20show%20how%20the%20data%20can%20be%20used%20to%20generate%20some%20reports%20visualizations%20to%20show%20trends%20in%20variant%20spread.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3075741%22%20slang%3D%22en-US%22%3E%3CP%3ENextflow%20is%20a%20popular%20open-source%20tool%20for%20running%20scientific%20workflows.%20We'll%20use%20it%20to%20run%20genomic%20pipelines.%20We'll%20show%20you%20how%20to%20quickly%20get%20started%20on%20Nextflow%20on%20Azure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22nextflow-image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343236iB5FC81C816A7B6BF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22nextflow-image.png%22%20alt%3D%22nextflow-image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3075741%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGenomics%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHLS_Hack%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELife%20Sciences%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Jan 31 2022 05:37 PM
Updated by: