Bash Helpers
Learn to build an applet that performs a basic SAMtools count with the aid of bash helper variables.
Source Code
Step 1. Download BAM Files
dx-download-all-inputsStep 2. Create an Output Directory
mkdir -p out/counts_txtStep 3. Run SAMtools View
# [VARIABLE]_path the absolute string path to the file.
$ echo $mappings_bam_path
/home/dnanexus/in/mappings_bam/my_mappings.bam
# [VARIABLE]_prefix the file name minus the longest matching pattern in the dxapp.json file
$ echo $mappings_bam_prefix
my_mappings
# [VARIABLE]_name the file name from the platform
$ echo $mappings_bam_name
my_mappings.bamStep 4. Upload Result
Last updated
Was this helpful?