diff 01_RemoveSNPs/RemoveSNPs @ 0:21aaaa2d3004 draft

Uploaded
author dktanwar
date Mon, 16 Oct 2017 13:24:04 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/01_RemoveSNPs/RemoveSNPs	Mon Oct 16 13:24:04 2017 -0400
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+#if [ "$1" == "-h" ]; then
+if [[ -z $1 || -z $2 || $1 == "-h" ]]; then
+    echo "This program will remove mismatches from sam file."
+    echo "Usage: `basename $0` test.sam 3"
+    exit 0
+fi
+
+cmd="echo perl -ne 'print if((/XM:i:[0-$2][^0-9]/) || (/^@/));' $1"
+eval `$cmd`
\ No newline at end of file