modified: pixi.toml
[GalaxyCodeBases.git] / BioInfo / BS-Seq / bwa-meth / compare / search-bis2.sh
blobd6b39153fe3a95c02712e94b946f22745b4b67d7
1 . ./common.sh
3 OUT=results/bismark2-search/
4 mkdir -p $OUT/logs
6 FLAGS="--gzip -p 8 --bowtie2 --bam "
7 name=default
8 cmd="bismark $FLAGS --temp_dir $TEMP --output_dir $OUT/$name/ --prefix $name $BIS_REF -1 $FQ1 -2 $FQ2;"
9 mkdir -p $OUT/$name/trim/
10 rm -f $OUT/$name/*.bam $OUT/trim/$name/*.bam
11 rm -f $OUT/logs/$name.err $OUT/logs/$name.out
12 echo $cmd | bsub -J $name -e $OUT/logs/$name.err \
13 -o $OUT/logs/$name.out -n 12 -R "span[hosts=1]"
15 cmd="bismark $FLAGS --temp_dir $TEMP/trim/ --output_dir $OUT/$name/trim/ --prefix $name $BIS_REF -1 $TRIM_FQ1 -2 $TRIM_FQ2;"
16 rm -f $OUT/logs/trim-$name.err $OUT/logs/trim-$name.out
17 echo $cmd | bsub -J trim-$name -e $OUT/logs/trim-$name.err -o $OUT/logs/trim-$name.out -n 12 -R "span[hosts=1]"
19 for L in 18 20 22; do
20 for s0 in -0.5 -0.25 0; do
21 for s1 in -0.5 -0.25 0; do
23 TEMP=/tmp/
24 name="L-$L-score_${s0}_$s1"
25 mkdir -p $OUT/$name/trim/
26 rm -f $OUT/$name/*.bam $OUT/trim/$name/*.bam
28 FLAGS="--gzip -p 8 --score_min L,$s0,$s1 --bowtie2 --bam -N 1 -L $L"
30 cmd="bismark $FLAGS --temp_dir $TEMP --output_dir $OUT/$name/ --prefix $name $BIS_REF -1 $FQ1 -2 $FQ2;"
31 rm -f $OUT/logs/$name.err $OUT/logs/$name.out
32 echo $cmd | bsub -J $name -e $OUT/logs/$name.err \
33 -o $OUT/logs/$name.out -n 12 -R "span[hosts=1]"
35 mkdir -p $TEMP/trim/
37 cmd="bismark $FLAGS --temp_dir $TEMP/trim/ --output_dir $OUT/$name/trim/ --prefix $name $BIS_REF -1 $TRIM_FQ1 -2 $TRIM_FQ2;"
38 rm -f $OUT/logs/trim-$name.err $OUT/logs/trim-$name.out
39 echo $cmd | bsub -J trim-$name -e $OUT/logs/trim-$name.err -o $OUT/logs/trim-$name.out -n 12 -R "span[hosts=1]"
40 done
41 done
42 done