Python Apps
Learn to build a Python app on the DNAnexus Platform.
Before You Begin
source environmentdx loginRevisiting the Quality Trimmer
$ dx-app-wizard
⋮
App Name: python_trimmer_example
⋮ (<ENTER> to accept defaults)
Input Specification
You will now be prompted for each input parameter to your app.
Each parameter should have a unique name that uses only the underscore (`_`) and alphanumeric characters, and does not start with a number.
1st input name (<ENTER> to finish): input_name
Label (optional human-readable name) []: Input file
Your input parameter must be of one of the following classes:
applet array:file array:record file int
array:applet array:float array:string float record
array:boolean array:int boolean hash string
Choose a class (<TAB> twice for choices): file
This is an optional parameter [y/n]: n
2nd input name (<ENTER> to finish): <ENTER>
Output Specification
You will now be prompted for each output parameter of your app. Each parameter should have a unique
name that uses only the underscore (`_`) and alphanumeric characters, and does not start with a
number.
1st output name (<ENTER> to finish): output_file
Label (optional human-readable name) []: Output file
Choose a class (<TAB> twice for choices): file
2nd output name (<ENTER> to finish): <ENTER>
Template Options
You can write your app in any programming language. Templates are available for the
following supported languages: Python and bash
Programming language [Python]: <ENTER>
⋮
Execution pattern [basic]: <ENTER>
⋮Generated Files
Building and Running an App on the Platform
Last updated
Was this helpful?