Add targets to a guideSet object

addTargets(guideSet, targets = NULL, force = FALSE)

Arguments

guideSet

guideSet object containing genome annotation.

targets

Character vector of family identifiers or GRanges object with coordinates and 'repname' metacolumn.

force

Logical. If TRUE, overwrites existing results.

Value

Returns a guideSet object containing targets.

See also

Examples

# NOT RUN {
gs <- createGuideSet(Hsapiens, tes = te_anno)

# Use family identifiers as targets
gs <- addTargets(guideSet, targets = c('LTR12C', 'LTR12E'))

# Use custom regions as targets
target_coords <- GenomicRanges::makeGRangesFromDataFrame(data.frame('chrom'   = c('chr1', 'chr4'),
                                                                    'start'   = c(1000, 10020),
                                                                    'end'     = c(1122, 10090),
                                                                    'strand'  = c('+', '-'),
                                                                    'repname' = c('ImaginativeTE', 'ImaginativeTE'),
                                                                    'te_id'  = c(1:2)),
                                                         keep.extra.columns = TRUE)
gs <- addTargets(guideSet, targets = target_coords)
# }