| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | c=$1 |
| 4 | p=$2 |
| 5 | r=$3 |
| 6 | |
| 7 | cutscip-shell system . . cut. -f 1,2 -d ',' $c | sedscip-shell system . . sed. 's/^/>/g' | trscip-shell system . . tr. ',' '\n' > ${p}.fa |
| 8 | ~/Documents/bwa/bwa mem -k 5 -T 20 $r ${p}.fa | samtools view -bS -F 4 -o ${p}.bam # Tune -T parameter. |
| 9 | bedtools bamtobed -i ${p}.bam > ${p}.bed |