Question: How do I make a bigwig file from a matrix of counts?
3.0 years ago by
dariober ♦ 10.0k
WCIP | Glasgow | UK
dariober ♦ 10.0k wrote:
You can convert your input to bedgraph first then use bedGraphToBigWig from ucsc/utilities E.g., not tested:
sed 's/_/\t/g' matrix.txt | sort -k1,1 -k2,2n > matrix.bedGraph bedGraphToBigWig matrix.bedGraph chromSizes.txt matrix.bw
(Assuming that the space between "chr1_10000_10199" and "32" is TAB, otherwise, replace space with tab also)
Please log in to add an answer.
Powered by Biostar version 2.3.0
Traffic: 723 users visited in the last hour