Skip to content

Commit

Permalink
Merge pull request #4226 from dpryan79/CompressedFastqLines_implement…
Browse files Browse the repository at this point in the history
…4144

Running a word count on a compressed fastq file now runs wc on the un…
  • Loading branch information
nsoranzo committed Jun 26, 2017
2 parents 3ec2c78 + 8a6ef05 commit ce1316d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tools/filters/wc_gnu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,20 @@
echo "#${ "\t".join( [ i for i in $arg_order if i in $args ] ) }" > $out_file1
&&
#end if

##Handle compressed (fastq) input
#if $input1.is_of_type("fastq.gz"):
zcat '$input1' |
#else if $input1.is_of_type("fastq.bz2"):
bzcat '$input1' |
#else:
cat '$input1' |
#end if
wc
#for $option in $args:
-${ word_to_arg[ str(option) ] }
#end for
$input1 | awk '{ print ${ '"\\t"'.join( [ "$%i" % ( i+1 ) for i in range( len( $args ) ) ] ) } }'
| awk '{ print ${ '"\\t"'.join( [ "$%i" % ( i+1 ) for i in range( len( $args ) ) ] ) } }'
>> $out_file1
</command>
<inputs>
Expand Down

0 comments on commit ce1316d

Please sign in to comment.