modified: pixi.toml
[GalaxyCodeBases.git] / BioInfo / BS-Seq / bwa-meth / compare / run-bis2.sh
blobc14577cf3c42e1a14b384dae389ed224f729f66e
1 . ./common.sh
3 method=bis2
5 mkdir -p $OUT/$method/trim/
6 TEMP=/tmp/
8 rm -f $OUT/$method/$name*.bam $OUT/trim/$method/$name*.bam
9 FLAGS="--gzip -p 8 --score_min L,-0.4,-0.5 --bowtie2 --bam -N 1"
11 cmd="bismark $FLAGS --temp_dir $TEMP --output_dir $OUT/$method/ --prefix $name $BIS_REF -1 $FQ1 -2 $FQ2;
12 rm -f $OUT/$method-$name.bam;
13 samtools sort $OUT/$method/${name}.${name}*.bam $OUT/$method-$name;
14 samtools index $OUT/$method-$name.bam"
16 rm -f logs/$method-$name.err logs/$method-$name.out
17 echo $cmd | bsub -J $method-$name -e logs/$method-$name.err -o logs/$method-$name.out -n 12 -R "span[hosts=1]"
19 mkdir -p $TEMP/trim/
21 cmd="bismark $FLAGS --temp_dir $TEMP/trim/ --output_dir $OUT/$method/trim/ --prefix $name $BIS_REF -1 $TRIM_FQ1 -2 $TRIM_FQ2;
22 rm -f $OUT/trim/$method-$name.bam;
23 samtools sort $OUT/$method/trim/${name}.${name}*.bam $OUT/trim/$method-$name;
24 samtools index $OUT/trim/$method-$name.bam"
26 rm -f logs/trim-$method-$name.err logs/trim-$method-$name.out
27 echo $cmd | bsub -J trim-$method-$name -e logs/trim-$method-$name.err -o logs/trim-$method-$name.out -n 12 -R "span[hosts=1]"