Bigwig To Wig Conversion
3
2
Entering edit mode
13.4 years ago
Dr.Bunsen ▴ 150

Hello, I am trying to convert a bigWig file to a Wig file. Does anyone know how to do this?

I am trying to use the bigWigToWig program from UCSC. From the command line I have tried:

bigWigToWig in.bigWig out.wig

Unfortuantely, this command give me this error:

bigWigToWig: command not found

I have the bigWigToWig program as well as the in.bigWig file in the same directory. Does anyone have a solution or know what I am doing wrong?

Thanks in advance for the help.

ucsc bigwig • 27k views
ADD COMMENT
0
Entering edit mode

Can you please share the link from where you installed bigWigToWig? Thank you

ADD REPLY
4
Entering edit mode
13.4 years ago

under linux check that the folder containing bigWigToWig is in your $PATH

export PATH=${PATH}:/your/path/to/ucsc/bin
bigWigToWig in.bigWig out.wig

or , as bigWigToWig is in your directory , you can just write

./bigWigToWig in.bigWig out.wig
ADD COMMENT
0
Entering edit mode

Pierre, thanks for the help! I read the links you provided and followed your directions. I confirmed that the bigWigToWig program is now in my $PATH. When I now try to execute the bigWigToWig in.bigWig out.wig command, I get a Permissions denied error. I tried this locally on my Mac and also on our server. I get the same error. Any other ideas? Thanks again.

ADD REPLY
0
Entering edit mode

do you have the right to write here ? try "bigWigToWig in.bigWig /tmp/out.wig"

ADD REPLY
0
Entering edit mode

...or try moving (copying) bigWigToWig into whatever directory the files you want to convert are located. Not a good permanent fix, but might work in the short term.

ADD REPLY
0
Entering edit mode

@Pierre I tried your "bigWigToWig in.bigWig /tmp/out.wig" command and I also get a Permission denied message. I tried to run bigWigToWig on my local machine's Desktop rather than on the server and I still get the same Permission denied message?! I also double checked to make sure that bigWigToWig is in my path. Do you have any other ideas? Thanks again for all the help.

ADD REPLY
3
Entering edit mode
13.4 years ago
Farhat ★ 2.9k

It is possible bigwigtowig is not executable. Type

chmod +x ./bigWigToWig

and rerun your command.

ADD COMMENT
1
Entering edit mode

Thank you! This turned out to be the real problem.

ADD REPLY
0
Entering edit mode

Also solved the problem for me

thanks a lot

ADD REPLY
0
Entering edit mode

Dear Farhat,

I tried doing the same, but my problem is that the file is a binary and therefore not an executable

The roor message that I get is - bash: ./bigWigToWig: cannot execute binary file: Exec format error

Thanks

ADD REPLY
0
Entering edit mode

check your platform 32/64 bits vs the program 32/64 bits

ADD REPLY
0
Entering edit mode

platform and program are both 64 bits

ADD REPLY
2
Entering edit mode
13.4 years ago
Byron Smith ▴ 30

Assuming you're using linux:

Are you currently in the directory that has bigWigToWig in it? If so, and if it's not in your $PATH, you should use "./bigWigToWig". If you want to be able to run it without that './' move it to your $PATH or add it's directory to your $PATH (see Pierre's answer).

ADD COMMENT
0
Entering edit mode

Byron, thank you for the help. Yes, the program (bigWigToWig) and the .bigWig file were initially in the same directory, so I tried your ./bigWigToWig suggestion. It returned a Permissions denied error (see above). Thanks for the help. Do you have any other suggestions?

ADD REPLY

Login before adding your answer.

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