Skip to content

Commit

Permalink
Replace '.ext ==' pattern with is_of_type
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jan 20, 2017
1 parent d55db72 commit f9a5168
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<![CDATA[
zcat -f < '$input' | fastq_quality_filter -q $quality -p $percent -v -o '$output'
## fastqsanger uses offset 33, illumina and solexa offset 64 (https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2847217/table/T1/)
#if $input.ext == "fastqsanger":
#if $input.is_of_type(fastqsanger):
-Q 33
#elif $input.ext == "fastqillumina" or $input.ext == "fastqsolexa":
#elif $input.is_of_type(fastqillumina" or $input.is_of_type(fastqsolexa):
-Q 64
#end if
]]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<command>
<![CDATA[
gunzip -cf $input | fastq_to_fasta $SKIPN $RENAMESEQ -o $output -v
#if $input.ext == "fastqsanger":
#if $input.is_of_type('fastqsanger'):
-Q 33
#elif $input.ext == "fastqillumina" or $input.ext == "fastqsolexa":
#elif $input.is_of_type('fastqillumina') or $input.is_of_type('fastqsolexa'):
-Q 64
#end if
]]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<command>
<![CDATA[
zcat -f < '$input' | fastx_artifacts_filter -v -o '$output'
#if $input.ext == "fastqsanger":
#if $input.is_of_type('fastqsanger'):
-Q 33
#elif $input.ext == "fastqillumina" or $input.ext == "fastqsolexa":
#elif $input.is_of_type('fastqillumina') or $input.is_of_type('fastqsolexa'):
-Q 64
#end if
]]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<command>
<![CDATA[
zcat -f < '$input' | fastx_clipper -l $minlength -a '$clip_source.clip_sequence' -d $keepdelta -o '$output' -v $KEEP_N $DISCARD_OPTIONS
#if $input.ext == "fastqsanger":
#if $input.is_of_type('fastqsanger'):
-Q 33
#elif $input.ext == "fastqillumina" or $input.ext == "fastqsolexa":
#elif $input.is_of_type('fastqillumina') or $input.is_of_type('fastqsolexa'):
-Q 64
#end if
]]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<command>
<![CDATA[
zcat -f < '$input' | fastx_collapser -v -o '$output'
#if $input.ext == "fastqsanger":
#if $input.is_of_type('fastqsanger'):
-Q 33
#elif $input.ext == "fastqillumina" or $input.ext == "fastqsolexa":
#elif $input.is_of_type('fastqillumina') or $input.is_of_type('fastqsolexa'):
-Q 64
#end if
]]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<command>
<![CDATA[
zcat -f < '$input' | fastx_quality_stats -o '$output'
#if $input.ext == "fastqsanger":
#if $input.is_of_type('fastqsanger'):
-Q 33
#elif $input.ext == "fastqillumina" or $input.ext == "fastqsolexa":
#elif $input.is_of_type('fastqillumina') or $input.is_of_type('fastqsolexa'):
-Q 64
#end if
]]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<command>
<![CDATA[
zcat -f < '$input' | fastx_renamer -n $TYPE -o '$output' -v
#if $input.ext == "fastqsanger":
#if $input.is_of_type('fastqsanger'):
-Q 33
#elif $input.ext == "fastqillumina" or $input.ext == "fastqsolexa":
#elif $input.is_of_type('fastqillumina') or $input.is_of_type('fastqsolexa'):
-Q 64
#end if
]]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<command>
<![CDATA[
zcat -f < '$input' | fastx_reverse_complement -v -o '$output'
#if $input.ext == "fastqsanger":
#if $input.is_of_type('fastqsanger'):
-Q 33
#elif $input.ext == "fastqillumina" or $input.ext == "fastqsolexa":
#elif $input.is_of_type('fastqillumina') or $input.is_of_type('fastqsolexa'):
-Q 64
#end if
]]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<command>
<![CDATA[
zcat -f < '$input' | fastx_trimmer -v -f $first -l $last -o '$output'
#if $input.ext == "fastqsanger":
#if $input.is_of_type('fastqsanger'):
-Q 33
#elif $input.ext == "fastqillumina" or $input.ext == "fastqsolexa":
#elif $input.is_of_type('fastqillumina') or $input.is_of_type('fastqsolexa'):
-Q 64
#end if
]]>
Expand Down

0 comments on commit f9a5168

Please sign in to comment.