Title: | Visualization Functions for CRISPR gRNAs |
---|---|
Description: | Provides functionalities to visualize and contextualize CRISPR guide RNAs (gRNAs) on genomic tracks across nucleases and applications. Works in conjunction with the crisprBase and crisprDesign Bioconductor packages. Plots are produced using the Gviz framework. |
Authors: | Jean-Philippe Fortin [aut, cre], Luke Hoberecht [aut] |
Maintainer: | Jean-Philippe Fortin <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.9.0 |
Built: | 2024-11-29 08:55:46 UTC |
Source: | https://github.com/bioc/crisprViz |
A sample of CAGE peak annotation from AnnotationHub (ascension number AH5084), lifted over to hg38.
data(cage, package="crisprViz")
data(cage, package="crisprViz")
A GRanges object.
An example GuideSet object targeting the CDS of the human LTN1
gene. Generated using the AsCas12a CRISPR nuclease, the genome sequence
from the BSgenome.Hsapiens.UCSC.hg38
package, and the gene model
from txdb_human
in the crisprDesignData
package (Ensembl
release 104).
data(cas12aGuideSet, package="crisprViz")
data(cas12aGuideSet, package="crisprViz")
A GuideSet object.
An example GuideSet object targeting the CDS of the human LTN1
gene. Generated using the SpCas9 CRISPR nuclease, the genome sequence
from the BSgenome.Hsapiens.UCSC.hg38
package, and the gene model
from txdb_human
in the crisprDesignData
package (Ensembl
release 104).
data(cas9GuideSet, package="crisprViz")
data(cas9GuideSet, package="crisprViz")
A GuideSet object.
A sample of DNase I hypersensitive site annotation from AnnotationHub (ascension number AH30743), lifted over to hg38.
data(dnase, package="crisprViz")
data(dnase, package="crisprViz")
A GRanges object.
A CompressedGRangesList object describing the gene model of
the human GPR21 gene. Coordinates were subset from txdb_human
in
the crisprDesignData
package (Ensembl release 104).
data(gpr21GeneModel, package="crisprViz")
data(gpr21GeneModel, package="crisprViz")
A CompressedGRangesList object.
An example GuideSet object targeting a section of the CDS of
the human GPR21 gene. Generated using the BE4max CRISPR nuclease, the
genome sequence from the BSgenome.Hsapiens.UCSC.hg38
package, and
the gene model from txdb_human
in the crisprDesignData
package (Ensembl release 104).
data(gpr21GuideSet, package="crisprViz")
data(gpr21GuideSet, package="crisprViz")
A GuideSet object.
A CompressedGRangesList object describing the gene model of
the human KRAS gene. Coordinates were subset from txdb_human
in
the crisprDesignData
package (Ensembl release 104).
data(krasGeneModel, package="crisprViz")
data(krasGeneModel, package="crisprViz")
A CompressedGRangesList object.
An example GuideSet object targeting the CDS of the human KRAS
gene. Generated using the SpCas9 CRISPR nuclease, the genome sequence
from the BSgenome.Hsapiens.UCSC.hg38
package, and the gene model
from txdb_human
in the crisprDesignData
package (Ensembl
release 104).
data(krasGuideSet, package="crisprViz")
data(krasGuideSet, package="crisprViz")
A GuideSet object.
A CompressedGRangesList object describing the gene model of
the human LTN1 gene. Coordinates were subset from txdb_human
in
the crisprDesignData
package (Ensembl release 104).
data(ltn1GeneModel, package="crisprViz")
data(ltn1GeneModel, package="crisprViz")
A CompressedGRangesList object.
A CompressedGRangesList object describing the gene model of
the human MMP7 gene. Coordinates were subset from txdb_human
in
the crisprDesignData
package (Ensembl release 104).
data(mmp7GeneModel, package="crisprViz")
data(mmp7GeneModel, package="crisprViz")
A CompressedGRangesList object.
An example GuideSet object targeting the promoter region of
the human MMP7 gene. Generated using the SpCas9 CRISPR nuclease, the
genome sequence from the BSgenome.Hsapiens.UCSC.hg38
package, and
the gene model from tss_human
in the crisprDesignData
package (Ensembl release 104).
data(mmp7GuideSet, package="crisprViz")
data(mmp7GuideSet, package="crisprViz")
A GuideSet object.
Function to plot guide targets stored in a
GuideSet object in a gene browser view supported by
Gviz
. Target gene isoforms and other genomic annotation,
along with the target chromosome ideogram and sequence, may also be
added, permitting a comprehensive visualization of the genomic context
around the target protospacer sequences.
plotGuideSet( x, geneModel = NULL, targetGene = NULL, annotations = list(), from = NULL, to = NULL, extend.left = 0, extend.right = 0, margin = 1, includeIdeogram = TRUE, bands = NULL, guideStacking = "squish", bsgenome = NULL, pamSiteOnly = FALSE, showGuideLabels = TRUE, onTargetScore = NULL, includeSNPTrack = TRUE, gcWindow = NULL )
plotGuideSet( x, geneModel = NULL, targetGene = NULL, annotations = list(), from = NULL, to = NULL, extend.left = 0, extend.right = 0, margin = 1, includeIdeogram = TRUE, bands = NULL, guideStacking = "squish", bsgenome = NULL, pamSiteOnly = FALSE, showGuideLabels = TRUE, onTargetScore = NULL, includeSNPTrack = TRUE, gcWindow = NULL )
x |
A GuideSet object. |
geneModel |
A TxDb object or a GRangesList object obtained using TxDb2GRangesList. |
targetGene |
String specifying the gene symbol or Ensembl ID of the gene to plot. |
annotations |
A named (optional) list of genomic annotations as GRanges to plot. Provided names are displayed as track titles. |
from , to
|
Numeric value giving the genomic coordinate range to plot; see plotTracks. |
extend.left , extend.right
|
Numeric value giving the length in bases to extend the plotting range; see plotTracks. |
margin |
A numeric value that sets the margin of the plotting range
with respect to the range of |
includeIdeogram |
Logical; whether to include an IdeogramTrack in the plot. |
bands |
A |
guideStacking |
Character string specifying how to stack guides.
Options are |
bsgenome |
A BSgenome object; used to generate SequenceTrack and GC content DataTrack. |
pamSiteOnly |
Whether to plot only the PAM site in representing guides, or plot the full guide and PAM sequence (default). |
showGuideLabels |
Logical; whether to show labels for individual guides. |
onTargetScore |
Optional column name in |
includeSNPTrack |
Logical; whether to include an
AnnotationTrack for SNPs if such annotation exists in
|
gcWindow |
If not |
A Gviz plot; see plotTracks.
Luke Hoberecht
plotMultipleGuideSets for plotting multiple GuideSet objects together.
if (interactive()){ data(krasGuideSet, package="crisprViz") data(krasGeneModel, package="crisprViz") plotGuideSet(krasGuideSet[1:4], geneModel=krasGeneModel, targetGene="KRAS") }
if (interactive()){ data(krasGuideSet, package="crisprViz") data(krasGeneModel, package="crisprViz") plotGuideSet(krasGuideSet[1:4], geneModel=krasGeneModel, targetGene="KRAS") }
Function to plot guide targets stored in multiple
GuideSet objects in a gene browser view supported by
Gviz
. Target gene isoforms and other genomic annotation,
along with the target chromosome ideogram and sequence, may also be
added, permitting a comprehensive visualization of the genomic context
targeted by spacers in GuideSet objects.
plotMultipleGuideSets( x, geneModel = NULL, targetGene = NULL, annotations = list(), from = NULL, to = NULL, extend.left = 0, extend.right = 0, margin = 1, includeIdeogram = TRUE, bands = NULL, bsgenome = NULL, onTargetScores = NULL, includeSNPTrack = TRUE, gcWindow = NULL )
plotMultipleGuideSets( x, geneModel = NULL, targetGene = NULL, annotations = list(), from = NULL, to = NULL, extend.left = 0, extend.right = 0, margin = 1, includeIdeogram = TRUE, bands = NULL, bsgenome = NULL, onTargetScores = NULL, includeSNPTrack = TRUE, gcWindow = NULL )
x |
A named (optional) list of GuideSet objects. List names are displayed as track titles. |
geneModel |
A TxDb object or a GRangesList object obtained using TxDb2GRangesList. |
targetGene |
A character string giving the gene symbol or Ensembl ID of the gene to plot. |
annotations |
A named (optional) list of genomic annotations as GRanges to plot. Provided names are displayed as track titles. |
from , to
|
Numeric value giving the genomic coordinate range to plot; see plotTracks. |
extend.left , extend.right
|
Numeric value giving the length in bases to extend the plotting range; see plotTracks. |
margin |
A numeric value that sets the margin of the plotting range
with respect to the range of |
includeIdeogram |
Logical; whether to include an IdeogramTrack in the plot. |
bands |
A |
bsgenome |
A BSgenome object; used to generate SequenceTrack and GC content DataTrack. |
onTargetScores |
Optional list of column names for each element in
|
includeSNPTrack |
Logical; whether to include an
AnnotationTrack for SNPs if such annotation exists in
|
gcWindow |
If not |
A Gviz plot; see plotTracks
.
Luke Hoberecht, Jean-Philippe Fortin
if (interactive()){ library(BSgenome.Hsapiens.UCSC.hg38) data(cas9GuideSet, package="crisprViz") data(cas12aGuideSet, package="crisprViz") data(ltn1GeneModel, package="crisprViz") plotMultipleGuideSets(list(SpCas9=cas9GuideSet, AsCas12a=cas12aGuideSet), geneModel=ltn1GeneModel, targetGene="LTN1", bsgenome=BSgenome.Hsapiens.UCSC.hg38, margin=0.2, gcWindow=10) }
if (interactive()){ library(BSgenome.Hsapiens.UCSC.hg38) data(cas9GuideSet, package="crisprViz") data(cas12aGuideSet, package="crisprViz") data(ltn1GeneModel, package="crisprViz") plotMultipleGuideSets(list(SpCas9=cas9GuideSet, AsCas12a=cas12aGuideSet), geneModel=ltn1GeneModel, targetGene="LTN1", bsgenome=BSgenome.Hsapiens.UCSC.hg38, margin=0.2, gcWindow=10) }
A GRanges object describing a subset of repeat elements for
the hg38 genome. Coordinates were subset from gr.repeats.hg38
in
the crisprDesignData
package.
data(repeats, package="crisprViz")
data(repeats, package="crisprViz")
A GRanges object.