## Not run:
# # Generate random ranges with scores
# ran <- RangedData(IRanges(start=1:100, end=101:200), score=(1:100) / 100)
# names(ran) <- "chrX"
#
# # Export as bed file
# export.bed(ran, name="test_track", description="Just a test track")
#
# # If executed, this would create a file named "test_track.chrX.bed" with:
#
# # track name="test_track" description="Just a test track" useScore=0
# # chrX 1 101 nucl1 0.01
# # chrX 2 102 nucl2 0.02
# # chrX 3 103 nucl3 0.03
# # ...
# ## End(Not run)
Run the code above in your browser using DataLab