This is a test version of Biostars. For the public version, visit https://www.biostars.org.
I want to convert IGVs TDF file to a readable (.txt) format. Is there any tool/ library available for it?

I searched the IGV website but they have tools to convert TDF to wig, bigwig formats and these are all binary files. I want to read the TDF file and find the count of the bases at each location in my target region. If its not possible then is there any other way to achieve it?

next-gen igv alignment bam

1 answer

igvtools has an undocumented option to convert tdf to bedgraph (see also https://groups.google.com/forum/#!topic/igv-help/RcZw5YB5SOQ):

igvtools tdftobedgraph in.tdf out.bedgraph

Besides, if you can convert tdf to bigWig then there is a bigWigToBedGraph program from UCSC.

Thanks for the prompt reply !! I tried the above command but it looks like its giving me total number of bases(depth/coverage) at each locus. But I want count of each base covering each location e.g. chr7:1000 is covered by A:10, T:20, G:30,C:40 bases. Is there a way it can be done?

Log in to answer this question.