Hello Galaxy users and developers. I have an interesting question today concerning some of the exciting developments in galaxy concerning collation of dataset collections (p19). I am trying to develop a tool in galaxy that takes a dataset collection and produces some tabular results. In order to do this, I need to specify the filenames of interest (or their directory) to bash.
Looking at some of the code for Picard's MergeBamAlignments (as in the presentation above) I observe the following lines of Cheetah code:
#for $dataset in $aligned_or_read1_and_read2.aligned_bams: ALIGNED_BAM="${dataset.aligned_bam}" #end for
From this, it looks like the code iterates through the repeated inputs ("aligned_bams;" which seems to include dataset collections as an option) and allows access to the filename as dataset.aligned_bam. This code works great for However, the
following code merely echoes a full DatasetCollectionWrapper python object as a string into stdout. Other attempts have yielded segfaults and all sorts of goodies. I would like to cat the filenames into outFile, or merely have access to the filenames programmatically. Thanks for your help!
#for $dataset in $fastqc_results: echo "$dataset" #end for