This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Python script to find error rate

I am trying to write a python script that, from a BAM files, calculates the error rate of the DNA sequencing based on the reference genome. I am brand new to bioinformatics, and I am very stuck. This is what I have so far:

import pysam

samfile = pysam.AlignmentFile("TruQ3_229.sorted.bam", "rb")

for pileupcolumn in samfile.pileup("chr1", 100, 120)

I have no idea what to do and where to continue. Any help is appreciated. Thanks!

genome sequence alignment

What is your definition of error rate? Have you first tried summarizing what do you want to achieve? While posting a question, please try to provide as much as information as possible.

0 answers

No answers yet.

Log in to answer this question.