postgres/private_demo
Convert a bedGraph file to bigWig format (see also http://www.ncbi.nlm.nih.gov/pubmed/20639541 ) usage: bedGraphToBigWig in.bedGraph chrom.sizes out.bw where in.bedGraph is a four column file in the format: <chrom> <start> <end> <value> and chrom.sizes is a two-column file/URL: <chromosome name> <size in bases> and out.bw is the output indexed big wig file. If the assembly <db> is hosted by UCSC, chrom.sizes can be a URL like http://hgdownload.cse.ucsc.edu/goldenPath/<db>/bigZips/<db>.chrom.sizes or you may use the script fetchChromSizes to download the chrom.sizes file. If not hosted by UCSC, a chrom.sizes file can be generated by running twoBitInfo on the assembly .2bit file. The input bedGraph file must be sorted, use the unix sort command: sort -k1,1 -k2,2n unsorted.bedGraph > sorted.bedGraph
URL(s):
View Assessments