dx
as an invocation command for navigating the data objects on the DNAnexus platform. By adding dx
in front of commonly used bash commands (e.g. dx ls
, dx cd
, dx mv
, and dx cp
), you can list objects, change folders, move data objects, and copy objects stored in the platform; all on the command-line./
of the project. You can list the objects and folders in your current folder with dx ls
.dx ls -l
.:
, then the path within the project where /
is the root folder of the project." "
), so dx
interprets the spaces as part of the folder name, not as a new command.*
as a wildcard to represent all objects whose names contain .fasta
. This returns only a subset of the objects returned in the original query. Again we enclosed our path in " "
so dx
correctly interprets the asterisk and the spaces in the path.dx pwd
command. You can switch contexts to a subfolder in a project using dx cd
.ce10.fasta.gz
to C.elegans10.fastq.gz
.dx cp
. Below we show an example to copy a human reference genome FASTA file (hs37d5.fa.gz
) from a public project, “Reference Genome Files”, to a project “Scratch Project” that the user has ADMINISTER permission to.dx cp folder_name destination_path
. Folders will automatically be copied recursively.NOTE: The platform does NOT allow copying a data object within the same project, since each specific data object would exist only once in a project. Additionally, it is prohibited to copy any data object between projects that located in different cloud regions throughdx cp
.
dx select
. It brings up a prompt with a list of projects for you to select from. In the following example, the user has entered option 2 to select the project named "Mouse".dx select --public
:dx select
will prompt list of projects that you have at least CONTRIBUTE permission to. If you wanted to switch to a project that you have VIEW permission to to view the data objects, you can run dx select --level VIEW
to list all the projects in which you have at least VIEW permission to.dx select [project-ID | project-name]
: