View source: R/annotateOfftargets.R
annotateOffTargets | R Documentation |
Annotate Off targets to indicate whether each one (respectively) is inside an exon or intron, as well as the gene ID if inside the gene.
annotateOffTargets(scores, txdb, orgAnn, ignore.strand = TRUE)
scores |
a data frame output from getOfftargetScore or filterOfftarget. It contains
|
txdb |
TxDb object. For creating and using TxDb object, please refer to GenomicFeatures package. \ For a list of existing TxDb object, please search for annotation package starting with Txdb at http://www.bioconductor.org/packages/release/BiocViews.html#___AnnotationData, such as
|
orgAnn |
organism annotation mapping such as org.Hs.egSYMBOL. Which lives in the org.Hs.eg.db package for humans. |
ignore.strand |
default to TRUE |
a Data Frame with Off Target annotation
Lihua Julie Zhu
Lihua Julie Zhu, Benjamin R. Holmes, Neil Aronin and Michael Brodsky. CRISPRseek: a Bioconductor package to identify target-specific guide RNAs for CRISPR-Cas9 genome-editing systems. Plos One Sept 23rd 2014
offTargetAnalysis
library(CRISPRseek)
#library("BSgenome.Hsapiens.UCSC.hg19")
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
library(org.Hs.eg.db)
hitsFile <- system.file("extdata", "hits.txt", package="CRISPRseek")
hits <- read.table(hitsFile, sep = "\t", header = TRUE,
stringsAsFactors = FALSE)
featureVectors <- buildFeatureVectorForScoring(hits)
scores <- getOfftargetScore(featureVectors)
outputDir <- getwd()
results <- annotateOffTargets(scores,
txdb = TxDb.Hsapiens.UCSC.hg19.knownGene,
orgAnn = org.Hs.egSYMBOL)
results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.