Open GoogleCodeExporter opened 9 years ago
The relevant part of the source code:
{{{
#! /usr/bin/env python
from Bio import SeqIO
from Bio.Seq import Seq
import pysam
reference = "ref.fa"
aln = "aln.bam"
handle = open(reference, "rU")
samfile = pysam.Samfile(aln, "rb")
obj = SeqIO.parse(handle,"fasta")
for record in obj:
seqname = record.id
print "Processing", seqname
for pileupcolumn in samfile.pileup(seqname):
print "position", pileupcolumn.pos
}}}
Original comment by karel.brinda@gmail.com
on 7 Jul 2014 at 12:54
Original issue reported on code.google.com by
karel.brinda@gmail.com
on 7 Jul 2014 at 12:46