Skip to contents

Exports a linkSet object to a tab-delimited format compatible with the WashU genome browser

Usage

exportWashU(x, outfile)

# S4 method for class 'linkSet'
exportWashU(x, outfile)

Arguments

x

A linkSet object

outfile

Output file path

Value

None. The function writes to the specified file.

Details

Export linkSet to WashU Format

Examples

data(linkExample)
tmpfile <- tempfile(fileext = ".txt")
exportWashU(linkExample, tmpfile)
cat(readLines(tmpfile), sep = "\n")
#> chr1	1	10	Gene1	chr1	50	59	chr1:50-59:+
#> chr1	100	109	Gene1	chr2	150	159	chr2:150-159:+
#> chr2	200	209	Gene2	chr2	250	259	chr2:250-259:+
#> chr3	300	309	Gene3	chr4	350	359	chr4:350-359:+
#> chr4	400	409	Gene3	chr4	450	459	chr4:450-459:+