Advanced CLI
Batch Runs in CLI
# Generate batch file by regex
$ dx generate_batch_inputs -iinput_fwd='(.*)_R1_001.fastq.gz' -iinput_rev='(.*)_R2_001.fastq.gz'
# Show the local file
$ cat dx_batch.0000.tsv
# Use the local batch file
$ dx run fastp --batch-tsv dx_batch.0000.tsv -iadapter_fa=/data/adapters.fa -iprefix='Sample1'
Overview of DX Commands
There are about 100 dx
commands, which you can find by executing dx help all
:
add
: Add one or more items to a listadd developers
: Add developers for an appadd member
: Grant a user membership to an orgadd stage
: Add a stage to a workflowadd users
: Add authorized users for an appadd_types
: Add types to a data objectapi
: Call an API methodarchive
: Requests for the specified set files or for the files in a single specified folder in one project to be archived on the platformbuild
: Create a new applet/app, or a workflowbuild_asset
: Build an asset bundlecat
: Print file(s) to stdoutcd
: Change the current working directoryclearenv
: Clears all environment variables set by dxclose
: Close data object(s)cp
: Copy objects and/or folders between different projectsdescribe
: Describe a remote objectdownload
: Download file(s)env
: Print all environment variables in useexit
: Exit out of the interactive shellextract_dataset
: Retrieves the data or generates SQL to retrieve the data from a dataset or cohort for a set of entity.fields. Additionally, the dataset's dictionary can be extracted independently or in conjunction with data. Listing options enable enumeration of the entities and their respective fields in the dataset.find analyses
: List analyses in the current projectfind apps
: List available appsfind data
: List data objects in the current projectfind executions
: List executions (jobs and analyses) in the current projectfind globalworkflows
: List available global workflowsfind jobs
: List jobs in the current projectfind org members
: lists members in the orgfind org projects
: lists projects billed to the orgfind org apps
: lists apps billed to the orgfind org apps
: List apps billed to the specified orgfind org members
: List members in the specified orgfind org projects
: List projects billed to the specified orgfind orgs
: List orgsfind projects
: List projectsgenerate_batch_inputs
: Generate a batch plan (one or more TSV files) for batch executionget
: Download records, apps, applets, workflows, files, and databasesget_details
: Get details of a data object (cf details)head
: Print part of a filehelp
: Display help messages and dx commands by categoryinstall
: Install an appinvite
: Invite another user to a project or make it publiclist database
: List entities associated with a specific database. Forlist database files
: lists database files associated with a specific database.list developers
: List developers for an applist stages
: List the stages in a workflowlist users
: List authorized users for an applogin
: Log in (interactively or with an existing API token)logout
: Log out and remove credentialsls
: List folders and/or objects in a foldermake_download_url
: Create a file download link for sharingmkdir
: Create a new foldermv
: Move or rename objects and/or folders inside a projectnew org
: Create new non-billable orgnew project
: Create a new projectnew record
: Create a new recordnew user
: Create a new user accountnew workflow
: Create a new workflowpublish
: Publish an app or a global workflowpwd
: Print current working directoryremove developers
: Remove developers for an appremove member
: Revoke the org membership of a userremove stage
: Remove a stage from a workflowremove users
: Remove authorized users for an appremove_types
: Remove types from a data objectrename
: Rename a project or data objectrm
: Remove data objects and foldersrmdir
: Remove a folderrmproject
: Delete a projectrun
: Run an applet, app, or workflowselect
: List and select a project to switch toset_details
: Set details on a data objectset_properties
: Set properties of a project, data object, or executionset_visibility
: Set visibility on a data objectsetenv
: Sets environment variables for the sessionssh
: Connect to a running job via SSHssh_config
: Configure SSH keys for your DNAnexus accounttag
: Tag a project, data object, or executionterminate
: Terminate jobs or analysestree
: List folders and objects in a treeunarchive
: Requests for the specified set files or for the files in a single specified folder in one project to be unarchived on the platform.uninstall
: Uninstall an appuninvite
: Revoke others' permissions on a project you administerunset_properties
: Unset properties of a project, data object, or executionuntag
: Untag a project, data object, or executionupdate member
: Update the membership of a user in an orgupdate org
: Update information about an orgupdate project
: Updates a specified project with the specified optionsupdate stage
: Update the metadata for a stage in a workflowupdate workflow
: Update the metadata for a workflowupgrade
: Upgrade dx-toolkit (the DNAnexus SDK and this program)upload
: Upload file(s) or directorywait
: Wait for data object(s) to close or job(s) to finishwatch
: Watch logs of a job and its subjobswhoami
: Print the username of the current user
Review
You are now able to:
Describe how to use metadata and the dx find data command on the CLI
Create and use batch file processing using the CLI
Describe the use cases that warrant the Cloud Workstation
Resources
To create a support ticket if there are technical issues:
Go to the Help header (same section where Projects and Tools are) inside the platform
Select "Contact Support"
Fill in the Subject and Message to submit a support ticket.
Last updated
Was this helpful?