Skip to content

Commit

Permalink
Documented crisprai objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Jfortin1 committed Oct 12, 2022
1 parent e5b9bfa commit 32a6a06
Show file tree
Hide file tree
Showing 14 changed files with 250 additions and 171 deletions.
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ vignettes/figures/resave.sh
vignettes/figures/*.pptx
^\.BBSoptions$
inst/python/azimuth/azimuth/azure_models/*
inst/crisprai
inst/crisprai
vignettes/crisprScore_paper*
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: crisprScore
Version: 1.1.15
Date: 2022-07-23
Version: 1.1.16
Date: 2022-10-22
Title: On-Target and Off-Target Scoring Algorithms for CRISPR gRNAs
Authors@R: c(
person("Jean-Philippe", "Fortin", email = "[email protected]", role = c("aut", "cre", "cph")),
Expand Down Expand Up @@ -41,7 +41,7 @@ Description:
Note that DeepHF, DeepCpf1 and enPAM+GB are not available on Windows machines.
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.2.0
RoxygenNote: 7.2.1
VignetteBuilder: knitr
StagedInstall: no
BugReports: https://github.com/crisprVerse/crisprScore
Expand Down
176 changes: 127 additions & 49 deletions R/data.R
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
#' Mismatch position weights for the CFD off-target algorithm (Cas9)
#'
#' CFD off-target scoring weights for each nucleotide position and each
#' pair of DNA:RNA mismatches, for 20-mer spacer sequences.
#' Position 20 refers to the spacer position adjacent to
#' the PAM sequence. A higher weight indicates greater mismatch tolerance
#' by the Cas9 nuclease.
#'
#' @format Numeric vector
#' @source \url{https://dx.doi.org/10.1038\%2Fnbt.3437}
"cfd.mm.weights.cas9"
# #' Mismatch position weights for the CFD off-target algorithm (Cas9)
# #'
# #' CFD off-target scoring weights for each nucleotide position and each
# #' pair of DNA:RNA mismatches, for 20-mer spacer sequences.
# #' Position 20 refers to the spacer position adjacent to
# #' the PAM sequence. A higher weight indicates greater mismatch tolerance
# #' by the Cas9 nuclease.
# #'
# #' @format Numeric vector
# #' @source \url{https://dx.doi.org/10.1038\%2Fnbt.3437}
# "cfd.mm.weights.cas9"


#' PAM sequence weights for the CFD off-target algorithm (Cas9)
#'
#' CFD off-target PAM weights for each possible 3-mer Cas9 PAM sequences.
#' A higher weight indicates greater mismatch tolerance
#' by the Cas9 nuclease.
#'
#' @format Numeric vector
#' @source \url{https://dx.doi.org/10.1038\%2Fnbt.3437}
"cfd.pam.weights.cas9"
# #' PAM sequence weights for the CFD off-target algorithm (Cas9)
# #'
# #' CFD off-target PAM weights for each possible 3-mer Cas9 PAM sequences.
# #' A higher weight indicates greater mismatch tolerance
# #' by the Cas9 nuclease.
# #'
# #' @format Numeric vector
# #' @source \url{https://dx.doi.org/10.1038\%2Fnbt.3437}
# "cfd.pam.weights.cas9"


#' Mismatch position weights for the CFD off-target algorithm (CasRx)
#'
#' CFD off-target scoring weights for each nucleotide position and each
#' pair of DNA:RNA mismatches, for 27-mer spacer sequences.
#' Position 1 refers to the spacer position adjacent to
#' the PAM sequence. A higher weight indicates greater mismatch tolerance
#' by the CasRx nuclease.
#'
#' @format Numeric vector
"cfd.mm.weights.casrx"
# #' Mismatch position weights for the CFD off-target algorithm (CasRx)
# #'
# #' CFD off-target scoring weights for each nucleotide position and each
# #' pair of DNA:RNA mismatches, for 27-mer spacer sequences.
# #' Position 1 refers to the spacer position adjacent to
# #' the PAM sequence. A higher weight indicates greater mismatch tolerance
# #' by the CasRx nuclease.
# #'
# #' @format Numeric vector
# "cfd.mm.weights.casrx"


#' PAM sequence weights for the CFD off-target algorithm (CasRx)
#'
#' CFD off-target PAM weights for each possible 1-mer CasRx PAM sequences.
#' A higher weight indicates greater mismatch tolerance
#' by the CasRx nuclease.
#'
#' @format Numeric vector
"cfd.pam.weights.casrx"
# #' PAM sequence weights for the CFD off-target algorithm (CasRx)
# #'
# #' CFD off-target PAM weights for each possible 1-mer CasRx PAM sequences.
# #' A higher weight indicates greater mismatch tolerance
# #' by the CasRx nuclease.
# #'
# #' @format Numeric vector
# "cfd.pam.weights.casrx"




#' Mismatch position weights for the MIT off-target algorithm (Cas9)
#'
#' MIT off-target scoring weights for each nucleotide position, for 20-mer
#' spacer sequences. Position 20 refers to the spacer position adjacent to
#' the PAM sequence. A higher weight indicates greater mismatch tolerance
#' by the Cas9 nuclease.
#'
#' @format Numeric vector
#' @source \url{https://dx.doi.org/10.1038\%2Fnbt.2647}
"mit.weights"
# #' Mismatch position weights for the MIT off-target algorithm (Cas9)
# #'
# #' MIT off-target scoring weights for each nucleotide position, for 20-mer
# #' spacer sequences. Position 20 refers to the spacer position adjacent to
# #' the PAM sequence. A higher weight indicates greater mismatch tolerance
# #' by the Cas9 nuclease.
# #'
# #' @format Numeric vector
# #' @source \url{https://dx.doi.org/10.1038\%2Fnbt.2647}
# "mit.weights"



Expand All @@ -78,5 +78,83 @@
#' @usage data(scoringMethodsInfo)
"scoringMethodsInfo"

## To do: add documentation for sgrna and tss example files



#' Example CRISPRa gRNAs data.frame for the getCrispraiScores function
#'
#' Example CRISPRa gRNAs data.frame for the getCrispraiScores function.
#' The targeted TSSs are described in the object tssExampleCrispra.
#'
#' @format A data.frame with 5 columns:
#' \describe{
#' \item{grna_id}{String specifying gRNA unique identifier.}
#' \item{tss_id}{String specifying the targeted TSS id.}
#' \item{pam_site}{Genomic coordinate specifying the first nucleotide of
#' PAM sequence.}
#' \item{strand}{Strand of the gRNA strand. Must be "+" or "-".}
#' \item{spacer_19mer}{String specifying the nucleotide sequence of the 19mer
#' spacer sequence.}
#' }
#' @usage data(sgrnaExampleCrispra)
"sgrnaExampleCrispra"


#' Example CRISPRi gRNAs data.frame for the getCrispraiScores function
#'
#' Example CRISPRi gRNAs data.frame for the getCrispraiScores function.
#' The targeted TSSs are described in the object tssExampleCrispri.
#'
#' @format A data.frame with 5 columns:
#' \describe{
#' \item{grna_id}{String specifying gRNA unique identifier.}
#' \item{tss_id}{String specifying the targeted TSS id.}
#' \item{pam_site}{Genomic coordinate specifying the first nucleotide of
#' PAM sequence.}
#' \item{strand}{Strand of the gRNA strand. Must be "+" or "-".}
#' \item{spacer_19mer}{String specifying the nucleotide sequence of the 19mer
#' spacer sequence.}
#' }
#' @usage data(sgrnaExampleCrispri)
"sgrnaExampleCrispri"



#' Example TSS data.frame for the getCrispraiScores function
#'
#' Example TSS data for gRNAs stored in sgrnaExampleCrispra.
#'
#' @format A data.frame with 7 columns:
#' \describe{
#' \item{tss_id}{String specifying the targeted TSS id.}
#' \item{gene_symbol}{String specifying gene symbol.}
#' \item{promoter}{String specifying the promoter suffix to add to the
#' gene symbol columns to obtain the unique TSS id.}
#' \item{transcripts}{Ensembl IDs of the targeted transcript.}
#' \item{position}{Integer specifying genomic coordinate of the TSS.}
#' \item{strand}{Strand of TSS. Must be "+" or "-".}
#' \item{chr}{String specifying the chromosome name.}
#' }
#' @usage data(tssExampleCrispra)
"tssExampleCrispra"


#' Example TSS data.frame for the getCrispraiScores function
#'
#' Example TSS data for gRNAs stored in sgrnaExampleCrispri.
#'
#' @format A data.frame with 7 columns:
#' \describe{
#' \item{tss_id}{String specifying the targeted TSS id.}
#' \item{gene_symbol}{String specifying gene symbol.}
#' \item{promoter}{String specifying the promoter suffix to add to the
#' gene symbol columns to obtain the unique TSS id.}
#' \item{transcripts}{Ensembl IDs of the targeted transcript.}
#' \item{position}{Integer specifying genomic coordinate of the TSS.}
#' \item{strand}{Strand of TSS. Must be "+" or "-".}
#' \item{chr}{String specifying the chromosome name.}
#' }
#' @usage data(tssExampleCrispri)
"tssExampleCrispri"


14 changes: 7 additions & 7 deletions R/getCasRxRFScores.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
#'
#' @examples
#'
#' \donttest{
#' fasta <- file.path(system.file(package="crisprScore"),
#' "casrxrf/test.fa")
#' mrnaSequence <- Biostrings::readDNAStringSet(filepath=fasta,
#' format="fasta",
#' use.names=TRUE)
#' results <- getCasRxRFScores(mrnaSequence)
#' if (interactive()){
#' fasta <- file.path(system.file(package="crisprScore"),
#' "casrxrf/test.fa")
#' mrnaSequence <- Biostrings::readDNAStringSet(filepath=fasta,
#' format="fasta",
#' use.names=TRUE)
#' results <- getCasRxRFScores(mrnaSequence)
#' }
#'
#' @export
Expand Down
23 changes: 0 additions & 23 deletions man/cfd.mm.weights.cas9.Rd

This file was deleted.

20 changes: 0 additions & 20 deletions man/cfd.mm.weights.casrx.Rd

This file was deleted.

21 changes: 0 additions & 21 deletions man/cfd.pam.weights.cas9.Rd

This file was deleted.

18 changes: 0 additions & 18 deletions man/cfd.pam.weights.casrx.Rd

This file was deleted.

14 changes: 7 additions & 7 deletions man/getCasRxRFScores.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 0 additions & 22 deletions man/mit.weights.Rd

This file was deleted.

26 changes: 26 additions & 0 deletions man/sgrnaExampleCrispra.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 32a6a06

Please sign in to comment.