# HG changeset patch # User mvdbeek # Date 1529075203 14400 # Node ID de2f2c28c498bd66915bb12dbf3e62d974b85e3d # Parent 1f8609ae3941104a878d5ff862b26c0772c465f5 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 0437e9e56f0af2ccfb5f119b0f290109807ed9b0-dirty diff -r 1f8609ae3941 -r de2f2c28c498 igv_make_screenshots.xml --- a/igv_make_screenshots.xml Mon Jul 31 12:45:19 2017 -0400 +++ b/igv_make_screenshots.xml Fri Jun 15 11:06:43 2018 -0400 @@ -1,33 +1,47 @@ - + + + + + xvfbwrapper + load_session.txt && - echo snapshotDirectory "\$PWD" >> load_session.txt && - cat load_session.txt '$script_file' '$exit_session' > igv_script.txt && - cp '$igv_session' '$igv_session_out' && - python $__tool_directory__/xvfb_igv.py igv_script.txt '$igv_preferences' $width,$height && - zip screenshots.zip *.png && - cp screenshots.zip '$screenshots_out' +#import re +#if $genome_source.input_type_selector == 'history': + ln -s '$genome_source.genome' genome.fa && +#else: + ln -s '$genome_source.genome.fields.path' genome.fa && +#end if +samtools faidx genome.fa && +sed -i.bak -e "s|\"genome.fa\"|\"\$PWD/genome.fa\"|g" '$igv_session' && +#for $i, $inputsection in enumerate($inputfiles): + @PATH@ + ln -fs '$inputsection.input' '$path' && + #if $inputsection.input.is_of_type('bam') + ln -fs $inputsection.input.metadata.bam_index '$path'.bai && + #end if +#end for +ln -fs $igv_session igv_session.xml && +cat '$load_session' > load_session.txt && +echo snapshotDirectory "\$PWD" >> load_session.txt && +cat load_session.txt '$script_file' '$exit_session' > igv_script.txt && +cp '$igv_session_remote' '$igv_session_out' +#if not $skip_screenshots: + && python $__tool_directory__/xvfb_igv.py igv_script.txt '$igv_preferences' $width,$height && + zip screenshots.zip *.png && + cp screenshots.zip '$screenshots_out' +#end if ]]> #import re @@ -35,7 +49,7 @@ #for $i, $inputsection in enumerate($inputfiles): - #set $path="%s.%s.%s" % ($i, re.sub('[^\w\-_]', '_', $inputsection.input.element_identifier), $inputsection.input.extension) + @PATH@ #set $coverage_id="%s_coverage" % $path #end for @@ -43,7 +57,7 @@ #for $i, $inputsection in enumerate($inputfiles): #if $inputsection.input.is_of_type('bam') #set $label=str($inputsection.label) if str($inputsection.label) else str($inputsection.input.element_identifier) - #set $path="%s.%s.%s" % ($i, re.sub('[^\w\-_]', '_', $inputsection.input.element_identifier), $inputsection.input.extension) + @PATH ## First track is the coverage @@ -61,7 +75,7 @@ #for $i, $inputsection in enumerate($inputfiles): #if not $inputsection.input.is_of_type('bam') #set $label=str($inputsection.label) if str($inputsection.label) else str($inputsection.input.element_identifier) - #set $path="%s.%s.%s" % ($i, re.sub('[^\w\-_]', '_', $inputsection.input.element_identifier), $inputsection.input.extension) + @PATH@ #end if #end for @@ -69,6 +83,41 @@ ]]> + #import re + + + #for $i, $inputsection in enumerate($inputfiles):@DISPLAY_LINK@#end for + + #for $i, $inputsection in enumerate($inputfiles): + #if $inputsection.input.is_of_type('bam') + #set $label=str($inputsection.label) if str($inputsection.label) else str($inputsection.input.element_identifier) + @DISPLAY_LINK@ + #set $coverage_id="%s_coverage" % $display_link + + ## First track is the coverage + + + + ## Second track is the actual BAM alignment file + + + + + #end if + #end for + + + #for $i, $inputsection in enumerate($inputfiles): + #if not $inputsection.input.is_of_type('bam') + #set $label=str($inputsection.label) if str($inputsection.label) else str($inputsection.input.element_identifier) + @PATH@ + + #end if + #end for + + + + ]]> load igv_session.xml @@ -77,7 +126,6 @@ SAM.SHOW_SOFT_CLIPPED=$show_softclippped -SAM.FILTER_SECONDARY_ALIGNMENTS=$filter_secondary @@ -105,15 +153,17 @@ + - - + + skip_screenshots == False + diff -r 1f8609ae3941 -r de2f2c28c498 test-data/rover_corrected.bam.bai Binary file test-data/rover_corrected.bam.bai has changed