Good Morning Alex:

You can make hgWiggle output 1-relative coordinates with the argument -lift=1

For example
hgWiggle -lift=1 -db=hg19 -position=chrM:1-20 gc5Base
#       output date: 2010-09-15 18:21:29 UTC
#       chrom specified: chrM
#       position specified: 1-20
#       This data has been compressed with a minor loss in resolution.
#       (Worst case: 0.78125)
variableStep chrom=chrM span=5
1       39.3701
6       59.8425
11      39.3701
16      59.8425

Wiggle ASCII data of this type that is used for input as custom tracks
must *always* be 1-relative.  Otherwise it would be 1 position off.

--Hiram

Alex Reynolds wrote:
> Is there a way to determine if coordinates in a wiggle (.wig) file should be 
> 1-based or 0-based?
_______________________________________________
Genome maillist  -  [email protected]
https://lists.soe.ucsc.edu/mailman/listinfo/genome

Reply via email to