# HG changeset patch # User eugen # Date 1345033623 14400 # Node ID 7ad77d2e23d03f33fed13097a4e6078b21c2a06a # Parent 35df90c1f4aa9cd963d85a845b42628caa454185 Uploaded diff -r 35df90c1f4aa -r 7ad77d2e23d0 bismark_meth_caller.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bismark_meth_caller.sh Wed Aug 15 08:27:03 2012 -0400 @@ -0,0 +1,35 @@ +#!/bin/bash +# +# Galaxy wrapper for Bismark Methylation Caller +# + +set -e + +#get parameters + +until [ $# -eq 0 ] +do + case $1 in + input=*) + input=${1#input=} + ;; + method=*) + method=${1#method=} + ;; + output=*) + output=${1#output=} + ;; + tempdir=*) + tempdir=${1#tempdir=} + ;; + esac + shift +done +(grep ^@ $input; grep -v ^@ $input | sort -k3,3 -k1,1) > $tempdir"bismark_sam_sorted.sam" +methylation_extractor -$method -o $output $tempdir"bismark_sam_sorted.sam" 2>&1 > /dev/null + + + + + +