Hello everyone, I would like to select all reads from a BAM dataset with one deletion, two deletion and so on. I thought to use the CIGAR string putting 1D, 2D and so on depending on the case but when I use the Filter BAM datasets on a variety of attributes tool, I get only those reads with 0 bases and no CIGAR string (apparently all reads). As an example given the two reads below, I get the second one, no matter the filter I use. Does anyone can explain this behavior? Thanks a lot!
M02230:28:000000000-D2Y2R:1:1101:15213:1961 73 chr1 6257782 40 27S87M36S = 6257782 0 CAATCAAGAGTGAACTTCAGAACTT...C AAAAAFFFBFBDEGFFGGGGDGHHHB5B#AAFFGHGGGEGFBFEFGFHHHHBEFA1FGHFHHHHHEF353BFFGED1FCFHBGG4B3@F3F3343FFFHHHGGFFBGGE?///20E/CBHHBFFH322?@G0/02@@CGGCDF?@CCFHF RG:Z:0179 BC:Z:13 SM:i:40 NM:i:3 XN:Z:Coordinate_UserDefined (58174392)_193531064.1 M02230:28:000000000-D2Y2R:1:1101:15213:1961 133 chr1 6257782 0 * = 6257782 0 TGACGTTTCTGGTTCTGTTAANCTTGTTTTNCCGACTGA....