Hello Shalabh, http://hannonlab.cshl.edu/fastx_toolkit/ is pretty good. Do not re-invent the wheel if not necessary. The Hannon's lab has done a lot of work on deep sequencing analyses which led to many fundamental discoveries.....this is a reason to trust their processing algorithms. Best, JUAN