Dear UCSC genome browser team,
All this time, we have been successfully viewing your ucsc genome tracks for our ChIPseq data. For some unknown reason, using the same PC computer, we ran into a problem with bash on the bedgraph to bigwig conversion step. It has never happened before.
It would be appreciated if you could help me out about this issue.
I use Bowtie2 --> Macs2 --> bdg2bw
ChIPfile_treat_pileup.bdg hg19-chromInfo.txt
However, an error says, "overlapping regions in bedGraph line 76017978 of ChIPfile.bdg.sort.clip" and genome browser
says "it is not a bigwig file" even the converted file looks bigwig.
Then, I used the commands below.
LC_COLLATE=C sort -k1,1 -k2,2n -k3,3n -s in.bdg > out.bdg.tmp
bedtools merge -i out.bdg.tmp -c 4 -d 0 -o max > out.bdg
LC_COLLATE=C sort -k1,1 -k2,2n -k3,3n -s out.bdg > out.bdg.sorted
bedGraphToBigWig out.bdg.sorted hg19-chromInfo.txt out.bigwig
The last command did not work for our files and an error says, "End coordinate 16581 bigger than chrM size of 16571 line 23 of ChIPfile.bedg.sorted".
So, I actually used first two commands and the original conversion line "bdg2bw
ChIPfile_treat_pileup.bdg hg19-chromInfo.txt"
Also, I tried "max",
"min" and "mean"
on the 2nd line.
--> comes out:
https://genome.ucsc.edu/cgi-bin/hgTracks?db=hg19&lastVirtModeType=default&lastVirtModeExtraState=&virtModeType=default&virtMode=0&nonVirtPosition=&position=chr3%3A18389133%2D18480265&hgsid=913426339_C4A4z77VsxAdVVJ81FAZt1J65IPN
MERGE-mean: latest sample using "mean"
OLD-GOOD:
the old sample using our original commands without errors <-- we want this shape
OLD-merge-mean:
the same old sample using new commands with "min"
MERGE-MAX: latest sample using
"max"
We have no idea why the command failed this time. Just to make sure, we also tried other dataset stored in our server and none of them works. This is not due to using a new computer. We remained deeply puzzled. I wonder whether you can help us resolve this, and if you need anything from us, we can send them to you.
Thank you so much for your time and effort checking our problem.
Sincerely,
Terumi Kohwi-Shigematsu
Professor
UCSF
San Francisco, CA