Thanks for the useful tool, but it doesn't seem to work with tophat alignemnts:
7584 GFF lines processed.
Warning: No features of type 'exon' found.
Error occured when reading beginning of SAM/BAM file.
('SAM line does not contain at least 11 tab-delimited fields.', 'line 1 of file con1/accepted_hits.bam')
[Exception type: ValueError, raised in _HTSeq.pyx:1276]
Hmm, looks like I need to specify -f bam and install a bam reader.
You may try https://www.broadinstitute.org/cancer/cga/rna-seqc or http://rseqc.sourceforge.net/