FilterDuplicates = {
output.dir = REMOVE_DUP_OUTDIR
transform(".highQ.fastq.gz") to (".deduped_barcoded.fastq.gz") {
def SAMPLE_NAME = input.prefix.prefix
exec """ if [ -n "\$LSB_JOBID" ]; then export TMPDIR=/jobdir/\${LSB_JOBID}; fi &&
zcat $input | paste -d, - - - - | sort -u -t, -k2,2 | tr ',' '\\n' | gzip > $output
""","FilterDuplicates" }}
FilterDuplicates = {
output.dir = REMOVE_DUP_OUTDIR
transform(".highQ.fastq.gz") to (".deduped_barcoded.fastq.gz") {
def SAMPLE_NAME = input.prefix.prefix
exec """ if [ -n "\$LSB_JOBID" ]; then export TMPDIR=/jobdir/\${LSB_JOBID}; fi &&
zcat $input | paste -d, - - - - | tee >(awk -v var="$SAMPLE_NAME" 'END {print NR,var}' >> dedup.stats.txt) | sort -u -t, -k2,2 | tee >(awk -v var="$SAMPLE_NAME" 'END {print NR,var}' >> dedup.stats.txt) | tr ',' '\\n' | gzip > $output
""","FilterDuplicates" }}
=========================== Stage FilterDuplicates [kh-mut-testis-input] ===========================/tmp/1448447323.240998.shell: line 2: syntax error near unexpected token `('/tmp/1448447323.240998.shell: line 2: `(if [ -n "$LSB_JOBID" ]; then export TMPDIR=/jobdir/${LSB_JOBID}; fi && zcat /local/scratch1/imb-kettinggr/adomingues/projects/bpipe_small_rna/results/processed_reads/kh-mut-testis-input.highQ.fastq.gz | paste -d, - - - - | tee >(awk -v var="/local/scratch1/imb-kettinggr/adomingues/projects/bpipe_small_rna/results/processed_reads/kh-mut-testis-input.highQ" 'END {print NR,var}' >> dedup.stats.txt) | sort -u -t, -k2,2 | tee >(awk -v var="/local/scratch1/imb-kettinggr/adomingues/projects/bpipe_small_rna/results/processed_reads/kh-mut-testis-input.highQ" 'END {print NR,var}' >> dedup.stats.txt) | tr ',' '\n' | gzip > /local/scratch1/imb-kettinggr/adomingues/projects/bpipe_small_rna/results/processed_reads/kh-mut-testis-input.deduped_barcoded.fastq.gz) > .bpipe/commandtmp/758/cmd.out'
--
You received this message because you are subscribed to the Google Groups "bpipe-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bpipe-discus...@googlegroups.com.
To post to this group, send email to bpipe-...@googlegroups.com.
Visit this group at http://groups.google.com/group/bpipe-discuss.
For more options, visit https://groups.google.com/d/optout.
HelloTee = {
exec """
echo 'Hello there' | tee >(echo 'it does tee' > tee.tmp) | grep there
"""
}
Bpipe.run { HelloTee }bpipe run hello_tee.txt====================================================================================================| Starting Pipeline at 2015-11-27 15:17 |====================================================================================================
========================================== Stage HelloTee ==========================================Hello there
======================================== Pipeline Succeeded ========================================15:17:26 MSG: Finished at Fri Nov 27 15:17:26 CET 2015
executor="lsf"queue="short"====================================================================================================| Starting Pipeline at 2015-11-27 15:22 |====================================================================================================
========================================== Stage HelloTee ==========================================/tmp/1448634144.241511.shell: line 2: syntax error near unexpected token `('/tmp/1448634144.241511.shell: line 2: `(echo 'Hello there' | tee >(echo 'it does tee' > tee.tmp) | grep there) > .bpipe/commandtmp/2/cmd.out'^CPipeline job running as process 24221. Terminate? (y/n): y
Terminating process 24221 ...
Cleaning up files from context .bpipe/inprogress/1The answer to the problem may lie in how the executor is wrapping the command when it is sent for execution. I tried running your command using the default "local" executor (direct execution on local machine) and it seemed to work.
Hi Antonio,I'm curious which executor you are using? Is it just the local executor or something else? The answer to the problem may lie in how the executor is wrapping the command when it is sent for execution. I tried running your command using the default "local" executor (direct execution on local machine) and it seemed to work. Would be good if you could try that too, just to narrow it down.Cheers,Simon