3 OUT
=results
/bismark2-search
/
6 FLAGS
="--gzip -p 8 --bowtie2 --bam "
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]"
20 for s0
in -0.5
-0.25
0; do
21 for s1
in -0.5
-0.25
0; do
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]"
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]"