### R code from vignette source 'vignettes/CRISPRseek/inst/doc/CRISPRseek.Rnw' ################################################### ### code chunk number 1: style ################################################### BiocStyle::latex() ################################################### ### code chunk number 2: CRISPRseek.Rnw:121-127 ################################################### library(CRISPRseek) library(BSgenome.Hsapiens.UCSC.hg19) library(TxDb.Hsapiens.UCSC.hg19.knownGene) outputDir <- getwd() inputFilePath <- system.file('extdata', 'inputseq.fa', package = 'CRISPRseek') REpatternFile <- system.file('extdata', 'NEBenzymes.fa', package = 'CRISPRseek') ################################################### ### code chunk number 3: CRISPRseek.Rnw:154-160 ################################################### offTargetAnalysis(inputFilePath, findgRNAsWithREcutOnly = TRUE, REpatternFile = REpatternFile, findPairedgRNAOnly = TRUE, BSgenomeName = Hsapiens, chromToSearch ="chrX", min.gap = 0, max.gap = 20, txdb = TxDb.Hsapiens.UCSC.hg19.knownGene, max.mismatch = 0, overlap.gRNA.positions = c(17, 18), outputDir = outputDir, overwrite = TRUE) ################################################### ### code chunk number 4: CRISPRseek.Rnw:173-178 ################################################### offTargetAnalysis(inputFilePath, findgRNAsWithREcutOnly = FALSE, REpatternFile = REpatternFile,findPairedgRNAOnly = TRUE, BSgenomeName = Hsapiens, chromToSearch = "chrX", txdb = TxDb.Hsapiens.UCSC.hg19.knownGene, max.mismatch = 1, outputDir = outputDir, overwrite = TRUE) ################################################### ### code chunk number 5: CRISPRseek.Rnw:190-195 ################################################### offTargetAnalysis(inputFilePath, findgRNAsWithREcutOnly = TRUE, REpatternFile = REpatternFile, findPairedgRNAOnly = FALSE, BSgenomeName = Hsapiens, chromToSearch = "chrX", txdb = TxDb.Hsapiens.UCSC.hg19.knownGene, max.mismatch = 1, outputDir = outputDir, overwrite = TRUE) ################################################### ### code chunk number 6: CRISPRseek.Rnw:208-213 ################################################### offTargetAnalysis(inputFilePath, findgRNAsWithREcutOnly = FALSE, REpatternFile = REpatternFile,findPairedgRNAOnly = FALSE, BSgenomeName = Hsapiens, chromToSearch = "chrX", txdb = TxDb.Hsapiens.UCSC.hg19.knownGene, max.mismatch = 1, outputDir = outputDir, overwrite = TRUE) ################################################### ### code chunk number 7: CRISPRseek.Rnw:225-233 ################################################### gRNAFilePath <- system.file('extdata', 'testHsap_GATA1_ex2_gRNA1.fa', package = 'CRISPRseek') offTargetAnalysis(inputFilePath = gRNAFilePath, findgRNAsWithREcutOnly = TRUE, REpatternFile = REpatternFile, findPairedgRNAOnly = FALSE, findgRNAs = FALSE, BSgenomeName = Hsapiens, chromToSearch = 'chrX', txdb = TxDb.Hsapiens.UCSC.hg19.knownGene, max.mismatch = 1, outputDir = outputDir, overwrite = TRUE) ################################################### ### code chunk number 8: CRISPRseek.Rnw:246-249 ################################################### offTargetAnalysis(inputFilePath, findgRNAsWithREcutOnly = TRUE, REpatternFile = REpatternFile,findPairedgRNAOnly = TRUE, chromToSearch = "", outputDir = outputDir, overwrite = TRUE) ################################################### ### code chunk number 9: CRISPRseek.Rnw:255-262 ################################################### inputFile1Path <- system.file("extdata", "rs362331C.fa", package = "CRISPRseek") inputFile2Path <- system.file("extdata", "rs362331T.fa", package = "CRISPRseek") REpatternFile <- system.file("extdata", "NEBenzymes.fa", package = "CRISPRseek") seqs <- compare2Sequences(inputFile1Path, inputFile2Path, outputDir = outputDir , REpatternFile = REpatternFile, overwrite = TRUE) seqs ################################################### ### code chunk number 10: CRISPRseek.Rnw:278-279 ################################################### sessionInfo()