modified: pixi.toml
[GalaxyCodeBases.git] / BioInfo / BS-Seq / bwa-meth / compare / run-last.sh
blob99711bc2701f6f3b5b36fe54b3d89b7f07f8e3d7
1 #lastdb -w 2 -u ~/src/last-hg/examples/bisulfite_f.seed $REF.last_f $REF
2 #lastdb -w 2 -u ~/src/last-hg/examples/bisulfite_r.seed $REF.last_r $REF
4 . ./common.sh
7 rm -f logs/last-$name.err logs/last-$name.out logs/trim-last-$name.err logs/trim-last-$name.out
9 echo "
10 ./src/last-bisulfite-paired.sh $REF.last_f $REF.last_r $FQ1 $FQ2 $name \
11 | samtools view -bS - \
12 | samtools sort - $OUT/last-$name
13 samtools fixmate $OUT/last-$name.bam $OUT/last-$name.fix.bam
14 samtools sort $OUT/last-$name.fix.bam $OUT/last-$name
15 rm $OUT/last-$name.fix.bam
16 samtools index $OUT/last-$name.bam
17 " | bsub -J last-$name \
18 -R "span[hosts=1]" \
19 -e logs/last-$name.err \
20 -o logs/last-$name.out -n 8
22 echo "
23 ./src/last-bisulfite-paired.sh $REF.last_f $REF.last_r $TRIM_FQ1 $TRIM_FQ2 $name \
24 | samtools view -bS - \
25 | samtools sort - $OUT/trim/last-$name
26 samtools fixmate $OUT/trim/last-$name.bam $OUT/trim/last-$name.fix.bam
27 samtools sort $OUT/trim/last-$name.fix.bam $OUT/trim/last-$name
28 rm $OUT/trim/last-$name.fix.bam
29 samtools index $OUT/trim/last-$name.bam
30 " | bsub -J trim-last-$name \
31 -R "span[hosts=1]" \
32 -e logs/trim-last-$name.err \
33 -o logs/trim-last-$name.out -n 8