Mercurial > repos > dktanwar > removesnp
comparison 01_RemoveSNPs/RemoveSNPs @ 0:12f2a7545ff2 draft
Uploaded
author | dktanwar |
---|---|
date | Mon, 16 Oct 2017 13:59:28 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:12f2a7545ff2 |
---|---|
1 #!/bin/bash | |
2 | |
3 #if [ "$1" == "-h" ]; then | |
4 if [[ -z $1 || -z $2 || $1 == "-h" ]]; then | |
5 echo "This program will remove mismatches from sam file." | |
6 echo "Usage: `basename $0` test.sam 3" | |
7 exit 0 | |
8 fi | |
9 | |
10 cmd="echo perl -ne 'print if((/XM:i:[0-$2][^0-9]/) || (/^@/));' $1" | |
11 eval `$cmd` |