Entering edit mode
4.6 years ago
ek699
▴
10
Hi I am trying to convert BAM file to BedGraph and ultimately to BigWig file. To install bedGraphToBigWig on cluster system, I did:
URL=http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64
curl $URL/bedGraphToBigWig > ~/bin/bedGraphToBigWig
chmod +x ~/bin/bedGraphToBigWig
curl $URL/faToTwoBit > ~/bin/faToTwoBit
chmod +x ~/bin/faToTwoBit
And to see if bedGraphToBigWig command worked, I typed "bedGraphToBigWig" in the directory, ~/bin, but I got this error:
bedGraphToBigWig: /lib64/libz.so.1: version `ZLIB_1.2.3.3' not found (required by bedGraphToBigWig)
bedGraphToBigWig: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by bedGraphToBigWig)
bedGraphToBigWig: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by bedGraphToBigWig)
Is there any way that I can install bedGraphToBigWig properly? I am using company's cluster system so I am not system administrator. I really appreciate any assistance for this. Thank you very much.
You can try pulling the version from conda (https://anaconda.org/bioconda/ucsc-bedgraphtobigwig) as this should take full care of all dependencies and libraries.
Thanks, I removed all the previously downloaded files and followed the instruction in the website, using the code:
I also added the PATH: /home/id/anaconda2/bin, and I typed "bedGraphToBigWig", I still got this error:
Do you think it's because I downloaded it through bioconda??
Are you directly installing the package without creating an environment? If that is the case, it will mess up the base environment (which conda works on) and cause unexpected problems.
If you have installed the package in the base environment, you should reinstall the conda, install ucsc-bedgraphtobigwig by
then activate the envrionment containing your package
see if the error will show again
Thanks! I can try this. Since my bash shell shows (base)id@clustername:~$ , so I might install it in the base environment. Should I uninstall "bedgraphtobigwig" first and try your codes?
I think you should reinstall the whole conda, since install packages in base environment will cause many problems. Reinstall is simple and you only need to remove the whole conda directory like uninstall conda
Alternatively, you can rollback to the last revision by
the revision number should be that before you install packages
Thanks so much for the information. I did :
And now it shows (ucsc)id@clustername:~$, and I also added the PATH:/home/id/anaconda2/envs/ucsc/bin, but when I typed "bedGraphToBigWig", it still says,
Since I am using server (cluster system), I am not system admin and I am not able to use "sudo" codes as in the recommended website by Kevin above.. I am still stuck..
Okay... Seems strange, it works on my server
conda doesn't use the libraries in /lib directory, instead, those files like libxxx.so.x.x lies in the envs/ucsc/lib folder.
try
See if it can work
Thanks.. what is "conda root directory"?? Sorry I am very new to this environment.. When I am in the directory, ~/anaconda2/envs/ucsc/lib, I can see below:
I can see there is libssl.so.1.1 above. is it what we are looking for?
Yes, you have libssl.so.1.1, but you need libssl.so.1.0.0, so try to install openssl version 1.0 to see it can give you a libssl.so.1.0.0 in ~/anaconda2/envs/ucsc/lib
I realized the old answer is too complex, you just need to try
to see if it can fix
Wowwwww! I think it's working now!! I followed as you guided and now I can see:
This means the command is ready to use, right? But, as you can see, I am still in "base" environment though, is it okay??
Emm... Actually I think you can use this command because you are in the bin/ directory of this environment, if you are in another dir it should not work. If you need to use it all the time, you still need to activate the ucsc environment first
anyway, cheers!