"--parallel"to allow multiple downloads in parallel:
"~/in/name_of_input_field/", named after the input field. Files retain their original filenames as supplied by the user who launched the applet.
"SRR001.bam", it will be downloaded into
NOTE: The variable "$mappings_prefix" is automatically computed by the system by starting from the filename and removing any suffixes that match the patterns specified in dxapp.json for this input field.
dx download "$name_of_input_field"
"$xxxxxx_name"variable (as shown in the table above) to refer to that filename.
dx download "$name_of_input_field" -o local_filename
dx cat "$name_of_input_field" | command
dx-download-all-inputs --except name_of_input_field1 --except name_of_input_field2
dx download "$name_of_input_field1"
dx cat "$name_of_input_field2" | command
dx-mount-all-inputscommand-line utility. You can use it by adding this line to your script.sh:
dx-mount-all-inputsuses the same directory structure as illustrated above for
dx-download-all-inputs, except that the files are mounted to the respective location rather than downloaded. When using
dx-mount-all-inputs, input files do not take up local storage because they are mounted using Linux FUSE technology and streamed behind the scenes transparently when accessed.
id=$(dx upload /path/to/local/file --brief)
dx-jobutil-add-output name_of_output_field "$id"
--path /subfolder/remote_filename --parents
mkdir -p ~/out/name_of_output_field1/ ~/out/name_of_output_field2/
mv file1 ~/out/name_of_output_field1/
mv file2 ~/out/name_of_output_field2/
mv file1 ~/out/name_of_output_field1/renamed_file1
mkdir -p ~/out/name_of_output_field1/subfolder/
mv file1 ~/out/name_of_output_field1/subfolder/
attr -s key -V value ~/out/name_of_output_field1/file1
"--xattr-properties"to the dx-upload-all-outputs invocation: