bam filter losing metadata

Welcome @bobloblog!

The tool Map with BWA for Illumina (Galaxy Version 1.2.3) is deprecated and only outputs SAM data (that is not coordinate sorted). However, the next step of your workflow has the option for BAM input set (coordinate sorting is required for this datatype to be assigned). The mismatched datatype/sort order is likely where the problem comes up.

Try swapping out the older/deprecated version of the tool for the latest version in your workflow: Map with BWA - map short reads (< 100 bp) against reference genome (Galaxy Version 0.7.17.4). It will output BAM data that will work better, and avoid errors, with most other tools. This output format will also consume much less space in your account.

Alternative: The following is not recommended but is an option, if you really need to use the older BWA tool for some reason: Add in another one or two steps to your workflow, after mapping, and before downstream tools, to create proper inputs. Just using SAM-to-BAM might work, or you might need to run both SortSam (with default settings for a coordinate sort) then SAM-to-BAM.

ps: Next time you want to feedback for a workflow, please generate a share link and post that back (instead of screenshots). This is how: Sharing and Publishing your work. Including the exact error message presented in the interface in your post will also help if you want troubleshooting assistance from the community (error resulting from a workflow or not).

If you haven’t seen the troubleshooting help yet, please see: Troubleshooting resources for errors or unexpected results

Thanks!