Thank you all of you who responded to the question.. the suggestions are helpful, I will try with them..
Michael, the perl commands you suggested is suitable for a sequence...I have 5 columns with nucleotide position, reference, mutation and their respective reads...
will the above code work for it?, perhaps large modification in it needed..
I add my answer to give the problem solution with Biopython. As said in the biopython manual (http://biopython.org/DIST/docs/tutorial/Tutorial.pdf, page 24) the standard procedure is like the below: