5 mkdir
-p $OUT/$method/trim
/
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]"
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]"