wig to bigwig error
1
0
Entering edit mode
2.1 years ago
sneup • 0

Hi,

I was running:

./wigToBigWig CMML_5hmC.wig GRCh38_EBV.chrom.sizes CMML_5hmC.bigwig

I got this error:

Expecting double field 1 line 214451062 of CMML_5hmC.wig, got 0.58,21627712,21631370,22401293,22410.173685

Can you help solving this issue?

wigTobigwig • 1.1k views
ADD COMMENT
0
Entering edit mode
2.1 years ago

looks like the file is corrupted and contains information that is not in wiggle format

https://genome.ucsc.edu/goldenPath/help/wiggle.html

it should look like this (two columns)

variableStep chrom=chr2
300701 12.5
300702 12.5
300703 12.5

instead at line 214,451,062 you have:

0.58,21627712,21631370,22401293,22410.173685
ADD COMMENT
0
Entering edit mode

Hi, Thank you for the insight. Is there any way I can edit that line?

ADD REPLY
0
Entering edit mode

if it is just one line you can delete say line 234 with

cat olddata.txt | sed 234d  > newdata.txt

if there are more lines then I would investigate a little more to figure out what is going on, then you can remove lines that have a certain type of pattern in them

ADD REPLY
0
Entering edit mode

Thank you.

ADD REPLY

Login before adding your answer.

Traffic: 1361 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