Skip to contents

Export linkSet to interBed format

Usage

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

Arguments

x

A linkSet object

outfile

Output file name

Examples

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