Skip to content

Commit

Permalink
Use from_work_dir in CONVERTER_fasta_to_fai
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed May 14, 2018
1 parent 1fc06c2 commit 5d7fc1a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/galaxy/datatypes/converters/fasta_to_fai.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
<requirements>
<requirement type="package" version="0.1.19">samtools</requirement>
</requirements>
<command><![CDATA[ln -s '$input' temp.fasta && samtools faidx temp.fasta && mv temp.fasta.fai '$output' && rm temp.fasta ]]></command>
<command><![CDATA[
ln -s '$input' temp.fasta &&
samtools faidx temp.fasta
]]></command>
<inputs>
<param name="input" type="data" format="fasta" label="Fasta file"/>
<param name="input" type="data" format="fasta" label="FASTA file"/>
</inputs>
<outputs>
<data name="output" format="fai"/>
<data name="output" format="fai" from_work_dir="temp.fasta.fai" />
</outputs>
<help>
</help>
Expand Down

0 comments on commit 5d7fc1a

Please sign in to comment.