#!/bin/sh
#$ -S /bin/sh
# sh chipatlas/sh/makePeakBrowser/sortByChr.sh mm10 05 chr1
genome=$1
type=$2
chr=$3
outDir=tmpDirForPeakBrowser/sortByChr/$genome/$type

mkdir -p $outDir

LANG=C sort -k2,2n tmpDirForPeakBrowser/splitByChr/$genome/$type/*/$chr.sorted > $outDir/$chr
