Entering edit mode
8.6 years ago
manojkumar_bhosale
▴
80
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?
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?
I don't think tdf stores the base count at each position (it wouldn't be so fast and small otherwise). For that you need the bam file or the output of mpileup. Have a look at this thread Calculate The Frequency Of Nucleotides At Each Position In An Mpileup File where, among other answers, I suggest using pysamstats