bedGraphToBigWig error : Expecting at least 3 words line 1 of chrom.sizes. got 2
1
0
Entering edit mode
7 months ago
pt.taklifi ▴ 60

Hello everyone I am trying to convert a bedGraph file to bigwig format. I am using bedGraphToBigWig with the command below

bedGraphToBigWig hg38.chrom.sizes sorted.bedGraph Merge.bw

the error message :

  Expecting at least 3 words line 1 of hg38.chrom.sizes got 2

However I believe that chrom.sizes files is correct as I downloaded hg38.chrom.sizes from UCSC http://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.chrom.sizes

I produced sorted.bedGraph file with bigWigMerge with this command

bigWigMerge -inList list.txt merge.bedGraph
sort -k1,1 -k2,2n merge.bedGraph > sorted.bedGraph

I don't know how to fix this problem and I would appreciate your suggestions thank you

bigwig bedGraph • 328 views
ADD COMMENT
2
Entering edit mode
7 months ago
ATpoint 54k

Your order of arguments is wrong, must be:

bedGraphToBigWig sorted.bedGraph hg38.chrom.sizes Merge.bw
ADD COMMENT

Login before adding your answer.

Traffic: 2040 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6