Mercurial > repos > mvdbeek > igv_take_screenshots
changeset 19:fd2d19ae2648 draft
planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit be45e3b0dec4ca1e8611abb2d84dd995e6d53751-dirty
| author | mvdbeek |
|---|---|
| date | Mon, 31 Jul 2017 12:20:29 -0400 |
| parents | 46e42201f2e6 |
| children | 1f8609ae3941 |
| files | igv_make_screenshots.xml test-data/rover_corrected.bam.bai |
| diffstat | 2 files changed, 12 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/igv_make_screenshots.xml Fri Jul 28 13:27:57 2017 -0400 +++ b/igv_make_screenshots.xml Mon Jul 31 12:20:29 2017 -0400 @@ -1,9 +1,13 @@ <tool id="igv_make_screenshots" name="IGV_screenshots" version="0.1.0"> + <macros> + <token name="@PATH@"><![CDATA[#set $path="%s.%s.%s" % ($i, re.sub('[^\w\-_]', '_', $inputsection.input.element_identifier), $inputsection.input.extension)]]></token> + </macros> <requirements> <requirement type="package" version="0.2.9">xvfbwrapper</requirement> <requirement type="package" version="2.3.93">igv</requirement> </requirements> <command detect_errors="exit_code"><![CDATA[ + #import re #if $genome_source.input_type_selector == 'history': ln -s '$genome_source.genome' genome.fa && #else: @@ -12,7 +16,7 @@ samtools faidx genome.fa && sed -i.bak -e "s|\"genome.fa\"|\"\$PWD/genome.fa\"|g" '$igv_session' && #for $i, $inputsection in enumerate($inputfiles): - #set $path="%s.%s.%s" % ($i, $inputsection.input.element_identifier, $inputsection.input.extension) + @PATH@ sed -i.bak -e "s|\"$path\"|\"\$PWD/$path\"|g" '$igv_session' && ln -fs '$inputsection.input' '$path' && #if $inputsection.input.is_of_type('bam') @@ -29,11 +33,12 @@ cp screenshots.zip '$screenshots_out' ]]></command> <configfiles> - <configfile name="igv_session"><