See this discussion for ideas about how to generate partial and full
coverage data from a Tophat BAM file:
Short answer: use the pileup tool for partial coverage (i.e. coverage
for all bases that have mapped reads) and use other tricks to generate
coverage data for all bases.