Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tools/bioext/bam2msa.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
</macros>
<expand macro="requirements"/>
<command detect_errors="exit_code"><![CDATA[
## avoid bam2msa to create .bai in inputdir
ln -s '$input' input_bam &&
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Galaxy already stores the index files (only for bam) and you can access it with:$input.metadata.bam_index. So ln -s '$input.metadata.bam_index' input_bam.bai may avoid that bam2msa needs to recreate it?

But I guess then we need a version bump.

ln -s '$input.metadata.bam_index' input_bam.bai &&
bam2msa
#if $region_start and $region_end:
-r $region_start:$region_end
#end if
'$input' '$output'
'input_bam' '$output'
]]></command>
<inputs>
<param name="input" type="data" format="bam,sam" label="Input BAM file"/>
Expand Down