index_targets {multicrispr} | R Documentation

## Index targets

### Description

Bowtie index targets

### Usage

    index_targets(
      targets,
      bsgenome = getBSgenome(genome(targets)[1]),
      outdir = OUTDIR,
      verbose = TRUE
    )

### Arguments

`targets` | `GRanges-class`
`bsgenome` | `BSgenome-class`
`outdir` | string: output directory
`verbose` | TRUE (default) or FALSE

### Value

invisible(targetdir)

### Examples

    require(magrittr)
    bsgenome <- BSgenome.Mmusculus.UCSC.mm10::BSgenome.Mmusculus.UCSC.mm10
    bedfile  <- system.file('extdata/SRF.bed', package = 'multicrispr')
    targets <- extend(bed_to_granges(bedfile, genome = 'mm10'))
    index_targets(targets, bsgenome)

[Package multicrispr version 1.4.3 Index]