Hi,
It would be possible to extend igvtools tdftobedgraph to accept a
query string (e.g. chr1:1000-2000) and export just coverage for
that, but it doesn't exist currently. An alternative for new
files would be to compute coverage as a "wig" file (use a .wig
extension for the output file, rather than .tdf), then use UCSC
utils to convert the wig -> bigWig. I don't know for sure, but
there are probably tools in python for querying a bigwig file. IGV
support bigwig and it is more or less equivalent to tdf.
For the tdf option, the query parameter would be input to
tdftobedgraph, in the java igvtools program. We do not have any
python tools.
Jim