Hi There ,
Have you ever compared the variants frequencies computed using pysam with that computed simply through perl regex? I recently found some discrepensy between the two.
In the example below: With perl regex, the number of deletions counted from pileup file is 128, but in the pysamstats results, it is 5. Can anyone explain why? Maybe pysamstats did some filtering?
Thanks a lot.
+++++++++++++++++++++++++++ ===============Pileup String ============= +++++++++++++++++++++++++++
...-1G....-1G.........+1G...........................-1G........-1G...........................-1G..............-1G.-1G.....-1G........-1G................-1G............C..C.............-1G...........-1G..................................-1G..................................-1G............-1G..-1G...................-1G.............-1G............................................................................*.......-1G.-1G.....-1G..............................-1G........................+1G.-1G.-1G....................................-1G......-1G..-1G.......+1G...........-1G.+1G......-1G....................+1G.........................-1G...........-1G..........-1G....................-1G........................-1G...........................................-1G..............-1G...-1G............................-1G.......-1G........-1G......................................................-1G.............-1G...-1G.-1G..................-1G......-1G.-1G...................+1G.................................-1G...-1G...................................................-1G......................+1G.................-1G...................-1G.................-1G.............-1G.........-1G............-1G........-1G....................................-1G..............-1G..-1G..-1G......+1G.............-1G......-1G..........................-1G..-1G......-1G.....-1G.......-1G................-1G....-1G..-1G................-1G.........................+1G....................................+1G...................+1G................-1G........-1G....................................-1G.-1G.....-1G......-1G.....-1G........-1G............................C..............-1G.......-1G......-1G..........-1G...-1G..............+1G....+1G...........................-1G.......-1G......-1G..........+1G.-1G.............-1G.-1G........-1G....-1G......................-1G.....-1G.....-1G.-1G..-1G.-1G...........-1G................-1G.....+1G...............-1G...............+1G....-1G.......-1G....................+1G........-1G...........-1G..+1G..............................+1G...........................-1G.................-1G..-1G.........+1G...............-1G...-1G.........-1G........................................-1G....-1G..............................................-1G...+1G...........................-1G...-1G..........-1G..+1G.-1G.-1G...-1G...................................................-1G............-1G.....-1G........................-1G........................................+1G............................-1G.-1G......-1G...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................^].^].^".^].^].^].^3.^].^'.^2.^].^].^].^].^].^].^].^].^].^D.^].^].^7.^".^].^].^;.^].^5.^N.^].^].^].^].^].^].^].^C.^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^V.^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^6.^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^A.^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^=.^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^R.^].^].^].^].^C.^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^>.^N.^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^Y.^].^].^].^].^].^].^].^].^].^].^].^].^].^].^H.^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].^].
Please add representative code. Anecdotal methods are often (never) sufficient to reproduce things.
Hi ATpoint, thanks for reminding me to post the commands.
Copy the string into a file -- String.txt perl regex:
pysamstats commad: