wig, bedGraph,bigWig,bigbedGraph之间的转换
Because the bigWig files are indexedbinary files, they can be difficult to extract data from.Consequently, we have developed the following two programs, both ofwhich are available from the directory of binary utilities.
bigWigToBedGraph — this program converts a bigWig file to ASCIIbedGraph format.
bigWigToWig — this program converts a bigWig file to wigformat.
bigWigSummary — this program extracts summary information from abigWig file.
bigWigInfo — this program prints out information about a bigWigfile.
from http://genome.ucsc.edu/goldenPath/help/bigWig.html
1、从http://hgdownload.cse.ucsc.edu/admin/exe/ 选择相应系统的软件库目录,从目录下下载相应的二进制文件
2、利用 chmod 0755 或 chmod a+x 修改文件权限使得文件可执行
3、在当前目录下运行
./bigWigToWig
出现问题: ./bigWigToWig: errorwhile loading shared libraries: libssl.so.10: cannot open sharedobject file: No such file or directory原因:系统的libssl.so.1.0.0文件不能找到
解决问题:在系统中查找该文件,如有,建立连接 使得能够找到该库文件,如果没有下载sudo ln/lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/libssl.so.10
4、再次在当前目录下运行./bigWigToWig
出现问题:./bigWigToWig: error whileloading shared libraries: libcrypto.so.10: cannot open sharedobject file: No such file or directory原因:系统的libcrypto.so.10文件不能找到
解决问题:在系统中查找该文件,如有,建立连接 使得能够找到该库文件,如果没有下载
sudo ln /lib/x86_64-linux-gnu/libcrypto.so.1.0.0/usr/lib/libcrypto.so.10
5、再次在当前目录下运行,成功,显示软件的使用介绍
./bigWigToWig
bigWigToWig - Convert bigWig towig. This will keep more of the same structure ofthe
original wig than bigWigToBedGraph does, but still will break uplarge stepped sections
into smaller ones.
usage:
bigWigToWig in.bigWigout.wig
options:
-chrom=chr1 - if set re————strictoutput to given chromosome
-start=N - if set, restrictoutput to only that over start
-end=N - if set, restictoutput to only that under end
-udcDir=/dir/to/cache - placeto put cache for remote bigBed/bigWigs