Skip to contents

Replace the regions corresponding to the bait anchors of a linkSet object

Usage

regionsBait(x) <- value

Arguments

x

A linkSet object

value

A GRanges object containing the new bait regions

Value

The modified linkSet object

Details

Set Bait Regions for linkSet Object

Examples

# Create example data
gr1 <- GRanges("chr1", IRanges(1:3, width=1))
gr2 <- GRanges("chr1", IRanges(4:6, width=1))
ls <- linkSet(gr1, gr2)

# Create new bait regions
new_bait <- GRanges("chr1", IRanges(7:9, width=1))

# Replace bait regions
regionsBait(ls) <- new_bait