# HG changeset patch # User lparsons # Date 1383599976 18000 # Node ID 8fbd165f883554e7752cbf0e49df3fb585b17b43 # Parent 073c77ce5e943d37039d563e994ad87d38d33dfa Patch from Bjorn Gruning diff -r 073c77ce5e94 -r 8fbd165f8835 bam2wig.xml --- a/bam2wig.xml Tue Oct 15 12:58:55 2013 -0400 +++ b/bam2wig.xml Mon Nov 04 16:19:36 2013 -0500 @@ -8,15 +8,12 @@ rseqc + tmp_input_name=\$(mktemp -u); + bai='.bai'; - #import tempfile, os - #set $tmp_input = tempfile.NamedTemporaryFile() - #set $tmp_input_name = $input_singles_tmp_handle.name - #silent $tmp_input.close() - - ln -s "${input}" $tmp_input_name && - ln -s "${input.metadata.bam_index}" $tmp_input_name + ".bai" && - bam2wig.py -i "local_input.bam" -s $chromsize -o outfile + ln -s "${input}" \$tmp_input_name && + ln -s "${input.metadata.bam_index}" \$tmp_input_name\$bai && + bam2wig.py -i \$tmp_input_name -s $chromsize -o outfile #if str($strand_type.strand_specific) == "pair" -d @@ -44,8 +41,8 @@ -u #end if ; - rm $tmp_input_name + ".bai" ; - rm $tmp_input_name + rm "\$tmp_input_name\$bai"; + rm \$tmp_input_name