I've generated a wig file for the chr22. The data is a sliding window (window-size=500, every 250pb) starting from pos0=16050276. The windows overlap over 250pb.
$ head input.wig fixedStep chrom=chr22 start=16050276 step=250 span=500 4 3 5 5 2 3 3 2 3
there is only one header in my file:
$ grep -i -c Step input.wig 1
and there is 140777 lines (including the header)
$ wc -l input.wig 140777 input.wig
$ grep chr22 sizes.tsv chr22 51304566
but when I want to convert my wig to a bigwig file using wigToBigWig, I get the following error:
wigToBigWig input.wig sizes.tsv out.bw There's more than one value for chr22 base 16306276 (in coordinates that start with 1).
I must be very tired, do you know where is my error ?