I am working on a project in which I end up generating a score for every position in the human genome, and I would like to be able to visualize these scores in the UCSC genome browser. From my understanding, the best format for this is .wig, but due to some implementation details, it is a lot easier to generate scores in chunks that aren't sorted by their position in the genome. Do wiggle files have to be sorted? Or is it that as long as the variableStep/fixedStep flag correctly describes the bases below it, the order doesn't matter?
To be more specific, would it be allowed to have something like this in a wiggle file?
variableStep chrom=chr2 span=5
variableStep chrom=chr2 span=10
I wasn't able to find any information in the file format descriptions from UCSC.