How to convert .wib files to .wig or .bed?
1
0
Entering edit mode
4 months ago
Zeng Jingyu ▴ 30

Hi everyone, I'm recently work on a project using genome traits. I need to convert .wib format files to .bed files. But I can't find any software doing this, even on UCSC. And I searched the website, found that years ago someone also asked this question but no one answered.

I hope someone can help us solve this problem.

wib BED wig bedtools • 546 views
1
Entering edit mode

From UCSC, use wigToBigWig then bigWigToBedGraph. There is also the wig2bed fonction in BEDOPS that does this in a single step. Other options are discussed in this post: Wiggle File 2 Bed File

0
Entering edit mode

I've tried your suggestions, but it seems that .wib file is the binary version of .wig file, and the softwares (BEDOPS and wigToBigWig) produced errors like "Unrecognized line" or "Error: Invalid WIG line 1".

I wonder if I did anything wrong?

0
Entering edit mode

My apologize, I read "wig" instead of "wib". I actually never heard of .wib. Hope someone else can answer you.

0
Entering edit mode

Fine, thank you anyway.

0
Entering edit mode

When converting .wig files to .bed files, your suggestion works. But when it comes to .wib files, the softwares start to produce errors.

2
Entering edit mode
4 months ago

Perhaps use wibToWig to convert from binary to Wiggle, and then convert2bed --input=wig < foo.wig > foo.bed or wig2bed < foo.wig > foo.bed to convert from Wiggle to BED.

1
Entering edit mode

Thanks, but I've found the same file which is in .bw instead of .wig.

By the way, I don't know how to use this wibToWig. I don't understand what I should input.

But fine, everything is ok now.

Traffic: 2248 users visited in the last hour
FAQ
API
Stats

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