Hi, I tried using this script. It prints the sam header, but not the rest of the file that matches the correct bits. It gives the error awk: "calling undefined function and input record number 4". There are only three lines of header.
Any ideas? Thanks!
Have a look at this: http://www.novocraft.com/documentation/novoalign-2/novoalign-ngs-quick-start-tutorial/1040-2/
Serially filtering with -f 4 -F 264 and -f 8 -F 260, and then merge/sort -n did the trick. Thanks!
PS. Any way to flag this as an answer?
Copy and paste it into the answer field. I believe you can accept your own answer.
Hrmm... when I try and click the green check symbol, I get a "You may not vote on your own post"