sort_wrapper.sh 119 Bytes
Newer Older
Adam Caprez's avatar
Adam Caprez committed
1
2
#!/bin/bash

Adam Caprez's avatar
Adam Caprez committed
3
cd $PEGASUS_SCRATCH_DIR
Adam Caprez's avatar
Adam Caprez committed
4
/bin/sort -k 8gr,8gr "$1" | awk 'BEGIN{OFS="\t"}{$r="PEAK_"NR; print $0;}' > "$2"