http://gatkforums.broadinstitute.org/gatk/discussion/7067/ahoy-mates-be-ye-unmapped
This tutorial is so typical of the GATK philosophy of bombarding readers with lots of useless and confusing terminology, yet not providing practical instructions on performing the task.
It is quicker to to use the samtools flags to have the flags explained
samtools flags 11
0xb 11 PAIRED,PROPER_PAIR,MUNMAP
the command:
samtools view -b -F 4 -f 11 -q 10 FILENAME
looks right, though I will say no one is quite sure what PROPER_PAIR means, when is it set and when is it not set. It depends on the aligner.
Do also note that this will not keep alignments for the point of view of the unmapped pairs. Perhaps these are not needed. These would be unmapped alignments where the mate mapped.
In addition, in my opinion, you should filter for primary alignments (in world of the SAM format these will be the alignments that are not SUPPLEMENTARY and not SECONDARY).
samtools flags SECONDARY,SUPPLEMENTARY
0x900 2304 SECONDARY,SUPPLEMENTARY
To check your SAM file you may filter your file for alignment where both reads map. See if you find any. Then check to see if the counts add up.
The interaction between SAM flags and the operations on them are trickier than one assumes.
Alternatively
reformat.shfrom BBMap suite has following filter options that will help.