forked from Danko-Lab/dREG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_dREG.bsh
30 lines (25 loc) · 874 Bytes
/
run_dREG.bsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/bash
if [ "$#" -lt 4 ]; then
echo ""
echo "USAGE: bash dREG.bsh plus_strand.bw minus_strand.bw out_prefix asvm.RData [nthreads]"
echo ""
echo "plus_strand.bw -- PRO-seq data (plus strand) formatted as a bigWig file."
echo "minus_strand.bw -- PRO-seq data (plus strand) formatted as a bigWig file."
echo "out_prefix -- The prefix of the output file."
echo "asvm.RData -- The path to the RData file containing the pre-trained SVM."
echo "[nthreads] -- [optional, default=1] The number of threads to use when evaluating dREG sites."
echo ""
exit 1
fi
bwPL=$1
bwMN=$2
out=$3
SVM=$4
if [ "$#" -gt 4 ]; then
# [[ $5 !~ ^?[0-9]+$ ]]
ncores=$5
else
ncores=1
fi
echo "Using: R --vanilla --slave --args $bwPL $bwMN $out.bedgraph $SVM $ncores < run_dREG.R"
R --vanilla --slave --args $bwPL $bwMN $out.bedgraph $SVM $ncores < run_dREG.R