crisprVerse / crisprScore

On-Target and Off-Target Scoring Algorithms for CRISPR gRNAs
MIT License
13 stars 3 forks source link

Error with addOnTargetScores #6

Closed AudreyDub closed 1 year ago

AudreyDub commented 1 year ago

Hi, Actually i use a custom nuclease sequence define like this:

nuc<- CrisprNuclease("nuc",
                           targetType="DNA",
                           pams="VVVTTTV(21/26)",
                           metadata=list(description="Custom nuclease."),
                           pam_side="5prime",
                           spacer_length=23)

gs <- findSpacers(dna, crisprNuclease=nuc)
gs<- addOnTargetScores(gs, methods="enpamgb") 
Error in .validateOnTargetScoreMethods(methods = methods, crisprNuclease = crisprNuclease) : 
  No scoring method found for crisprNuclease

How can i define a correct method for my custom nuclease?

At the end, the idea is to obtain a GuideSet with on/Off target :)

Thx Audrey

Jfortin1 commented 1 year ago

Hi @AudreyDub,

The on- and off-target scoring algorithms were developed for specific nucleases (enPAMGV was developed for the engineered Cas12a for instance), so addOnTargetScores and addOffTargetScores cannot be used for your custom nuclease.