annotate 01_RemoveSNPs/RemoveSNPs @ 5:67dc94f950fd draft default tip

Uploaded
author dktanwar
date Mon, 16 Oct 2017 13:52:09 -0400
parents 21aaaa2d3004
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
21aaaa2d3004 Uploaded
dktanwar
parents:
diff changeset
1 #!/bin/bash
21aaaa2d3004 Uploaded
dktanwar
parents:
diff changeset
2
21aaaa2d3004 Uploaded
dktanwar
parents:
diff changeset
3 #if [ "$1" == "-h" ]; then
21aaaa2d3004 Uploaded
dktanwar
parents:
diff changeset
4 if [[ -z $1 || -z $2 || $1 == "-h" ]]; then
21aaaa2d3004 Uploaded
dktanwar
parents:
diff changeset
5 echo "This program will remove mismatches from sam file."
21aaaa2d3004 Uploaded
dktanwar
parents:
diff changeset
6 echo "Usage: `basename $0` test.sam 3"
21aaaa2d3004 Uploaded
dktanwar
parents:
diff changeset
7 exit 0
21aaaa2d3004 Uploaded
dktanwar
parents:
diff changeset
8 fi
21aaaa2d3004 Uploaded
dktanwar
parents:
diff changeset
9
21aaaa2d3004 Uploaded
dktanwar
parents:
diff changeset
10 cmd="echo perl -ne 'print if((/XM:i:[0-$2][^0-9]/) || (/^@/));' $1"
21aaaa2d3004 Uploaded
dktanwar
parents:
diff changeset
11 eval `$cmd`