add_target_matches: Add target matches

Description Usage Arguments Value Examples

View source: R/07_count_offtargets.R

Description

Add target matches

Usage

1
2
3
4
5
6
7
8
9
add_target_matches(
  spacers,
  targets,
  bsgenome,
  mismatches = 2,
  pam = "NGG",
  outdir = OUTDIR,
  verbose = TRUE
)

Arguments

spacers

GRanges

targets

GRanges

bsgenome

BSgenome

mismatches

number

pam

string

outdir

bowtie output directory

verbose

TRUE (default) or FALSE

Value

GRanges

Examples

1
2
3
4
5
6
7
8
require(magrittr)
file <- system.file('extdata/SRF.bed', package='multicrispr')
bsgenome <- BSgenome.Mmusculus.UCSC.mm10::BSgenome.Mmusculus.UCSC.mm10
targets0 <- bed_to_granges(file, 'mm10')
targets <- extend(targets0)
spacers <- find_spacers(targets, bsgenome, complement = FALSE, 
                        ontargetmethod = NULL, offtargetmethod = NULL)
spacers %<>% add_target_matches(targets, bsgenome)

multicrispr documentation built on Nov. 8, 2020, 5:10 p.m.