Commit 6e6d4e10 authored by peguerin's avatar peguerin
Browse files

check empty files

parent fcd91de3
......@@ -42,12 +42,14 @@ rule clean_pcrerr_samples:
params:
r=config["clean_pcrerr_samples"]["r"]
shell:
'''if [ -s {input} ]
then
obiclean -r {params.r} {input} > {output} 2> {log}
else
touch {output} 2> {log}
fi'''
'''
if [[ -s {input} ]]
then
obiclean -r {params.r} {input} > {output} 2> {log}
else
touch {output} 2> {log}
fi
'''
### Remove sequence which are classified as 'internal' by obiclean
rule rm_internal_samples:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment