Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
IMP
IMP3
Commits
5cb7cfb2
Commit
5cb7cfb2
authored
Aug 24, 2021
by
Valentina Galata
Browse files
issue
#38
: redirect echo in if-clause to stderr [ci skip]
parent
35a37a90
Pipeline
#45805
skipped
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
workflow/rules/Preprocessing/nonpareil.smk
workflow/rules/Preprocessing/nonpareil.smk
+4
-5
No files found.
workflow/rules/Preprocessing/nonpareil.smk
View file @
5cb7cfb2
# NOTE: based on code from XXX
# https://github.com/lmrodriguezr/nonpareil
# https://github.com/lmrodriguezr/nonpareil
#
does not support gzipped FASTQ files: https://github.com/lmrodriguezr/nonpareil/issues/35
#
NOTE: the tool
does not support gzipped FASTQ files: https://github.com/lmrodriguezr/nonpareil/issues/35
rule nonpareil:
rule nonpareil:
input:
input:
'Preprocessing/mg.{read}.preprocessed.fq'
'Preprocessing/mg.{read}.preprocessed.fq'
...
@@ -26,11 +25,11 @@ rule nonpareil:
...
@@ -26,11 +25,11 @@ rule nonpareil:
"""
"""
bname={output.out[0]}
bname={output.out[0]}
if [ {params.minlen} -ge 24 ]; then
if [ {params.minlen} -ge 24 ]; then
echo "reads >= 24"
>&2
echo "
all
reads >= 24
- linking to input file
"
ln -s $(realpath {input}) {output.fq}
ln -s $(realpath {input}) {output.fq}
else
else
echo "r
m
reads < 24"
>&2
echo "r
emove
reads < 24"
seqkit seq {input} -j {threads} -m 24
| zcat
> {output.fq}
seqkit seq {input} -j {threads} -m 24 > {output.fq}
fi 2> {log}
fi 2> {log}
nonpareil -s {output.fq} -T kmer -f fastq -b ${{bname%.*}} &>> {log}
nonpareil -s {output.fq} -T kmer -f fastq -b ${{bname%.*}} &>> {log}
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment