We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6adc726 commit 67440aaCopy full SHA for 67440aa
GetCoverageOfRegions.sh
@@ -2,10 +2,10 @@
2
bedFile=$1
3
covFile=$2
4
meanCov=`cat $3`
5
-
+sdir=$4
6
7
while read line; do
8
rgn=`echo $line | awk '{ print $1":"$2"-"$3;}'`
9
- tabix $covFile $rgn | cut -f 4 | stats | awk -v m=$meanCov '{ print $1/m;}'
+ tabix $covFile $rgn | cut -f 4 | $sdir/stats | awk -v m=$meanCov '{ print $1/m;}'
10
done < $bedFile
11
0 commit comments