Entering edit mode
5.9 years ago
wangdp123
▴
340
Hi there,
I am trying to correctly understand how logging system works in snakemake.
In the original tutorial, it states like this:
shell:
"(bwa mem -R '{params.rg}' -t {threads} {input} | "
"samtools view -Sb - > {output}) 2> {log}"
And in other places, I keep seeing something like this:
macs2 callpeak -t {input[0]} \
-c {input[1]} -f BAM -g {config[macs_g]} \
--outdir 04peak -n {wildcards.sample} -q 0.001 &> {log}
wigToBigWig -clip samples/bwig/{wildcards.smp}_min.wig {params.chr} {output.min} 2>&1 >> {output.min}.log
bam2wig.py -i {input.min} -s {params.chr} -o samples/bwig/{wildcards.smp}_min &> {output.min}.log
I just wonder:
- What is the function of the symbol "&" before ">"?
- What do the number "1" and "2" mean? especially what does this mean (2>&1 >>)?
Many thanks,
Regards,
Tom