comparison parsewig.sh @ 29:0bc00f619bc7 draft

Uploaded
author eiriche
date Mon, 03 Dec 2012 02:53:01 -0500
parents
children
comparison
equal deleted inserted replaced
28:781b796c6b9c 29:0bc00f619bc7
1 #!/bin/bash
2 #
3 # Galaxy wrapper for BSMAP Methylation Caller
4 #
5
6 set -e
7
8
9 #get parameters
10
11 until [ $# -eq 0 ]
12 do
13 case $1 in
14 input=*)
15 input=${1#input=}
16 ;;
17 extract=*)
18 extract=${1#extract=}
19 ;;
20 context=*)
21 context=${1#context=}
22 ;;
23 depth=*)
24 depth="cutoff=${1#depth=}"
25 ;;
26 cov_out=*)
27 cov_out=${1#cov_out=}
28 ;;
29 meth_out=*)
30 meth_out=${1#meth_out=}
31 ;;
32 esac
33 shift
34 done
35
36 case $extract in
37 c)
38 output="-cov_out=$cov_out";;
39 m)
40 output="-meth_out=$meth_out";;
41 b)
42 output="-meth_out=$meth_out -cov_out=$cov_out";;
43 esac
44
45 if [ "$context" != "" ]
46 then
47 context="-context=$context"
48 fi
49
50
51 perl ~/dependencies/wig-parser/wiggle_extractor.pl -e $extract $context $output $input 2>&1>/dev/null