Description Usage Arguments Value See Also Examples
Add targets to a guideSet object
1 | addTargets(guideSet, targets = NULL, force = FALSE)
|
guideSet |
guideSet object containing genome annotation. |
targets |
Character vector of family identifiers or GRanges object with coordinates and 'repname' metacolumn. |
force |
Logical. If |
Returns a guideSet object containing targets.
plotTargets()
, and GenomicRanges::makeGRangesFromDataFrame()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## 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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.