dxapp.jsonwith the following text:
coolapp), the type of interpreter (
python3) to run our script with, and a path (
code.py) to the script that we will create next. (
"version":"0") refers to the version of Ubuntu 20.04 application execution environment that supports (
code.pywith the following text:
dx login. In the directory with the two files above, run:
dx run, the app ran on its own Linux instance in the cloud. You have exclusive, secure access to the CPU, storage, and memory on the instance. The DNAnexus API lets your app read and write data on the Platform, as well as launch other apps.
code.pyto run BLAST:
dx uploador via the website. If you use the Demo Data inputs, make sure the project you are running your app in is the same region as the Demo Data project.
dx build -a, and run it like this:
dx head report.txt, download it with
dx download, or view it on the website.
dx build -a. You can run it in the same way as before, but now we can add the applet to a workflow. Click "New Workflow" while looking at your project on the website, and click on
coolapponce to add it to the workflow. You'll see inputs and outputs appear on the workflow stage which can be connected to other stages in the workflow.
dx run coolappwith no input arguments, it will prompt you for the input values for
dx run workflowname.
dx-app-wizard. This tool will prompt you with a series of questions with which it will create the basic files needed for a new app. It also gives you the option of writing your app as a bash shell script instead of Python. Just run
dx-app-wizardto try it out.