Description Usage Arguments Value Examples
View source: R/07_count_offtargets.R
Add genome matches
1 2 3 4 5 6 7 8 9 10 | add_genome_matches(
spacers,
bsgenome = getBSgenome(genome(spacers)[1]),
mismatches = 2,
pam = "NGG",
offtargetmethod = c("bowtie", "pdict")[1],
outdir = OUTDIR,
indexedgenomesdir = INDEXEDGENOMESDIR,
verbose = TRUE
)
|
spacers |
GRanges |
bsgenome |
BSgenome |
mismatches |
number |
pam |
string |
offtargetmethod |
'bowtie' or 'pdict' |
outdir |
bowtie output directory |
indexedgenomesdir |
directory with indexed genomes |
verbose |
TRUE (default) or FALSE |
GRanges
1 2 3 4 5 6 7 8 9 | 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 %<>% extract(1:100)
spacers %<>% add_genome_matches(bsgenome)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.