This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Having issues using UCSC kent tools to convert bigwig file to wig file

I'm trying to convert a bigwig file to wig file using UCSC kent tools and I'm following the instructions mentioned here. On entering mkdir ~/bin/$MACHTYPE on the command line I get the following error :

mkdir: cannot create directory ‘/home/uday/bin/x86_64-pc-linux-gnu’: No such file or directory.

How do I go about this? Thanks.

software error sequence

Maybe try this:

mkdir ~/bin/
mkdir ~/bin/$MACHTYPE

It solved that particular issue but faced other problems in the later steps. Thanks for your time :).

1 answer

Save yourself the trouble and get the compiled versions for your OS. Linux or macOS.

Seconding this answer. Also here is the top directory with previous versions of the utilities: http://hgdownload.soe.ucsc.edu/admin/exe/

Here is the example location of the bigWigToWig location for linux: http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/bigWigToWig

Running any kent util on the command line with no statement prompts the help message:

$ bigWigToWig 
bigWigToWig - Convert bigWig to wig.  This will keep more of the same structure of the
original wig than bigWigToBedGraph does, but still will break up large stepped sections
into smaller ones.
usage:
   bigWigToWig in.bigWig out.wig
options:
   -chrom=chr1 - if set restrict output to given chromosome
   -start=N - if set, restrict output to only that over start
   -end=N - if set, restict output to only that under end
   -udcDir=/dir/to/cache - place to put cache for remote bigBed/bigWigs

Trying to convert the resulting .wig file to .bed file using :

convert2bed --input=wig [--output=bed] < hg38.phyloP4way.wig > hg38.phyloP4way.bed

Not working though. I get a memory warning while the command runs. Any thoughts? Please help.

Log in to answer this question.